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/$%7Bart_info.art.src%7D?q=api&page=916&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 12844 results for "api"(2768ms)

dependentHarlequinTigermain.tsx1 match

@willthereaderUpdated 7 months ago
4 try {
5 const browser = await puppeteer.connect({
6 browserWSEndpoint: `wss://connect.browserbase.com?apiKey=${Deno.env.get("BROWSERBASE_API_KEY")}`,
7 });
8

Badge_Generatormain.tsx1 match

@muhammad_owais_warsiUpdated 7 months ago
136 <meta charset="UTF-8">
137 <meta name="viewport" content="width=device-width, initial-scale=1.0">
138 <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
139 <title>Val Town Badge Generator</title>
140 <style>${css}</style>

freesoundSearchmain.tsx3 matches

@sedsonUpdated 7 months ago
7import * as qs from "https://deno.land/x/querystring@v1.0.2/mod.js";
8
9const FREESOUND_API_KEY = Deno.env.get("FREESOUND_API_KEY");
10const BASE_URL = "https://freesound.org/apiv2";
11
12interface FreeSoundResponse {
28 const queryString = qs.stringify({
29 query: query,
30 token: FREESOUND_API_KEY,
31 fields: "id,name,previews",
32 page_size: 1,

iframeGridInfinitemain.tsx4 matches

@maxmUpdated 7 months ago
142 setIsLoading(true);
143 try {
144 const response = await fetch('/api/submit-url', {
145 method: 'POST',
146 headers: {
162 const loadUrlDatabase = async () => {
163 try {
164 const response = await fetch('/api/load-urls');
165 if (!response.ok) throw new Error('Failed to load URLs');
166 const loadedUrls = await response.json();
256
257async function server(request: Request): Promise<Response> {
258 if (request.method === 'POST' && new URL(request.url).pathname === '/api/submit-url') {
259 return handleSubmitUrl(request);
260 }
261
262 if (request.method === 'GET' && new URL(request.url).pathname === '/api/load-urls') {
263 return handleLoadUrls();
264 }

blindIvoryArmadillomain.tsx4 matches

@katarzynam1405Updated 7 months ago
1type _Capitalize<T extends string> = T extends `${infer Letter}` ? Uppercase<Letter> : T;
2type Check = _Capitalize<"test">;
3
4type SimpleCapitalize<T extends string> = Uppercase<T>;
5type SimpleCapitalizeCheck = SimpleCapitalize<"second_test">;

drumMachinemain.tsx1 match

@sedsonUpdated 7 months ago
1// A web audio drum machine that pulls samples from the Freesound search API.
2// A 16-step step sequencer with 4 sampled voices. Each sample is the first two
3// seconds of a Freesound search result. Tweaking the search string a little bit

broadRedMarmosetmain.tsx20 matches

@willthereaderUpdated 7 months ago
11 e.preventDefault();
12 setLoading(true);
13 console.log(`Submitting URL for scraping: ${url}`);
14 try {
15 const response = await fetch("/scrape", {
22 setResult(data);
23 } catch (error) {
24 console.log(`Error occurred while scraping URL: ${url}. Error details: ${error.message}`);
25 setResult({ error: error.message });
26 }
40 />
41 <button type="submit" disabled={loading}>
42 {loading ? "Scraping..." : "Scrape"}
43 </button>
44 </form>
77async function scrapePage(url) {
78 console.log(`Starting to scrape page: ${url}`);
79 const apiKey = Deno.env.get("ScrapingBeeAPIkey");
80 if (!apiKey) {
81 console.log("ScrapingBee API key not found in environment variables");
82 throw new Error("ScrapingBee API key not found in environment variables");
83 }
84
89 const threadmarkUrl = `${url}/threadmarks?hide_wrapper=1&display=embedded&threadmark_category=${category}`;
90 const response = await fetch(
91 `https://app.scrapingbee.com/api/v1/?api_key=${apiKey}&url=${
92 encodeURIComponent(threadmarkUrl)
93 }&render_js=true&premium_proxy=true&stealth_proxy=true`,
128 };
129
130 console.log(`Sending request to ScrapingBee for URL: ${url} at ${new Date().toISOString()}`);
131 const startTime = Date.now();
132 try {
133 const requestUrl = `https://app.scrapingbee.com/api/v1/?api_key=${apiKey}&url=${
134 encodeURIComponent(url)
135 }&render_js=true&premium_proxy=true&stealth_proxy=true&extract_rules=${
142
143 const duration = Date.now() - startTime;
144 console.log(`Received response from ScrapingBee at ${new Date().toISOString()}. Duration: ${duration}ms`);
145 console.log(`Received response from ScrapingBee for URL: ${url}. Status: ${response.status}`);
146
147 if (!response.ok) {
148 console.log(`Error response from ScrapingBee. Status: ${response.status}`);
149 const errorBody = await response.text();
150 console.log(`Error response body: ${errorBody}`);
183 };
184 } catch (error) {
185 console.log(`Error occurred while scraping URL: ${url}`);
186 console.log(`Error details: ${error.message}`);
187 console.log(`Error stack: ${error.stack}`);
190}
191
192async function getApiKey() {
193 const apiKey = Deno.env.get("ScrapingBeeAPIkey");
194 if (!apiKey) {
195 console.log("ScrapingBee API key not found in environment variables");
196 throw new Error("ScrapingBee API key not found in environment variables");
197 }
198 return apiKey;
199}
200

allmapsREADME.md1 match

@sammeltassenUpdated 7 months ago
1## Random Maps API
2
3This val returns one or more random rows from a [SQLite database](https://docs.val.town/std/sqlite/usage/) as a JSON array. Each item represents a digitised map from a collection and contains the following properties:

Chatprincipalmain.tsx1 match

@arthrodUpdated 7 months ago
494 <title>Cicero AI - AI-powered Contract Creation</title>
495 <meta name="viewport" content="width=device-width, initial-scale=1">
496 <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
497 </head>
498 <body>

blob_adminREADME.md1 match

@synapticroboticsUpdated 7 months ago
9[![](https://stevekrouse-button.express.val.run/Install)](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
10
11It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
12
13# TODO

vapi-minutes-db1 file match

@henrywilliamsUpdated 1 day ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 1 day ago
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
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com