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=1655&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 18154 results for "api"(6436ms)

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}

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}

xxxclearinghouse_validator

@toowired•Updated 6 hours ago
Request validator for clearance API

Apiify11 file matches

@wolf•Updated 23 hours ago
Kapil01
apiv1