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/?q=api&page=985&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"(949ms)

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}

rateArticleRelevancemain.tsx1 match

@vandyand•Updated 1 year ago
4 const { default: OpenAI } = await import("npm:openai");
5 const openai = new OpenAI({
6 apiKey: untitled_tealCoral.OPENAI_API_KEY,
7 });
8 try {

myApimain.tsx1 match

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

telegramGetUpdatesmain.tsx1 match

@vtdocs•Updated 1 year ago
3export const telegramGetUpdates = async (botToken: string) =>
4 fetchJSON(
5 `https://api.telegram.org/bot${botToken}/getUpdates`,
6 );

myApimain.tsx1 match

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

myApimain.tsx1 match

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

generateQRmain.tsx2 matches

@galligan•Updated 1 year ago
1// fetch("https://api.val.town/v1/express/galligan.generateQR?url={url}"
2// QR Code Generator
3// 1. Right click on the bookmarks bar and add new bookmark
4// 2. Give it any name (Ex: QR Code)
5// 3. For the URL, enter the below value
6// javascript:void(open('https://api.val.town/v1/express/ramkarthik.generateQR?url='+encodeURIComponent(location.href), 'Open this URL', 'width=200,height=275'))
7// 4. Save the bookmark
8// 5. When you are on any page, click the newly added bookmark

mod-interview-api1 file match

@twschiller•Updated 13 hours ago

daily-advice-app1 file match

@dcm31•Updated 3 days ago
Random advice app using Advice Slip API
apiv1
papimark21