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=938&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 13058 results for "api"(1840ms)

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

CaptchaGetBalancemain.tsx3 matches

@augustohpUpdated 7 months ago
6): Promise<number> {
7 const providerEndpoints: { [key: string]: string } = {
8 capmonster: "https://api.capmonster.cloud/getBalance",
9 anticaptcha: "https://api.anti-captcha.com/getBalance",
10 nextcaptcha: "https://api.nextcaptcha.com/getBalance",
11 };
12 const endpointUrl = providerEndpoints[provider];

v3FanFicScrapermain.tsx3 matches

@willthereaderUpdated 7 months ago
22 setScrapedData(data.content);
23 } catch (error) {
24 console.error("Error scraping URL:", error);
25 setScrapedData("Error scraping URL. Please try again.");
26 }
27 setLoading(false);
41 />
42 <button type="submit" disabled={loading}>
43 {loading ? 'Scraping...' : 'Scrape'}
44 </button>
45 </form>

v3FanFicScraperREADME.md1 match

@willthereaderUpdated 7 months ago
1Migrated from folder: fanficSearcher/ScrapingBeeAttempt/v3FanFicScraper

distinctGoldLarkmain.tsx3 matches

@temptempUpdated 7 months ago
10formData.append("file", blob, "data.json");
11
12// URL of your API
13const apiUrl = "https://filehaus.top/api/upload/data.json"; // Replace with your API URL
14
15// Send the file using fetch
16try {
17 const response = await fetch(apiUrl, {
18 method: "POST",
19 body: formData,

githubreposearchmain.tsx3 matches

@toowiredUpdated 7 months ago
7 const order = "desc";
8
9 const url = `https://api.github.com/search/repositories?q=${encodeURIComponent(query)}&sort=${sort}&order=${order}`;
10
11 const response = await fetch(url, {
12 headers: {
13 "Accept": "application/vnd.github.v3+json",
14 "User-Agent": "Deno-GitHub-Repo-Fetcher", // GitHub API requires a user-agent header
15 },
16 });
17
18 if (!response.ok) {
19 throw new Error(`GitHub API responded with status: ${response.status}`);
20 }
21

madPinkCardinalREADME.md1 match

@test_account_001Updated 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 2 days ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 2 days 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