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=1057&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 11852 results for "api"(923ms)

holidaysUSmain.tsx1 match

@brentonUpdated 1 year ago
3// Public holidays in the US in 2023
4export let holidaysUS = fetchJSON(
5 "https://date.nager.at/api/v2/publicholidays/2023/US"
6);

kindnessmain.tsx1 match

@nateUpdated 1 year ago
4export let kindness = async () => {
5 return await gpt3({
6 openAiKey: process.env.OPENAI_API_KEY,
7 prompt:
8 "Speaking as universal consciousness, say something short, true, uplifting, loving, and kind.",

myApimain.tsx1 match

@lawlietUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}
2
3export let nameTopHNThreadUsingSomeonesVal = (async () => {
4 // Cheerio parses markup and provides an API to interact with the resulting data structure
5 const cheerio = await import("npm:cheerio"); // You can import NPM packages
6 const replyText = await fetchText(

myApimain.tsx1 match

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

clearMyApimain.tsx1 match

@acmuUpdated 1 year ago
1let { fizz } = await import("https://esm.town/v/acmu/fizz");
2
3export function clearMyApi(name) {
4 fizz = "";
5 return "clear yes nbnbnb";

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

starWarsmain.tsx1 match

@dosirakUpdated 1 year ago
2
3export let starWars = fetchJSON(
4 "https://swapi.dev/api/people/1/"
5);

social_data_api_project3 file matches

@tsuchi_yaUpdated 3 hours ago

simple-scrabble-api1 file match

@bryUpdated 20 hours 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