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=1025&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 11835 results for "api"(1300ms)

untitled_chocolateSquidmain.tsx1 match

@jacoblee93•Updated 1 year ago
18 const chat = new ChatOpenAI({
19 temperature: 0,
20 openAIApiKey: process.env.OPENAI_API_KEY,
21 });
22 const chain = new LLMChain({

myApimain.tsx1 match

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

myApiDeletemain.tsx1 match

@acmu•Updated 1 year ago
2let { nameList } = await import("https://esm.town/v/acmu/nameList");
3
4export async function myApiDelete(name) {
5 if (Array.isArray(nameList)) {
6 nameList = nameList.filter((i) => i !== name);

arenaHelpersmain.tsx1 match

@korede•Updated 1 year ago
21 }
22 const urlParams = new URLSearchParams(params);
23 const url = `https://api.are.na/v2/users/${userId}/channels` +
24 (Object.keys(params).length ? `?${urlParams.toString()}` : "");
25 const response = await fetch(url, {

newChatGPT35main.tsx1 match

@bingo16•Updated 1 year ago
14 };
15 const getCompletion = async () => {
16 const response = await fetch("https://api.openai.com/v1/chat/completions", {
17 method: "POST",
18 headers: {

nameTopHNThreadCronmain.tsx1 match

@elsif_maj•Updated 1 year ago
4
5export let nameTopHNThreadCron = (async () => {
6 // Cheerio parses markup and provides an API to interact with the resulting data structure
7 const cheerio = await import("npm:cheerio"); // You can import NPM packages
8 const reply = await fetch("https://news.ycombinator.com/");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

aqimain.tsx1 match

@ychu•Updated 1 year ago
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
8 limit: "10",

myApimain.tsx1 match

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

simple-scrabble-api1 file match

@bry•Updated 3 hours ago

social_data_api_project3 file matches

@tsuchi_ya•Updated 11 hours ago
apiv1
papimark21