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/$1?q=api&page=1433&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 17842 results for "api"(5006ms)

adorableRedChameleonmain.tsx2 matches

@jamisonlUpdated 9 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 9 months ago
1# trpc
2
3 Access private Val Town apis.
4
5> ⚠️ trpc endpoints can change at any time

trpcmain.tsx1 match

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

flixmain.tsx2 matches

@tempdevUpdated 9 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 9 months ago
1# trpc
2
3 Access private Val Town apis.
4
5> ⚠️ trpc endpoints can change at any time

trpcmain.tsx1 match

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

aqiREADME.md1 match

@amoebaUpdated 9 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

simpleLoginmain.tsx3 matches

@yawnxyzUpdated 9 months ago
22 clientId: Deno.env.get("GITHUB_OAUTH_TEST1_CLIENT"),
23 clientSecret: Deno.env.get("GITHUB_OAUTH_TEST1_SECRET"),
24 userInfoUrl: "https://api.github.com/user"
25 },
26 google: {
28 clientSecret: Deno.env.get("GOOGLE_OAUTH_COVERSHEET_SECRET"),
29 redirectUri: "https://yawnxyz-hnclonehtmx.web.val.run/auth/google/callback",
30 userInfoUrl: "https://openidconnect.googleapis.com/v1/userinfo"
31 }
32 }
49 <a href="/auth/google">Sign in with Google</a>
50 <br>
51 <br>Note that Github and Google should work in principle, I just didn't configure them to work on this example in Google's API console or Github's thing :P
52 `);
53});

zillowScrapermain.tsx3 matches

@rochambeau314Updated 9 months ago
1// This scraper provides a simple HTML form to input a Zillow URL.
2// It then uses the fetch API to get the HTML content of the Zillow listing page,
3// parses it using cheerio to extract the required information,
4// and displays the results in a table.
75 `;
76 } catch (error) {
77 console.error("Error scraping Zillow:", error);
78 resultHtml = '<p>Error scraping Zillow listing</p>';
79 }
80 }

craigslistScrapermain.tsx1 match

@rochambeau314Updated 9 months ago
1// This approach will use the fetch API to get the Craigslist page content,
2// parse it using cheerio, extract the required information,
3// and render it in a table format. We'll use React for the client-side rendering.

dailyQuoteAPI

@SoukyUpdated 20 hours ago

HTTP

@NcharityUpdated 22 hours ago
Daily Quote API
Kapil01
apiv1