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/image-url.jpg%20%22Optional%20title%22?q=api&page=7&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 11716 results for "api"(1269ms)

GitHubAPI1 file match

@sharon•Updated 5 months ago

valCoinApi2 file matches

@aggy•Updated 6 months ago

graphqlAPIEndpoint2 file matches

@flesch•Updated 6 months ago

sendxmppapi1 file match

@singpolyma•Updated 6 months ago

api2 file matches

@campsite•Updated 6 months ago

strivingSilverTapir1 file match

@dcm31•Updated 6 months ago

api

@romanewmedia•Updated 6 months ago

pageSpeedAPI1 file match

@eligosmlytics•Updated 7 months ago

getAirtableDataAPI1 file match

@stnkvcs•Updated 7 months ago

stockAPI2 file matches

@pete•Updated 7 months ago

EEPMOnitoringApp.tsx4 matches

@solomonferede•Updated 28 mins ago
294==========================*/
295// The server function remains the same as in the previous single-file solution,
296// as it handles API requests and serves the main HTML.
297// Its logic is independent of how the client-side components are structured into files.
298export default async function server(
346 const method = request.method;
347
348 // API Routes (same logic as before)
349 if (path === "/login" && method === "POST") {
350 const body = await request.json();
463 }
464
465 // API endpoint to handle editing a news article
466 if (path === "/edit-news" && method === "PUT") {
467 try {
588 }
589
590 // --- End Media Monitoring Specific API Routes ---
591 // --- NEW ENDPOINT: Generate Weekly Summary ---
592 if (path === "/generate-weekly-summary" && method === "GET") {

ga4-eventga4-util.tsx3 matches

@sprout•Updated 53 mins ago
2export async function trackGA4Event(req, clientPrefix) {
3 const GA4_MEASUREMENT_ID = Deno.env.get(`${clientPrefix}_GA4_MEASUREMENT_ID`);
4 const GA4_API_SECRET = Deno.env.get(`${clientPrefix}_GA4_API_KEY`);
5
6 if (!GA4_MEASUREMENT_ID || !GA4_API_SECRET) {
7 return new Response(`Missing GA4 environment variables for ${clientPrefix}`, { status: 500 });
8 }
24
25 const GA4_ENDPOINT =
26 `https://www.google-analytics.com/mp/collect?measurement_id=${GA4_MEASUREMENT_ID}&api_secret=${GA4_API_SECRET}`;
27
28 const ga4Payload = {
apiv1
papimark21