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=1393&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 16593 results for "api"(1595ms)

SampleJokemain.tsx1 match

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

tomatoSolemain.tsx1 match

@zaclabit•Updated 1 year ago
9async function fetchRandomJoke() {
10 const response = await fetch(
11 "https://official-joke-api.appspot.com/random_joke",
12 );
13 return response.json();

dailyDadJokeREADME.md2 matches

@viniciuscainelli•Updated 1 year ago
113. 🤣🤣🤣🤣
12
13## API
14
15This val uses the [icanhazdadjoke API](https://icanhazdadjoke.com/api). You can find [more docs here](https://github.com/15Dkatz/official_joke_api), such as how to [filter by type](https://github.com/15Dkatz/official_joke_api?tab=readme-ov-file#grab-jokes-by-type).

goldRattlesnakemain.tsx1 match

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

extract_opengraph_dataREADME.md1 match

@cotr•Updated 1 year ago
1Migrated from folder: Web_Scraping/extract_opengraph_data

aquaLizardmain.tsx1 match

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

extract_contentREADME.md1 match

@cotr•Updated 1 year ago
1Extract all text content from a URL using Cheerio
2
3Migrated from folder: Web_Scraping/extract_content

htmlExampleREADME.md2 matches

@mmabrouk•Updated 1 year ago
1# Returning HTML from the Val Town Web API
2
3This just lets you use the standard [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object with our [Web API](https://docs.val.town/api/web) to return an HTML response from this Val.

scarletHawkmain.tsx1 match

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

whiteRoadrunnermain.tsx1 match

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

Schedule

@Ozy•Updated 3 hours ago
Schedule_api

googleGeminiAPI2 file matches

@michaelwschultz•Updated 20 hours ago
Kapil01
apiv1