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/...?q=api&page=1784&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 19269 results for "api"(4608ms)

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);

fetchBinancemain.tsx1 match

@oske•Updated 1 year ago
2
3export let fetchBinance = (payType: string) =>
4 fetch("https://p2p.binance.com/bapi/c2c/v2/friendly/c2c/adv/search", {
5 method: "POST",
6 body: JSON.stringify({

valRunsmain.tsx2 matches

@neverstew•Updated 1 year ago
6 id: string;
7 error?: boolean;
8 source?: ("api" | "ui" | "interval" | "email")[];
9 since?: Date;
10 until?: Date;
38}> {
39 return fetchJSON(
40 `https://api.val.town/v1/vals/${id}/runs?` +
41 searchParams({
42 error: error?.toString(),

sendToTelegrammain.tsx1 match

@pomdtr•Updated 1 year ago
6 const chatID = secretToTelegramChat[secret];
7 const resp = await fetch(
8 `https://api.telegram.org/bot${process.env.telegramToken}/sendMessage?chat_id=${chatID}&text=${message}`,
9 {
10 method: "POST",
Plantfo

Plantfo8 file matches

@Llad•Updated 5 hours ago
API for AI plant info

api_ianmenethil_com133 file matches

@ianmenethil•Updated 14 hours ago
vapicxy
apiry