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/$%7Bsuccess?q=api&page=28&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 11678 results for "api"(538ms)

myApi1 file match

@zeitportUpdated 1 year ago

myApi1 file match

@ragnarUpdated 1 year ago

myApi1 file match

@alejandroUpdated 1 year ago

myApi1 file match

@szamuboyUpdated 1 year ago

myApi1 file match

@stungeyeUpdated 1 year ago

myApi1 file match

@hafifuykuUpdated 1 year ago

myApi2 file matches

@zzzUpdated 1 year ago

myApi1 file match

@irrealUpdated 1 year ago

myApi1 file match

@hedyUpdated 1 year ago

myApi1 file match

@adminUpdated 1 year ago

Flarum-Discussion-To-PlainTextapp.tsx2 matches

@tyler71Updated 46 mins ago
153async function getDiscussionPosts(discussionId: string): Promise<PostT[]> {
154 // Used to get the list of post id's for the discussion.
155 const discussionRes = await fetch(`${server}/api/discussions/${discussionId}`);
156 const discussionResJson = await discussionRes.json();
157
165
166 await Promise.all(chunks.map(async (c: string[]) => {
167 const postRes = await fetch(`${server}/api/posts?filter[id]=${c.join(",")}`);
168 const postJson = await postRes.json();
169

HHGtoMyDaysendDailyBrief.ts8 matches

@lm3mUpdated 1 hour ago
91
92export async function sendDailyBriefing(chatId?: string, today?: DateTime) {
93 // Get API keys from environment
94 const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
95 const telegramToken = Deno.env.get("TELEGRAM_TOKEN");
96
100 }
101
102 if (!apiKey) {
103 console.error("Anthropic API key is not configured.");
104 return;
105 }
116
117 // Initialize Anthropic client
118 const anthropic = new Anthropic({ apiKey });
119
120 // Initialize Telegram bot
156
157 // disabled title for now, it seemes unnecessary...
158 // await bot.api.sendMessage(chatId, `*${title}*`, { parse_mode: "Markdown" });
159
160 // Then send the main content
163
164 if (content.length <= MAX_LENGTH) {
165 await bot.api.sendMessage(chatId, content, { parse_mode: "Markdown" });
166 // Store the briefing in chat history
167 await storeChatMessage(
192 // Send each chunk as a separate message and store in chat history
193 for (const chunk of chunks) {
194 await bot.api.sendMessage(chatId, chunk, { parse_mode: "Markdown" });
195 // Store each chunk in chat history
196 await storeChatMessage(
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration