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=1&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 11425 results for "api"(736ms)

apiv1
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
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com
mux
Your friendly, neighborhood video API.
api
aquapi
substrate
Substrate is the modular API for fast multi-step AI programs
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)
apistatcommand3r

untitled-9414main.tsx10 matches

@bernardoUpdated 2 hours ago
13const webhookIdToDelete = "51a2064a0098b4feacadfd7db51f6a21"; // ← Change this
14
15async function listWebhooks(apiKey: string, propertyId: string): Promise<CloudbedsWebhook[]> {
16 const res = await fetch(`https://hotels.cloudbeds.com/api/v1.2/getWebhooks?propertyID=${propertyId}`, {
17 headers: { Authorization: `Bearer ${apiKey}` },
18 });
19
29}
30
31async function deleteWebhookById(apiKey: string, id: string, url: string, object: string, action: string) {
32 const body = new URLSearchParams({
33 subscriptionID: id,
37 });
38
39 const res = await fetch("https://hotels.cloudbeds.com/api/v1.2/deleteWebhook", {
40 method: "POST",
41 headers: {
42 Authorization: `Bearer ${apiKey}`,
43 "Content-Type": "application/x-www-form-urlencoded",
44 },
54export default async function() {
55 const user = await blob.getJSON(`cloudbeds_user_${userId}`);
56 const apiKey = user?.cloudbedsAccounts?.[propertyId]?.apiKey;
57 if (!apiKey) throw new Error(`Missing API key for user ${userId} and property ${propertyId}`);
58
59 const webhooks = await listWebhooks(apiKey, propertyId);
60 const match = webhooks.find(w => w.id === webhookIdToDelete);
61 if (!match) throw new Error(`Webhook ${webhookIdToDelete} not found on property ${propertyId}`);
62
63 await deleteWebhookById(
64 apiKey,
65 match.id,
66 match.subscriptionData.url,

stevensDemosendDailyBrief.ts8 matches

@tijsUpdated 4 hours ago
97
98export async function sendDailyBriefing(chatId?: string, today?: DateTime) {
99 // Get API keys from environment
100 const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
101 const telegramToken = Deno.env.get("TELEGRAM_TOKEN");
102
106 }
107
108 if (!apiKey) {
109 console.error("Anthropic API key is not configured.");
110 return;
111 }
122
123 // Initialize Anthropic client
124 const anthropic = new Anthropic({ apiKey });
125
126 // Initialize Telegram bot
162
163 // disabled title for now, it seemes unnecessary...
164 // await bot.api.sendMessage(chatId, `*${title}*`, { parse_mode: "Markdown" });
165
166 // Then send the main content
169
170 if (content.length <= MAX_LENGTH) {
171 await bot.api.sendMessage(chatId, content, { parse_mode: "Markdown" });
172 // Store the briefing in chat history
173 await storeChatMessage(
198 // Send each chunk as a separate message and store in chat history
199 for (const chunk of chunks) {
200 await bot.api.sendMessage(chatId, chunk, { parse_mode: "Markdown" });
201 // Store each chunk in chat history
202 await storeChatMessage(

mod-interview-api1 file match

@twschillerUpdated 15 hours ago

daily-advice-app1 file match

@dcm31Updated 3 days ago
Random advice app using Advice Slip API