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=1124&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 15454 results for "api"(3369ms)

JokeGeneratorValmain.tsx1 match

@elbert_p•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();

fascinatingYellowAntelopemain.tsx1 match

@gaurirajesh733•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();

ardentBrownHerringmain.tsx1 match

@joshua_moshes•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();

sqlite2main.tsx2 matches

@std•Updated 6 months ago
2
3export const sqlite = createClient({
4 url: "https://api.val.town/v2/sqlite/",
5 authToken: Deno.env.get("VAL_TOWN_API_KEY"),
6});

sqlite2README.md1 match

@std•Updated 6 months ago
1# SQLite2 - [Docs ↗](https://docs.val.town/std/sqlite)
2
3_This is our second generation SQLite client: it exposes a different API than [std/sqlite](https://www.val.town/v/std/sqlite).
4Specifically, this will support the full [@libsql/client interface](https://docs.turso.tech/sdk/ts/reference#simple-query)._
5

sympatheticApricotOttermain.tsx1 match

@judeholz•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();

stylishScarletPossummain.tsx1 match

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

modestPurpleLousemain.tsx1 match

@gavin_nittoli_nu•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();

proficientTealFrogmain.tsx1 match

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

inspiringTomatoFleamain.tsx1 match

@abhinavtavildar•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();

HN-fetch-call2 file matches

@ImGqb•Updated 1 day ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 3 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1