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=1005&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 11576 results for "api"(1593ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

apimain.tsx1 match

@ayrtonlacerdaUpdated 1 year ago
1import { updateTaskAsana } from "https://esm.town/v/ayrtonlacerda/updateTaskAsana";
2
3export const api = async (req: Request) => {
4 const { Hono } = await import("npm:hono");
5 const app = new Hono();

myApimain.tsx1 match

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

myApimain.tsx1 match

@abhishekUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + $abhishek;
3}

addReactFromValCDNmain.tsx2 matches

@liamdanielduffyUpdated 1 year ago
3export function addReactFromValCDN(): string {
4 const reactDom = scriptTag({
5 src: "https://api.val.town/v1/express/liamdanielduffy.REACT_DOM_CDN_VAL",
6 });
7 const react = scriptTag({
8 src: "https://api.val.town/v1/express/liamdanielduffy.REACT_CDN_VAL",
9 });
10 return [react, reactDom].join(" ");

gitHubStarsmain.tsx2 matches

@vtdocsUpdated 1 year ago
4 const username = "stevekrouse";
5 const user = await fetchJSON(
6 `https://api.github.com/users/${username}`,
7 );
8 let totalStars = 0;
11 while (pages--) {
12 const repositories = await fetchJSON(
13 `https://api.github.com/users/${username}/repos?per_page=100&page=${
14 pages + 1
15 }`,

wrapInHTMLElementsmain.tsx1 match

@rwevUpdated 1 year ago
1export function wrapInHTMLElements(
2 elements: string | string[],
3 html: string

girafemain.tsx1 match

@dotUpdated 1 year ago
9
10 let response = await fetch(
11 `https://www.sevenrooms.com/api-yoa/availability/widget/range?venue=${venue}&time_slot=${time_slot}&party_size=${party_size}&halo_size_interval=5&start_date=${start_date}&num_days=1&channel=SEVENROOMS_WIDGET`
12 );
13 let body = await response.json();

valtownOpenAPImain.tsx4 matches

@pomdtrUpdated 1 year ago
1import { openapi2TS } from "https://esm.town/v/pomdtr/openapi2TS";
2
3export async function valtownOpenAPI(req: Request) {
4 return new Response(
5 await openapi2TS(
6 "https://www.val.town/docs/openapi.yaml",
7 ),
8 {

gptApiTemplate2 file matches

@charmaineUpdated 1 day ago

mod-interview-api1 file match

@twschillerUpdated 1 day ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration