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/image-url.jpg%20%22Optional%20title%22?q=api&page=1046&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 12041 results for "api"(1404ms)

newChatGPT35main.tsx1 match

@bingo16Updated 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_majUpdated 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

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

myApimain.tsx1 match

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

aqimain.tsx1 match

@ychuUpdated 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

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

rateArticleRelevancemain.tsx1 match

@vandyandUpdated 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

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

telegramGetUpdatesmain.tsx1 match

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

myApimain.tsx1 match

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

social_data_api_project3 file matches

@tsuchi_yaUpdated 18 hours ago

simple-scrabble-api1 file match

@bryUpdated 4 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