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=1034&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 11988 results for "api"(1123ms)

feedGeneratormain.tsx2 matches

@lukas•Updated 1 year ago
40 };
41}) {
42 const { default: atproto } = await import("https://cdn.jsdelivr.net/npm/@atproto/api/+esm");
43 const { default: resolver } = await import("npm:@atproto/did-resolver");
44 const feedUri = atproto.AtUri.make(
108 }
109 else {
110 res.json("TODO, proxy all request to the Val Town API from this val");
111 }
112 };

myApimain.tsx1 match

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

denoImportExmain.tsx1 match

@libo•Updated 1 year ago
7 const url = "https://blog.samaltman.com/how-to-be-successful";
8 const res = await fetch(
9 "https://extractus.deno.dev/extract?apikey=rn0wbHos2e73W6ghQf705bdF&type=article&url=" +
10 url
11 );

blogRSSTrackermain.tsx4 matches

@ianvph•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { set } from "https://esm.town/v/std/set?v=11";
3import { postHogAPICapture } from "https://esm.town/v/ianvph/postHogAPICapture";
4import { email } from "https://esm.town/v/ianvph/email";
5import { phProjectAPIKey } from "https://esm.town/v/ianvph/phProjectAPIKey";
6import { newestBlogLink } from "https://esm.town/v/ianvph/newestBlogLink";
7import { parseXML } from "https://esm.town/v/stevekrouse/parseXML?v=1";
26 };
27 const captureData = {
28 key: phProjectAPIKey,
29 event: "new blog published",
30 properties: properties,
31 distinct_id: email,
32 };
33 postHogAPICapture(captureData);
34 await set("newestBlogLink", newestEntry.link);
35 return "new blog captured";

mathFactmain.tsx1 match

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

myApimain.tsx1 match

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

nameTopHNThreadmain.tsx1 match

@elsif_maj•Updated 1 year ago
2
3export let nameTopHNThread = (async () => {
4 // Cheerio parses markup and provides an API to interact with the resulting data structure
5 const cheerio = await import("npm:cheerio"); // You can import NPM packages
6 const reply = await fetch("https://news.ycombinator.com/");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

californiaBusinessNotificationsmain.tsx1 match

@tmcw•Updated 1 year ago
6 const { parse } = await import("https://deno.land/x/xml/mod.ts");
7 const res: any = await fetch(
8 "https://bizfileonline.sos.ca.gov/api/FilingDetail/business/4603/false",
9 {
10 headers: {

social_data_api_project3 file matches

@tsuchi_ya•Updated 10 hours ago

simple-scrabble-api1 file match

@bry•Updated 2 days ago
snartapi
papimark21