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/$%7Bart_info.art.src%7D?q=api&page=943&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 12539 results for "api"(2156ms)

similarSitesREADME.md1 match

@qianguaUpdated 10 months ago
3Powered by [Exa](https://exa.ai/) and [Substrate](https://substrate.run).
4
5🪩 To fork, [sign up for Substrate](https://substrate.run/signin) to get your own API key and $50 free credits.

blob_adminREADME.md1 match

@nileshUpdated 10 months ago
9[![](https://stevekrouse-button.express.val.run/Install)](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
10
11It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
12
13# TODO

audioManagermain.tsx2 matches

@yawnxyzUpdated 10 months ago
43
44export class AudioManager {
45 constructor(apiKey=null, uploadFunction = null, downloadFunction = null) {
46 this.openai = new OpenAI(apiKey);
47 this.uploadFunction = uploadFunction || this.blobUpload;
48 }

fetchCongressTradeReportsmain.tsx1 match

@tricksterUpdated 10 months ago
11export async function fetchCongressTradeReports(callback) {
12 const res = await fetchJSON(
13 "https://bff.capitoltrades.com/trades?sortBy=-pubDate"
14 );
15 const trades = res.data;
24Make an HTTP val (other vals are currently not supported to run, even though we have examples for them).
25Start your response with a comment explaining how your approach will work, what libraries or
26API calls you will use, and any tradeoffs you're making. Then write the code in a consise way,
27the simplest way to achieve the goal, though you can add some inline comments to explain your
28reasoning (not for every line, but for major groups of lines). Don't use any environment variables
29unless strictly necessary, for example use APIs that don't require a key, prefer internal function
30imports (using esm.town), and prefer putting API keys as inline variables. Use built-in Deno
31functions where possible. Unless specified, don't add error handling,
32make sure that errors bubble up to the caller.
23Make an HTTP val (other vals are currently not supported to run, even though we have examples for them).
24Start your response with a comment explaining how your approach will work, what libraries or
25API calls you will use, and any tradeoffs you're making. Then write the code in a concise way,
26the simplest way to achieve the goal, though you can add some inline comments to explain your
27reasoning (not for every line, but for major groups of lines). Don't use any environment variables
28unless strictly necessary, for example use APIs that don't require a key, prefer internal function
29imports (using esm.town), and prefer putting API keys as inline variables. Use built-in Deno
30functions where possible. Unless specified, don't add error handling,
31make sure that errors bubble up to the caller.
22};
23
24const systemPrompt = `The conversation below is your recent interaction with the user. Your entire response should only be TypeScript. Your response should start with \`\`\`ts and end with \`\`\`. Make an HTTP val (other vals are currently not supported to run, even though we have examples for them). Start your response with a comment explaining how your approach will work, what libraries or API calls you will use, and any tradeoffs you're making. Then write the code in a concise way, the simplest way to achieve the goal, though you can add some inline comments to explain your reasoning (not for every line, but for major groups of lines). Don't use any environment variables unless strictly necessary, for example use APIs that don't require a key, prefer internal function imports (using esm.town), and prefer putting API keys as inline variables. Use built-in Deno functions where possible. Unless specified, don't add error handling, make sure that errors bubble up to the caller. There should be no comments like "more content here", it should be complete and directly runnable. The val should create a "export default async function main" which is the main function that gets executed on every HTTP request.`.replace("\n", " ");
25
26const additionalPrompt = `Since your last response the user might have changed the code. The current version of the code is below. Keep your response as close to their current code as possible, only changing things that are strictly necessary to change.`.replace("\n", "");
19};
20
21const systemprompt = `The conversation below is your recent interaction with the user. Your entire response should only be TypeScript. Your response should start with \`\`\`ts and end with \`\`\`. Make an HTTP val (other vals are currently not supported to run, even though we have examples for them). Start your response with a comment explaining how your approach will work, what libraries or API calls you will use, and any tradeoffs you're making. Then write the code in a consise way, the simplest way to achieve the goal, though you can add some inline comments to explain your reasoning (not for every line, but for major groups of lines). Don't use any environment variables unless strictly necessary, for example use APIs that don't require a key, prefer internal function imports (using esm.town), and prefer putting API keys as inline variables. Use built-in Deno functions where possible. Unless specified, don't add error handling, make sure that errors bubble up to the caller. There should be no comments like "more content here", it should be complete and directly runnable. The val should create a "export default async function main" which is the main function that gets executed on every HTTP request. `.replace("\n", " ");
22
23// Your response should start with \`\`\`ts and end with \`\`\`. The val should create a "export default async function main() {" which is the main function that gets executed, without any arguments. Don't return a Response object, just return a plain Javascript object, array, or string.
22Make an HTTP val (other vals are currently not supported to run, even though we have examples for them).
23Start your response with a comment explaining how your approach will work, what libraries or
24API calls you will use, and any tradeoffs you're making. Then write the code in a consise way,
25the simplest way to achieve the goal, though you can add some inline comments to explain your
26reasoning (not for every line, but for major groups of lines). Don't use any environment variables
27unless strictly necessary, for example use APIs that don't require a key, prefer internal function
28imports (using esm.town), and prefer putting API keys as inline variables. Use built-in Deno
29functions where possible. Unless specified, don't add error handling,
30make sure that errors bubble up to the caller.
18Make an HTTP val (other vals are currently not supported to run, even though we have examples for them).
19Start your response with a comment explaining how your approach will work, what libraries or
20API calls you will use, and any tradeoffs you're making. Then write the code in a concise way,
21the simplest way to achieve the goal, though you can add some inline comments to explain your
22reasoning (not for every line, but for major groups of lines). Don't use any environment variables
23unless strictly necessary, for example, use APIs that don't require a key, prefer internal function
24imports (using esm.town), and prefer putting API keys as inline variables. Use built-in Deno
25functions where possible. Unless specified, don't add error handling,
26make sure that errors bubble up to the caller.

vapi-minutes-db2 file matches

@henrywilliamsUpdated 12 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 3 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