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/image-url.jpg%20%22Optional%20title%22?q=api&page=1059&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 11847 results for "api"(1144ms)

myApimain.tsx1 match

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

aqimain.tsx1 match

@herkuUpdated 1 year ago
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
8 limit: "10",

editValmain.tsx1 match

@vezUpdated 1 year ago
7 isInterval?: boolean;
8}) =>
9 fetchJSON(`api.val.town/run/`, {
10 headers: {
11 accept: "*/*",

myApimain.tsx1 match

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

boredActivitiesmain.tsx1 match

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

tidbytDeviceInstallationsmain.tsx4 matches

@andreterronUpdated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export function tidbytDeviceInstallations({ deviceId, apiKey }: {
4 deviceId: string;
5 apiKey: string;
6}) {
7 return fetchJSON(
8 `https://api.tidbyt.com/v0/devices/${deviceId}/installations`,
9 {
10 headers: {
11 Authorization: `Bearer ${apiKey}`,
12 },
13 },

referencesmain.tsx1 match

@andreterronUpdated 1 year ago
24}[]> {
25 const res = await fetchJSON(
26 "https://api.val.town/v1/me/references?" +
27 searchParams({
28 since: since?.toISOString(),

graffitiWebsitemain.tsx1 match

@andreterronUpdated 1 year ago
38 await new Promise<void>((resolve) => setTimeout(() => resolve(), 150));
39 }
40 const code = `await api(
41 @andreterron.paintGraffitiPixel,
42 ${Math.min(Math.floor(Math.random() * 64), 64)}, // x

myApimain.tsx1 match

@wondayUpdated 1 year ago
1import { name as name2 } from "https://esm.town/v/wonday/name";
2
3export function myApi(name) {
4 return `hi ${name}! my name is ${name2}`;
5}

myApimain.tsx1 match

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

simple-scrabble-api1 file match

@bryUpdated 15 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 22 hours 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