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=45&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 11759 results for "api"(1755ms)

myApi1 file match

@tannerwj•Updated 1 year ago

myApi1 file match

@evilpaper•Updated 1 year ago

myApi1 file match

@dereko•Updated 1 year ago

exampleAuthApi2 file matches

@stevekrouse•Updated 1 year ago

apiTest1 file match

@maxdrake•Updated 1 year ago

myApi1 file match

@hamza•Updated 1 year ago

myApi1 file match

@threecordguy•Updated 1 year ago

myApi1 file match

@tylergaw•Updated 1 year ago

myApi1 file match

@mgsers•Updated 1 year ago

myAPI1 file match

@haxzie•Updated 1 year ago

Flarum-Discussion-To-PlainTextapp.tsx2 matches

@tyler71•Updated 1 hour ago
112async function getDiscussionPosts(discussionId: string): Promise<PostT[]> {
113 // Used to get the list of post id's for the discussion.
114 const discussionRes = await fetch(`${server}/api/discussions/${discussionId}`);
115 const discussionResJson = await discussionRes.json();
116
124
125 await Promise.all(chunks.map(async (c: string[]) => {
126 const postRes = await fetch(`${server}/api/posts?filter[id]=${c.join(",")}`);
127 const postJson = await postRes.json();
128

Towniesend-message.ts6 matches

@valdottown•Updated 1 hour ago
20 }
21
22 const { messages, project, branchId, anthropicApiKey, selectedFiles, images } = await c.req.json();
23 // console.log("Original messages:", JSON.stringify(messages, null, 2));
24 // console.log("Images received:", JSON.stringify(images, null, 2));
25
26 const apiKey = anthropicApiKey || Deno.env.get("ANTHROPIC_API_KEY");
27 const our_api_token = apiKey === Deno.env.get("ANTHROPIC_API_KEY");
28
29 if (our_api_token) {
30 if (await overLimit(bearerToken)) {
31 return Response.json("You have reached the limit of Townie in a 24 hour period.", { status: 403 });
36
37 const rowid = await startTrackingUsage({
38 our_api_token,
39 bearerToken, // will look up the userId from this
40 branch_id: branchId,
45
46 const anthropic = createAnthropic({
47 apiKey,
48 });
49
apiv1
papimark21