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%22Image%20title%22?q=api&page=1416&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 15484 results for "api"(1366ms)

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 {

HN-fetch-call2 file matches

@ImGqb•Updated 2 days ago
fetch HackerNews by API

token-server1 file match

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