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=1039&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 11425 results for "api"(3282ms)

myApimain.tsx1 match

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

generateEmbeddingsmain.tsx1 match

@thomasatflexos•Updated 1 year ago
40 splittedDocs,
41 new OpenAIEmbeddings({
42 openAIApiKey: process.env.OPEN_API_KEY,
43 }),
44 {

githubFollowingmain.tsx1 match

@cas•Updated 1 year ago
3// Github following
4export let githubFollowing = fetchJSON(
5 "https://api.github.com/users/stevekrouse/following"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

aqimain.tsx1 match

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

myApimain.tsx1 match

@ayrtonlacerda•Updated 1 year ago
1export function myApi(req, res: express.Response) {
2 return Response.json({ ok: true });
3}

expressHTMLExamplemain.tsx1 match

@octref•Updated 1 year ago
1import { myTestForm } from "https://esm.town/v/octref/myTestForm";
2
3// View at https://api.val.town/v1/express/stevekrouse.expressHTMLExample?name=Steve
4export async function expressHTMLExample(req: express.Request, res: express.Response) {
5 myTestForm.push(req.query.name || req.body.name);

myApimain.tsx1 match

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

githubStarredmain.tsx1 match

@dpointeck•Updated 1 year ago
3// GitHub starred repos
4export let githubStarred = fetchJSON(
5 "https://api.github.com/users/stevekrouse/starred?per_page=10",
6);

mod-interview-api1 file match

@twschiller•Updated 15 hours ago

daily-advice-app1 file match

@dcm31•Updated 3 days ago
Random advice app using Advice Slip API
apiv1
papimark21