Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Bart_info.art.src%7D?q=api&page=1012&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 11513 results for "api"(1373ms)

myApimain.tsx1 match

@chrislaughlin•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

getCNNNewsShortmain.tsx1 match

@fab1an•Updated 1 year ago
3export async function getCNNNewsShort() {
4 const response = await fetch(
5 "https://saurav.tech/NewsAPI/everything/cnn.json"
6 );
7 const data = await response.json();

myApimain.tsx1 match

@lukemeadow•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@browniebroke•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

boredActivitiesmain.tsx1 match

@emcfarlane•Updated 1 year ago
3// Activity suggestions for when you're bored
4export let boredActivities = fetchJSON(
5 "https://www.boredapi.com/api/activity"
6);

myApimain.tsx1 match

@mantas•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@eagle251•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

telegramWebhookEchoMessagemain.tsx1 match

@vtdocs•Updated 1 year ago
8 // Verify this webhook came from our bot
9 if (
10 req.get("x-telegram-bot-api-secret-token") !==
11 process.env.telegramWebhookSecret
12 ) {

telegramGetMemain.tsx1 match

@vtdocs•Updated 1 year ago
3export const telegramGetMe = async (botToken: string) =>
4 fetchJSON(
5 `https://api.telegram.org/bot${botToken}/getMe`,
6 );

githubGistsmain.tsx1 match

@benigeri•Updated 1 year ago
3// GitHub gists
4export let githubGists = fetchJSON(
5 "https://api.github.com/users/stevekrouse/gists"
6);

gptApiTemplate2 file matches

@charmaine•Updated 21 hours ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21