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/?q=api&page=811&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 11605 results for "api"(1736ms)

pleasedLavenderAlbatrossmain.tsx3 matches

@ganeshkumartkUpdated 8 months ago
15 bgColor?: string;
16 font?: string;
17 api_base?: string;
18}
19
25 bgColor,
26 font,
27 api_base,
28}: MicroReactProps) {
29 const baseUrl = "https://microreact.glitch.me/embed/index.html";
37 if (bgColor) params.append("bgColor", encodeURIComponent(bgColor));
38 if (font) params.append("font", encodeURIComponent(font));
39 if (api_base) params.append("api_base", api_base);
40
41 const iframeSrc = `${baseUrl}?${params.toString()}`;

telegramValTownBotWebhookmain.tsx1 match

@stevekrouseUpdated 8 months ago
9 // Verify this webhook came from our bot
10 if (
11 req.headers.get("x-telegram-bot-api-secret-token")
12 !== Deno.env.get("telegramWebhookSecret")
13 ) {

buttonmain.tsx1 match

@stevekrouseUpdated 8 months ago
30 try {
31 const r = await fetch(
32 "https://fonts.googleapis.com/css2?family=" +
33 encodeURIComponent("IBM Plex Sans:wght@600") +
34 "&text=" +

adorableRedChameleonmain.tsx2 matches

@jamisonlUpdated 8 months ago
2import { blob } from "https://esm.town/v/std/blob";
3// Bump version
4import { Routes } from "https://deno.land/x/discord_api_types@0.37.99/v9.ts";
5import { REST } from "npm:@discordjs/rest";
6import { createAudioPlayer, createAudioResource, joinVoiceChannel } from "npm:@discordjs/voice";
7import googleTTS from "npm:google-tts-api";
8let bank = await blob.getJSON("bank");
9let bets = await blob.getJSON("bets");

trpcREADME.md1 match

@yawnxyzUpdated 8 months ago
1# trpc
2
3 Access private Val Town apis.
4
5> ⚠️ trpc endpoints can change at any time

trpcmain.tsx1 match

@yawnxyzUpdated 8 months ago
1const baseURL = `https://www.val.town/api/trpc`;
2
3export const trpc = {

flixmain.tsx2 matches

@tempdevUpdated 8 months ago
62 );
63});
64app.get("/api/episodes/:slug", async (c) => {
65 const { slug } = c.req.param();
66 const episodes = await episodeHandler(slug);
127 <title>${mediaId}</title>
128 <style>
129 @import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;700&display=swap');
130
131 html,

trpcREADME.md1 match

@hamzaniauUpdated 8 months ago
1# trpc
2
3 Access private Val Town apis.
4
5> ⚠️ trpc endpoints can change at any time

trpcmain.tsx1 match

@hamzaniauUpdated 8 months ago
1const baseURL = `https://www.val.town/api/trpc`;
2
3export const trpc = {

aqiREADME.md1 match

@amoebaUpdated 8 months ago
8
91. Click `Fork`
102. Change `location` (Line 4) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
113. Click `Run`
12

new-val-api-21 file match

@shouserUpdated 14 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