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?q=api&page=59&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 12952 results for "api"(24886ms)

myApi1 file match

@troygoode•Updated 1 year ago

myApi1 file match

@khy•Updated 1 year ago

myApi1 file match

@codinginpublic•Updated 1 year ago

myApi1 file match

@jackbridger•Updated 1 year ago

polygonDailyAPI2 file matches

@rwev•Updated 1 year ago

myApi1 file match

@dsandler•Updated 1 year ago

myApi1 file match

@javi•Updated 1 year ago

myApi1 file match

@xiaogenban•Updated 1 year ago

myApi1 file match

@taowen•Updated 1 year ago

myApi1 file match

@ddpopbb3•Updated 1 year ago

simple-agentdemo.tsx10 matches

@abrinz•Updated 14 mins ago
9
10 if (contentType.includes("application/json")) {
11 // Process API request from the client-side JavaScript
12 const body = await req.json();
13 objective = body.objective || objective;
14
15 // Make API call with the objective from the form
16 const requestBody = {
17 messages: [
25 headers: {
26 "Content-Type": "application/json",
27 "Authorization": `Bearer ${Deno.env.get("AGENT_API_KEY")}`,
28 },
29 body: JSON.stringify(requestBody),
34 }
35
36 // Get the API response data
37 const responseData = await response.json();
38 console.log("API Response:", responseData);
39
40 // Return JSON response for the fetch API
41 return new Response(JSON.stringify({
42 success: true,
53 objective = formData.get("objective")?.toString() || objective;
54
55 // Make API call with the objective from the form
56 const requestBody = {
57 messages: [
65 headers: {
66 "Content-Type": "application/json",
67 "Authorization": `Bearer ${Deno.env.get("AGENT_API_KEY")}`,
68 },
69 body: JSON.stringify(requestBody),
74 }
75
76 // Get the API response data
77 const responseData = await response.json();
78 console.log("API Response:", responseData);
79
80 // Return HTML with the results

simple-agentdiagram.tsx1 match

@abrinz•Updated 18 mins ago
5 linkStyle default stroke:#aaaaaa,stroke-width:1.5px
6
7 API[API] <--> Agent
8 Chat[Chat] <--> Agent
9
snartapi
mux
Your friendly, neighborhood video API.