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/$%7Bsuccess?q=api&page=1017&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 11847 results for "api"(1000ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

ipmain.tsx1 match

@hanuUpdated 1 year ago
1import { fetchJSON } from "https://esm.town/v/hanu/fetchJSON";
2
3export let ip = await fetchJSON("https://api.ipify.org?format=json");

geolocationmain.tsx1 match

@juliendorraUpdated 1 year ago
2 const ip = req.options.headers["x-forwarded-for"];
3 const jsonresponse = await $stevekrouse.fetchJSON(
4 `http://ip-api.com/json/${ip}`
5 );
6 res.json({ ip: req });

myApimain.tsx1 match

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

getCNNNewsmain.tsx1 match

@fab1anUpdated 1 year ago
3export async function getCNNNews() {
4 const response = await fetch(
5 "https://saurav.tech/NewsAPI/everything/cnn.json"
6 );
7 const data = await response.json();

holidaysUSmain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getTelAvivMobilitySpotsmain.tsx2 matches

@rustybUpdated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3interface APIResponse {
4 type: string;
5 crs: unknown;
9 // const url =
10 // "https://gisn.tel-aviv.gov.il/arcgis/rest/services/IView2/MapServer/860/query?where=1=1&outFields=*&f=geojson";
11 const url = "https://app.digital4grids.com/api";
12 const json_data = await fetchJSON(url);
13 return { "json_data": [] };

simple-scrabble-api1 file match

@bryUpdated 14 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 21 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