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/$%7Burl%7D?q=api&page=1060&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 11633 results for "api"(1507ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

aqimain.tsx1 match

@Exam6918Updated 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

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

expressHTMLExamplemain.tsx1 match

@octrefUpdated 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

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

githubStarredmain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@wfortinUpdated 1 year ago
1export function myApi(name) {
2 const lastUsedName = name;
3 return "hi " + name;

referencesmain.tsx1 match

@mgruelUpdated 1 year ago
25}): Promise<Reference[]> {
26 const data = await fetchJSON<Reference[]>(
27 "https://api.val.town/v1/me/references?" +
28 searchParams({
29 since: since?.toISOString(),

new-val-api-21 file match

@shouserUpdated 16 hours ago
This is an example of using the API to create a val.

gptApiTemplate2 file matches

@charmaineUpdated 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