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/$2?q=api&page=1396&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 15731 results for "api"(5633ms)

myApimain.tsx1 match

@matallo•Updated 1 year ago
1export function myApi(name) {
2 console.email;
3 return "hi " + name;

emailNowcastPMAqimain.tsx1 match

@russbiggs•Updated 1 year ago
7
8 let res = await fetchJSON(
9 "https://api.openaq.org/v2/measurements?" +
10 new URLSearchParams({
11 limit: "100",

rrpmain.tsx1 match

@dharmatech•Updated 1 year ago
2
3export let rrp = fetchJSON(
4 "https://markets.newyorkfed.org/api/rp/reverserepo/propositions/search.json?startDate=2022-05-01"
5);

expressHTMLExample2main.tsx1 match

@henrik•Updated 1 year ago
1import { mails } from "https://esm.town/v/henrik/mails";
2
3// View at https://api.val.town/express/@stevekrouse.expressHTMLExample?name=Steve
4export async function expressHTMLExample2(
5 req: express.Request,

myApimain.tsx1 match

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

testcase1main.tsx1 match

@marianoguerra•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/swyx/fetchJSON";
2
3export let testcase1 = fetchJSON('https://api.val.town/eval/@stevekrouse.messages')
4
5// export state = () => {

myApimain.tsx1 match

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

parseCommonElementsExamplemain.tsx1 match

@neverstew•Updated 1 year ago
1export const parseCommonElementsExample = (
2 $: import("npm:cheerio@1.0.0-rc.12").CheerioAPI,
3 element: import("npm:cheerio@1.0.0-rc.12").Element,
4) => ({

telegramWebhookEchoMessagemain.tsx1 match

@neverstew•Updated 1 year ago
5 // Verify this webhook came from our bot
6 if (
7 req.headers.get("x-telegram-bot-api-secret-token") !==
8 process.env.telegramWebhookSecret
9 ) {

likesmain.tsx1 match

@neverstew•Updated 1 year ago
26}> {
27 return fetchJSON(
28 "https://api.val.town/v1/me/likes?" + searchParams({
29 offset: offset?.toString(),
30 limit: limit?.toString(),

googleGeminiAPI2 file matches

@michaelwschultz•Updated 8 hours ago

HN-fetch-call2 file matches

@ImGqb•Updated 3 days ago
fetch HackerNews by API
Kapil01
apiv1