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=1408&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 18329 results for "api"(5101ms)

amicableAquamarinePanthermain.tsx1 match

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

CS1200main.tsx1 match

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

constantTomatoTarantulamain.tsx1 match

@henrique056•Updated 6 months ago
3async function fetchRandomJoke() {
4 const response = await fetch(
5 "https://official-joke-api.appspot.com/random_joke",
6 );
7 return response.json();

CS1200Projmain.tsx1 match

@bhuvanh66•Updated 6 months ago
5 async function fetchRandomJoke() {
6 const response = await fetch(
7 "https://official-joke-api.appspot.com/random_joke",
8 );
9 return response.json();

theOneSkymain.tsx1 match

@karkowg•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { BskyAgent } from "https://esm.sh/@atproto/api";
3import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";

iheartjankboteko1main.tsx1 match

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

wideLibmain.tsx1 match

@maxm•Updated 6 months ago
396 ...queryParams,
397 limit,
398 // Best effort does not seem to work so we do this format dance, generally the api
399 // layer validates iso date formats so we are somewhat insulated.
400 start: formatDate(typeof start === "string" ? new Date(start) : start),

Jokemain.tsx1 match

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

bskymain.tsx1 match

@stevekrouse•Updated 6 months ago
7export default async function(req: Request): Promise<Response> {
8 const url =
9 "https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=stevekrouse.com&filter=posts_no_replies";
10
11 const data: Feed = await fetch(url).then((r) => r.json());

bskyREADME.md1 match

@stevekrouse•Updated 6 months ago
1Showing my BlueSky posts using their public API

Galacta3 file matches

@defunkt•Updated 5 hours ago
Marvel Rivals GPT via tracker.gg API

github-api1 file match

@cricks_unmixed4u•Updated 1 day ago
apiry
snartapi