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=983&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 11482 results for "api"(1730ms)

holidaysUSmain.tsx1 match

@jaeseung272crb•Updated 1 year ago
3// Public holidays in the US in 2023
4export let holidaysUS = fetchJSON(
5 "https://date.nager.at/api/v2/publicholidays/2023/US"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

starWarsmain.tsx2 matches

@insanity54•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Explore the Star Wars universe, from StarWarsAPI
4export let starWars = fetchJSON(
5 "https://swapi.dev/api/people/1/"
6);

register_discord_commandsmain.tsx1 match

@mattx•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`;

myRunsFailedmain.tsx1 match

@andreterron•Updated 1 year ago
11 token: process.env.vt_token,
12 error: true,
13 source: ["api", "interval"],
14 since: interval.lastRunAt,
15 });

commentsmain.tsx1 match

@andreterron•Updated 1 year ago
34}> {
35 return fetchJSON(
36 "http://api.val.town/v1/me/comments?" +
37 searchParams({
38 since: since?.toISOString(),

feedGeneratormain.tsx2 matches

@lukas•Updated 1 year ago
40 };
41}) {
42 const { default: atproto } = await import("https://cdn.jsdelivr.net/npm/@atproto/api/+esm");
43 const { default: resolver } = await import("npm:@atproto/did-resolver");
44 const feedUri = atproto.AtUri.make(
108 }
109 else {
110 res.json("TODO, proxy all request to the Val Town API from this val");
111 }
112 };

myApimain.tsx1 match

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

gptApiTemplate2 file matches

@charmaine•Updated 2 hours ago

mod-interview-api1 file match

@twschiller•Updated 18 hours ago
apiv1
papimark21