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?q=api&page=1020&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 12157 results for "api"(2172ms)

nearestOpenStationmain.tsx1 match

@johnmuyskensUpdated 1 year ago
2
3export const nearestOpenStation = async ({ lon, lat }) => {
4 const gbfsDomain = "capitalbikeshare.com";
5 lon = +lon;
6 lat = +lat;

alphaVantageSymbolSearchmain.tsx6 matches

@seanUpdated 1 year ago
3
4export const alphaVantageSymbolSearch = async ({
5 apikey,
6 ...options
7}: {
8 apikey: string,
9 keywords: string,
10}) => {
11 const API_HOST = "alpha-vantage.p.rapidapi.com";
12 const queryString = await toQueryString({
13 ...options,
17 try {
18 const json = await fetchJSON(
19 `https://${API_HOST}/query?${queryString}`,
20 {
21 method: "GET",
22 headers: {
23 "X-RapidAPI-Key": apikey,
24 "X-RapidAPI-Host": API_HOST,
25 },
26 }

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

testWebpagemain.tsx1 match

@joemccourtUpdated 1 year ago
6 // "Bullet",
7 // "Computer",
8 // "Rapid",
9 // "Top Rated",
10 // "Blitz",

helloFriendmain.tsx2 matches

@abdulamiteUpdated 1 year ago
1import { myApi } from "https://esm.town/v/abdulamite/myApi";
2
3export let helloFriend = "Hello, " + myApi("abdulamite", "55");

myApimain.tsx1 match

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

paginateAPImain.tsx1 match

@mgruelUpdated 1 year ago
9 };
10};
11export const paginateAPI = async <T extends any = any>(
12 url: string,
13 options?: RequestInit,

emailRandomJokemain.tsx1 match

@jayUpdated 1 year ago
4 async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();

groq-vapi-demo1 file match

@yawnxyzUpdated 4 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 1 day 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