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=1022&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"(2345ms)

gitlabUserContributionEventsmain.tsx3 matches

@rwev•Updated 1 year ago
5 const after = new Date(afterDateMs).toISOString().split("T")[0];
6 console.log(after);
7 // https://docs.gitlab.com/ee/api/events.html#get-user-contribution-events
8 let userEvents = await fetchJSON(
9 `gitlab.com/api/v4/users/rwev/events?after=${after}`,
10 {
11 headers: {
12 Authorization: `Bearer ${process.env.GITLAB_API_READ_USER}`,
13 },
14 }

myApimain.tsx1 match

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

duckAndWafflemain.tsx1 match

@dot•Updated 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();

myApimain.tsx1 match

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

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}

gptApiTemplate2 file matches

@charmaine•Updated 3 hours ago

mod-interview-api1 file match

@twschiller•Updated 20 hours ago
apiv1
papimark21