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=1&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 18640 results for "api"(1203ms)

shippingAPI1 file match

@dynamic_silver•Updated 15 hours ago

Galacta3 file matches

@defunkt•Updated 1 day ago
Marvel Rivals GPT via tracker.gg API

github-api2 file matches

@cricks_unmixed4u•Updated 1 day ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 1 day ago

twitterAPI1 file match

@charmaine•Updated 2 days ago

googleGeminiAPI2 file matches

@Roskozbigboss•Updated 2 days ago

xxxclearinghouse_validator

@toowired•Updated 4 days ago
Request validator for clearance API

Apiify11 file matches

@wolf•Updated 5 days ago

dailyQuoteAPI

@Souky•Updated 1 week ago

HTTP

@Ncharity•Updated 1 week ago
Daily Quote API

steel_puppeteer_startermain.tsx7 matches

@hrev•Updated 2 hours ago
6import Steel, { type Session } from 'steel-sdk';
7
8// This is a placeholder function showing how you would call an AI API.
9// You would replace this with the actual Google AI SDK (`@google/generative-ai`).
10async function getTextFromImageWithGemini(filePath: string): Promise<string> {
14 // In a real scenario, you would:
15 // 1. Install the Google AI SDK: `npm install @google/generative-ai`
16 // 2. Initialize the Gemini client with your API key.
17 // 3. Read the image file from the filePath.
18 // 4. Convert it to a format the API accepts (like base64).
19 // 5. Send it to the model (e.g., 'gemini-1.5-flash').
20 // 6. Return the `model.generateContent()` response.
27
28async function main(): Promise<void> {
29 if (!process.env.STEEL_API_KEY) {
30 console.error("Fatal: STEEL_API_KEY environment variable is not set.");
31 process.exit(1);
32 }
36
37 try {
38 const client = new Steel({ steelAPIKey: process.env.STEEL_API_KEY });
39
40 console.log("Creating Steel session...");
43
44 browser = await puppeteer.connect({
45 browserWSEndpoint: `wss://connect.steel.dev?apiKey=${process.env.STEEL_API_KEY}&sessionId=${session.id}`,
46 });
47 console.log("Connected to browser via Puppeteer");
Plantfo

Plantfocache.ts1 match

@Llad•Updated 4 hours ago
109 } catch (error) {
110 console.error('Error caching plant:', error);
111 // Don't throw error - caching failure shouldn't break the API
112 }
113}
Kapil01
apiv1