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/$%7Burl%7D?q=api&page=941&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 13032 results for "api"(2163ms)

slackScoutREADME.md4 matches

@nickaggarwalUpdated 8 months ago
7## Getting Started
8To run Slack Scout, you’ll need a
9- Browserbase API key
10- Slack Webhook URL: setup [here](https://docs.val.town/integrations/slack/send-messages-to-slack/)
11- Twitter Developer API key
12
13### Browserbase
19### Twitter
20
21We’ve decided to use the Twitter API to include Twitter post results. It costs $100 / month to have a Basic Twitter Developer account. _If you decide to use Browserbase, we can lend our token. Comment below for access._
22
23Once you have the `SLACK_WEBHOOK_URL`, `BROWSERBASE_API_KEY`, and `TWITTER_BEARER_TOKEN`, input all of these as [Val Town Environment Variables](https://www.val.town/settings/environment-variables).
24
25---

slackScoutmain.tsx3 matches

@nickaggarwalUpdated 8 months ago
54 query: topic,
55 pages: 2,
56 apiKey: Deno.env.get("BROWSERBASE_API_KEY") ?? "",
57 });
58}
63 maxResults: 10,
64 daysBack: 1,
65 apiKey: Deno.env.get("TWITTER_BEARER_TOKEN") ?? "",
66 });
67}
98
99 if (!response.ok) {
100 throw new Error(`Slack API error: ${response.status} ${response.statusText}`);
101 }
102

ForexDataHubmain.tsx3 matches

@samweistUpdated 8 months ago
44 const url = new URL(request.url);
45
46 if (url.pathname === "/api/calendar") {
47 const currentDate = new Date("2024-09-14");
48 const futureEvents = generateFutureEvents().map(event => ({
97 }
98
99 // ... (keep other API endpoints)
100
101 // HTML pages
103 let calendarEvents;
104 try {
105 const response = await fetch(new URL("/api/calendar", request.url));
106 calendarEvents = await response.json();
107 if (!Array.isArray(calendarEvents)) {

memoryApiExamplemain.tsx7 matches

@xkontiUpdated 8 months ago
1import { handleMemoryApiRequest } from "https://esm.town/v/xkonti/gptMemoryManager";
2
3export const memoryApiExample = async (req: Request) => {
4 const apiName = "Memory API";
5 const contactEmail = "some@email.com";
6 const lastPolicyUpdate = "2023-11-28";
7 const blobKeyPrefix = "gpt:memories:";
8 const apiKeyPrefix = "GPTMEMORYAPI_KEY_";
9
10 return await handleMemoryApiRequest(
11 req,
12 apiName,
13 contactEmail,
14 lastPolicyUpdate,
15 blobKeyPrefix,
16 apiKeyPrefix,
17 );
18};

FanficSearcherWebsitemain.tsx9 matches

@willthereaderUpdated 8 months ago
2import { configure, hits, pagination, searchBox } from "https://esm.sh/instantsearch.js@4.49.1/es/widgets";
3// first stable version is 9 and the link is https://www.val.town/v/willthereader/FanficSearcherWebsite?v=9
4function validateConfig(): { appId: string; apiKey: string } {
5 const appId = Deno.env.get("ALGOLIA_APP_ID_fanficSearcher");
6 const apiKey = Deno.env.get("ALGOLIA_SEARCH_API_KEY_fanficSearcher");
7
8 if (!appId || !apiKey) {
9 throw new Error("Algolia credentials are not properly set");
10 }
11
12 return { appId, apiKey };
13}
14
15function generateHtml(appId: string, apiKey: string): string {
16 console.log("Generating HTML with App ID:", appId, "and API Key:", apiKey ? "exists" : "missing");
17 return `
18<!DOCTYPE html>
67 <script>
68 console.log("Initializing Algolia search with App ID:", "${appId}");
69 const searchClient = algoliasearch("${appId}", "${apiKey}");
70
71 const search = instantsearch({
123 console.log("Received request:", request.url);
124 try {
125 const { appId, apiKey } = validateConfig();
126 const html = generateHtml(appId, apiKey);
127 console.log("Generated HTML, length:", html.length);
128 return new Response(html, {

alchemyClientmain.tsx3 matches

@jamiedubsUpdated 8 months ago
5
6export async function alchemyFetch(path: string, tokens: TokenParam = "erc20") {
7 const apiKey = process.env.ALCHEMY_API_KEY;
8 if (!apiKey) throw new Error("missing ALCHEMY_API_KEY");
9 const baseUrl = tokens == "nft" ? "https://eth-mainnet.g.alchemy.com/nft/v2" : "https://eth-mainnet.g.alchemy.com/v2";
10 const rpcUrl = `${baseUrl}/${apiKey}`;
11 const url = `${rpcUrl}/${path}`;
12 const response = await fetch(url, {

ThumbMakermain.tsx1 match

@gUpdated 8 months ago
2 * This application creates a thumbnail maker using Hono for server-side routing and client-side JavaScript for image processing.
3 * It allows users to upload images, specify output options, and generate a composite thumbnail image.
4 * The app uses the HTML5 Canvas API for image manipulation and supports drag-and-drop functionality.
5 *
6 * The process is divided into two steps:

slackbotmain.tsx2 matches

@begoonUpdated 8 months ago
9async function message(channel: string, text: string, thread_ts?: string) {
10 return await fetchJSON(
11 "https://slack.com/api/chat.postMessage",
12 {
13 headers: { "Authorization": `Bearer ${SLACK_BOT_TOKEN}` },
20async function reaction(channel: string, timestamp: string, name: string = "thumbsup") {
21 return await fetchJSON(
22 "https://slack.com/api/reactions.add",
23 {
24 headers: { "Authorization": `Bearer ${SLACK_BOT_TOKEN}` },

slackScoutmain.tsx3 matches

@fahadakhan2Updated 8 months ago
54 query: topic,
55 pages: 2,
56 apiKey: Deno.env.get("BROWSERBASE_API_KEY") ?? "",
57 });
58}
63// maxResults: 10,
64// daysBack: 1,
65// apiKey: Deno.env.get("TWITTER_BEARER_TOKEN") ?? "",
66// });
67// }
98
99 if (!response.ok) {
100 throw new Error(`Slack API error: ${response.status} ${response.statusText}`);
101 }
102

slackScoutREADME.md4 matches

@fahadakhan2Updated 8 months ago
7## Getting Started
8To run Slack Scout, you’ll need a
9- Browserbase API key
10- Slack Webhook URL: setup [here](https://docs.val.town/integrations/slack/send-messages-to-slack/)
11- Twitter Developer API key
12
13### Browserbase
19### Twitter
20
21We’ve decided to use the Twitter API to include Twitter post results. It costs $100 / month to have a Basic Twitter Developer account. _If you decide to use Browserbase, we can lend our token. Comment below for access._
22
23Once you have the `SLACK_WEBHOOK_URL`, `BROWSERBASE_API_KEY`, and `TWITTER_BEARER_TOKEN`, input all of these as [Val Town Environment Variables](https://www.val.town/settings/environment-variables).
24
25---

vapi-minutes-db1 file match

@henrywilliamsUpdated 2 days ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 2 days ago
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