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/$%7Burl%7D?q=api&page=3&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 14814 results for "api"(1671ms)

daily-advice-app1 file match

@dcm31•Updated 3 weeks ago
Random advice app using Advice Slip API

runValAPIEx2 file matches

@charmaine•Updated 3 weeks ago

sapientGrayLamprey

@agiron123•Updated 4 weeks ago

PassphraseAPI2 file matches

@wolf•Updated 4 weeks ago

openapi2 file matches

@stevekrouse•Updated 1 month ago

dbToAPI_backup4 file matches

@nbbaier•Updated 1 month ago

perplexityAPI2 file matches

@nbbaier•Updated 1 month ago

dbToAPI4 file matches

@nbbaier•Updated 1 month ago

leadGeneratorAPI1 file match

@run•Updated 1 month ago

DualLangWebSpeechAPI1 file match

@Get•Updated 1 month ago

untitled-1031timekeeper_interface.ts6 matches

@chadparker•Updated 54 mins ago
24 <select id="endpoint" class="w-full p-2 border border-gray-300 rounded-md">
25 <option value="">Root (will show 404)</option>
26 <option value="api" selected>api (main application)</option>
27 <option value="health">health</option>
28 <option value="status">status</option>
76 if (format) params.append('format', format);
77
78 const response = await fetch('/api?' + params.toString());
79
80 if (format === 'raw') {
104 }
105
106 // If it's a request to /api, proxy to the timekeeper reader
107 if (url.pathname === '/api') {
108 const endpoint = url.searchParams.get('endpoint') || '';
109 const format = url.searchParams.get('format') || 'json';
125 // Extract useful information from the HTML if it's the main app
126 let extractedInfo = null;
127 if (endpoint === 'api' && data.includes('Timekeeper')) {
128 const titleMatch = data.match(/<title>(.*?)<\/title>/);
129 const descriptionMatch = data.match(/<meta name="description" content="(.*?)"/);
159 } catch (error) {
160 return new Response(JSON.stringify({
161 error: 'Failed to fetch from timekeeper API',
162 message: error.message,
163 url: targetUrl,

untitled-1031timekeeper_reader.ts3 matches

@chadparker•Updated 54 mins ago
8 console.log(`Fetching from: ${targetUrl}`);
9
10 // Fetch data from the timekeeper API
11 const response = await fetch(targetUrl);
12
27 // Extract useful information from the HTML if it's the main app
28 let extractedInfo = null;
29 if (endpoint === 'api' && data.includes('Timekeeper')) {
30 // Extract metadata from the HTML
31 const titleMatch = data.match(/<title>(.*?)<\/title>/);
65
66 return new Response(JSON.stringify({
67 error: 'Failed to fetch from timekeeper API',
68 message: error.message,
69 url: targetUrl,
Kapil01
apiv1