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=1013&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"(1531ms)

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",

testVtClientmain.tsx3 matches

@pomdtr•Updated 1 year ago
1export const testVtClient = (async () => {
2 const { createApiClient } = await import(
3 "https://esm.sh/valtown-zod-client@0.0.7"
4 );
5 const apiClient = createApiClient("https://api.val.town");
6 const params = {
7 params: { username: "nbbaier", val_name: "hello" },
8 };
9 return apiClient.getV1aliasUsernameVal_name(params);
10})();

myApimain.tsx1 match

@byron•Updated 1 year ago
1export function myApi(name) {
2 return console.email("hello there", "email n shit");
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

register_discord_commandsmain.tsx1 match

@malloc•Updated 1 year ago
7 commands: Array<Object>
8) => {
9 let url = `https://discord.com/api/v10/applications/${app_id}/`;
10 if (guild_id) {
11 url += `guilds/${guild_id}/commands`;

myApimain.tsx1 match

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

gptApiTemplate2 file matches

@charmaine•Updated 21 hours ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21