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=51&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 19249 results for "api"(1093ms)

myApi2 file matches

@michaelheckmannUpdated 1 year ago

myApi1 file match

@igorUpdated 1 year ago

myApi1 file match

@tech_alyUpdated 1 year ago

myApi1 file match

@danieledrisianUpdated 1 year ago

myApi1 file match

@emilsallUpdated 1 year ago

getOpenapiEmbedding1 file match

@wiltUpdated 1 year ago

apiTest1 file match

@wiltUpdated 1 year ago

basicAPIEx2 file matches

@stevekrouseUpdated 1 year ago

myApi1 file match

@sharetruUpdated 1 year ago

myApi1 file match

@frankysnowUpdated 1 year ago

huyhieuREADME.md1 match

@lanlyUpdated 25 mins ago
15- Fast and lightweight
16
17### HuyHieu API
18```
19/huyhieu?url=<website>&label=<label>&value=<value>&color=<color>&textcolor=<textcolor>&size=<size>&radius=<radius>&shape=<shape>

Louai_performance_api.ts15 matches

@jeffvincentUpdated 26 mins ago
1/**
2 * AI Team Performance Analysis HTTP API
3 *
4 * Provides HTTP endpoints for triggering analysis and accessing results
15
16/**
17 * Main HTTP handler for AI performance analysis API
18 *
19 * Supported endpoints:
71
72 if (method === "GET" && pathname === "/") {
73 return await handleApiDocumentation(corsHeaders);
74 }
75
94 );
95 } catch (error) {
96 console.error("API Error:", error);
97 return new Response(
98 JSON.stringify({
135 }
136
137 console.log(`🚀 API: Starting analysis for user ${userId}, league ${leagueId}`);
138 const startTime = Date.now();
139
172 }
173
174 console.log(`✅ API: Analysis complete in ${executionTime}ms`);
175
176 // Return structured response
218async function handleGetAnalysis(userId: string, corsHeaders: Record<string, string>): Promise<Response> {
219 try {
220 console.log(`📊 API: Retrieving latest analysis for user ${userId}`);
221
222 const latestAnalysis = await getLatestAnalysis(userId);
272 timestamp: new Date().toISOString(),
273 services: {
274 api: "operational",
275 scheduler: schedulerSummary.error ? "degraded" : "operational",
276 storage: "operational",
332 await addSchedulerConfig(schedulerConfig);
333
334 console.log(`⏰ API: Scheduler config added for user ${config.userId}`);
335
336 return new Response(
376 await removeSchedulerConfig(userId, leagueId);
377
378 console.log(`🗑️ API: Scheduler config removed for user ${userId}`);
379
380 return new Response(
411 summary,
412 nextRun: "Configured in Val.town cron settings",
413 documentation: "See API docs for scheduling configuration",
414 };
415
430
431/**
432 * Handle API documentation request
433 * GET /
434 */
435async function handleApiDocumentation(corsHeaders: Record<string, string>): Promise<Response> {
436 const docs = {
437 title: "AI Fantasy Baseball Performance Analysis API",
438 version: "1.0.0",
439 description: "API for triggering AI-powered fantasy baseball analysis and waiver wire recommendations",
440 endpoints: {
441 "GET /analyze": {
apiry
snartapi