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=1006&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 11576 results for "api"(2657ms)

listValsmain.tsx2 matches

@pomdtrUpdated 1 year ago
30 }
31 const resp = await fetch(
32 `https://api.val.town/v1/search/vals?query=${query}`,
33 );
34 if (!resp.ok) {
63 case "view-val": {
64 const { id } = args;
65 const resp = await fetch(`https://api.val.town/v1/vals/${id}`);
66 if (!resp.ok) {
67 return resp;

myApimain.tsx1 match

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

mathFactmain.tsx1 match

@hultnerUpdated 1 year ago
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getmain.tsx1 match

@cyxUpdated 1 year ago
8 department: "Product",
9 locations: ["New York", "San Francisco", "Remote"],
10 url: "https://boards-api.greenhouse.io/v1/boards/mongodb/jobs?content=true",
11 source: "greenhouse",
12 },

aqimain.tsx1 match

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

apiExamplemain.tsx1 match

@phelanUpdated 1 year ago
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export const apiExample = runVal("patrickjm.gpt3", {
4 prompt: "write me a poem about tralee",
5});

API_URLmain.tsx3 matches

@easrngUpdated 1 year ago
1import { runtime } from "https://esm.town/v/easrng/runtime";
2
3export const API_URL = await runtime() === "v3-staging"
4 ? "https://api.v3.val.town"
5 : "https://api.val.town";

gptApiTemplate2 file matches

@charmaineUpdated 1 day ago

mod-interview-api1 file match

@twschillerUpdated 1 day 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