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/$%7Bsuccess?q=api&page=1381&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 15633 results for "api"(5199ms)

testcase1main.tsx1 match

@charles2•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let testcase1 = fetchJSON('https://api.val.town/eval/@stevekrouse.example1')
4

reactTodoListWebsitemain.tsx1 match

@root•Updated 1 year ago
3import { buildHtml } from "https://esm.town/v/root/buildHtml";
4
5// https://api.val.town/v1/express/liamdanielduffy.reactTodoListWebsite
6export function reactTodoListWebsite(req, res) {
7 console.log(res);

email_testingmain.tsx2 matches

@bitbloxhub•Updated 1 year ago
1export const email_testing = console.email({
2 html: `<link rel="preconnect" href="https://fonts.googleapis.com">
3<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
4<link href="https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto&display=swap" rel="stylesheet"><h1 style="font-family: 'Roboto', sans-serif;">testing 1 2 3</h1>`,
5});

githubGistsmain.tsx1 match

@rodrigotellovaltown•Updated 1 year ago
3// GitHub gists
4export let githubGists = fetchJSON(
5 "https://api.github.com/users/stevekrouse/gists"
6);

githubFollowersmain.tsx1 match

@maxmix•Updated 1 year ago
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);

evalUrlmain.tsx1 match

@neverstew•Updated 1 year ago
3export const evalUrl = async (val: `@${string}.${string}`) =>
4 encodeURI(
5 "https://api.val.town/v1/eval/" + await raw(val),
6 );

SearchValTownmain.tsx1 match

@pomdtr•Updated 1 year ago
5 query,
6 });
7 const searchURL = `https://www.val.town/api/trpc/search?input=${
8 encodeURIComponent(input)
9 }`;

myApimain.tsx1 match

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

telegramWebhookCompramain.tsx1 match

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

fetchCongressTradeReportsmain.tsx1 match

@nari•Updated 1 year ago
11export async function fetchCongressTradeReports(callback) {
12 const res = await fetchJSON(
13 "https://bff.capitoltrades.com/trades?sortBy=-pubDate"
14 );
15 const trades = res.data;

googleGeminiAPI2 file matches

@michaelwschultz•Updated 5 hours ago

HN-fetch-call2 file matches

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