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/$%7Bart_info.art.src%7D?q=api&page=985&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 11767 results for "api"(3513ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

@treblegniUpdated 1 year ago
1export function myApi(name) {
2 const random = Math.random(100);
3 return {
5): Promise<Response> => {
6 let data = await fetch(
7 `https://api.apify.com/v2/acts/apify~instagram-post-scraper/runs/last/dataset/items?token=apify_api_wi6mnWH8aJ5yiwv3ePmYV7BI31yTE13ameye`,
8 );
9 let jsonData = await data.json();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

currencymain.tsx2 matches

@ernestUpdated 1 year ago
3export let currency = async (base = "eur", desired, amount = 1) => {
4 let { rates } = await fetchJSON(
5 "https://open.er-api.com/v6/latest/eur"
6 );
7 if (rates && rates[desired.toUpperCase()])
9 else {
10 let { rates } = await fetchJSON(
11 "https://api.coingecko.com/api/v3/exchange_rates"
12 );
13 return (

myApimain.tsx1 match

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

myApiDeleteAllmain.tsx1 match

@acmuUpdated 1 year ago
2let { nameList } = await import("https://esm.town/v/acmu/nameList");
3
4export async function myApiDeleteAll() {
5 nameList = [];
6 await set("nameList", nameList);

aqimain.tsx1 match

@freyrvaUpdated 1 year ago
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
8 limit: "10",

new-val-api-21 file match

@shouserUpdated 6 hours ago
This is an example of using the API to create a val.

gpt-image-test

@CaptainJackUpdated 22 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求
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