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=1019&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 11496 results for "api"(3022ms)

resultmain.tsx1 match

@aria•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let result = (await fetch('https://swapi.dev/api/people/1/')).json()

generateValCodeAPImain.tsx1 match

@andreterron•Updated 1 year ago
2import { generateValCode } from "https://esm.town/v/andreterron/generateValCode";
3
4export let generateValCodeAPI = (description: string) =>
5 generateValCode(
6 process.env.VT_OPENAI_KEY,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@ooo_ooo_oooooh•Updated 1 year ago
1export function myApi(question, answer) {
2 return `${question}? - ${answer}`;
3}

myApimain.tsx1 match

@mik639•Updated 1 year ago
1import { greet } from "https://esm.town/v/mik639/greet";
2
3export function myApi(name) {
4 console.email(greet(name), "Test email");
5}

myApimain.tsx1 match

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

getAaveV2Liquidationsmain.tsx1 match

@alexandre•Updated 1 year ago
8 );
9 const result = await fetch(
10 "https://gateway.thegraph.com/api/6e951d2948be69a241891fb15ec9cefb/deployments/id/QmYN4ofRb5CUg1WdpLhhNTVCuiiAt29hBKGjTnnxYh9zYt",
11 {
12 "headers": {

hasValTownStyleGuideUpdatedmain.tsx1 match

@stevekrouse•Updated 1 year ago
5export let hasValTownStyleGuideUpdated = async (since: Date) => {
6 let commits = await fetchJSON(
7 "https://api.github.com/repos/val-town/val.town/commits?path=/src/style.tsx&since=" +
8 since.toISOString(),
9 {

gptApiTemplate2 file matches

@charmaine•Updated 9 hours ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21