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/$2?q=api&page=1419&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 15466 results for "api"(4607ms)

githubEventsmain.tsx1 match

@bram•Updated 1 year ago
3// GitHub events
4export let githubEvents = fetchJSON(
5 "https://api.github.com/users/bramses/events"
6);

myApimain.tsx1 match

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

npmExamplemain.tsx1 match

@taowen•Updated 1 year ago
4 ); // The Lodash library exported as ES modules.
5 const client = new Client(
6 "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"
7 );
8 const prompt = `${HUMAN_PROMPT}

testmain.tsx9 matches

@yawnxyz•Updated 1 year ago
2 res.json({
3 schema_version: "v1",
4 name_for_human: "APIs.guru Plugin",
5 name_for_model: "apis.guru",
6 description_for_human: "Plugin for accessing APIs.guru OpenAPI Directory.",
7 description_for_model:
8 "Plugin for accessing APIs.guru OpenAPI Directory. Use the list.json endpoint to find APIs. Use the metrics.json endpoint to find metadata about APIs such as counts, totals and charting data.",
9 auth: {
10 type: "none",
11 },
12 api: {
13 type: "openapi",
14 url: "https://api.apis.guru/v2/ai-openapi.yaml",
15 is_user_authenticated: false,
16 },
17 logo_url: "https://api.apis.guru/logo.svg",
18 contact_email: "mike.ralphson@gmail.com",
19 legal_info_url: "https://apis.guru",
20 });
21};

myApimain.tsx1 match

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

myApimain.tsx1 match

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

aqimain.tsx1 match

@herku•Updated 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

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

myApimain.tsx1 match

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

boredActivitiesmain.tsx1 match

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

HN-fetch-call2 file matches

@ImGqb•Updated 2 days ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 3 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1