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/image-url.jpg%20%22Optional%20title%22?q=api&page=1477&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 16593 results for "api"(1512ms)

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;

communityBoatingFlagmain.tsx1 match

@twschiller•Updated 1 year ago
2
3export async function communityBoatingFlag() {
4 const response = await fetch("https://api.community-boating.org/api/flag");
5 const text = await response.text();
6 // Regex by Chat GPT :shrug:

Schedule

@Ozy•Updated 2 hours ago
Schedule_api

googleGeminiAPI2 file matches

@michaelwschultz•Updated 19 hours ago
Kapil01
apiv1