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=1119&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 12157 results for "api"(2068ms)

1export let untitled_greenPlanarian = (() => {
2 throw new Error("API Error");
3});

postWebhookTest5main.tsx1 match

@valUpdated 1 year ago
2
3export let postWebhookTest5 = fetchJSON(
4 "https://api.val.town/express/@val.postWebhook4",
5 {
6 method: "POST",

chatmain.tsx4 matches

@chatgptUpdated 1 year ago
5 options = {},
6) => {
7 // Initialize OpenAI API stub
8 const { Configuration, OpenAIApi } = await import("https://esm.sh/openai");
9 const configuration = new Configuration({
10 apiKey: process.env.OPENAI,
11 });
12 const openai = new OpenAIApi(configuration);
13 // Request chat completion
14 const messages = typeof prompt === "string"

vec_pracmain.tsx1 match

@valiloUpdated 1 year ago
19 a: a,
20 b: b,
21 ergebnis_link: `https://api.val.town/v1/eval/@valilo.eval_vec(${encodeURIComponent(
22 JSON.stringify(ret)
23 )})`,

myApimain.tsx1 match

@mlucconeUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@jacob_kettleUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

ListenTomain.tsx2 matches

@zzzUpdated 1 year ago
2import { runVal } from "https://esm.town/v/std/runVal";
3
4// https://api.val.town/v1/express/zzz.ListenTo?val=stevekrouse.whatIsValTown
5export async function ListenTo(req, res) {
6 const { val = "zzz.demoOpenAIGPT4Summary" } = req.query;
7 const url = `https://api.val.town/v1/run/${val.replace("@", "")}`
8 const resp = await fetch(url);
9 const text = await resp.text();

importGistsmain.tsx1 match

@maasUpdated 1 year ago
7 const supportedLanguages = ["JavaScript", "TypeScript"];
8 let imported = [];
9 const headers = { "X-GitHub-Api-Version": "2022-11-28" };
10 const { Octokit } = await import("npm:@octokit/core");
11 const octokit = new Octokit({ auth: githubToken });

loaderSampleAudiomain.tsx1 match

@webupUpdated 1 year ago
3export const loaderSampleAudio = (async () => {
4 const builder = await getWebLoaderBuilder(
5 "https://storage.googleapis.com/aai-docs-samples/sports_injuries.mp3",
6 "audio",
7 { language_code: "en_us" },

twitterOpenGraphImagemain.tsx1 match

@panphoraUpdated 1 year ago
16 const browser = await puppeteer.connect({
17 browserWSEndpoint:
18 `wss://chrome.browserless.io?token=${process.env.BROWSERLESS_API_KEY}`,
19 });
20 const page = await browser.newPage();

groq-vapi-demo1 file match

@yawnxyzUpdated 5 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 1 day 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