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=1580&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 17729 results for "api"(3408ms)

getFatCatListingsmain.tsx1 match

@Ryan•Updated 1 year ago
3export const getFatCatListings = async () => {
4 const meResult = await fetch(
5 "https://api-mainnet.magiceden.dev/v2/collections/degenfatcats/listings?offset=0&limit=20",
6 {
7 headers: { Accept: "application/json" },

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubFollowingmain.tsx1 match

@dharmatech•Updated 1 year ago
3// Github following
4export let githubFollowing = fetchJSON(
5 "https://api.github.com/users/stevekrouse/following"
6);

untitled_cS5pGEaVmain.tsx1 match

@baj•Updated 1 year ago
1export const untitled_cS5pGEaV = (async () => {
2 let count = 0;
3 function myApi() {
4 return count++;
5 }

myApimain.tsx1 match

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

githubFollowingmain.tsx1 match

@gerard•Updated 1 year ago
3// Github following
4export let githubFollowing = fetchJSON(
5 "https://api.github.com/users/stevekrouse/following"
6);

myApimain.tsx1 match

@pigrange•Updated 1 year ago
1export function myApi(name) {
2 return JSON.parse(
3 '{"code": 0,"message": "success","data": {"param1": "va success"}}',

biliStreammain.tsx1 match

@nishui•Updated 1 year ago
25 const id = idArray[i];
26 const request = fetch(
27 `https://api.live.bilibili.com/room/v1/Room/room_init?id=${id}`,
28 ).then((data) => data.json());
29 requests.push(request);

bggTestmain.tsx1 match

@clayton•Updated 1 year ago
3export const bggTest = async function () {
4 const xml = await fetchXML(
5 "https://boardgamegeek.com/xmlapi2/plays?username=acciopatronus",
6 );
7 return xml;

RandomQuoteAPI

@Freelzy•Updated 1 day ago

HAPI7 file matches

@dIgitalfulus•Updated 1 day ago
Kapil01
apiv1