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=1593&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 18084 results for "api"(1764ms)

emailRandomJokemain.tsx1 match

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

aqiPushGotifyREADME.md2 matches

@zane•Updated 1 year ago
6
71. Click `Fork`
82. Change `location` (Line 7) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
93. Create an app in your Gotify Server and add your message endpoint URL w/ the app's API key (e.g., "https://push.example.de/message?token=<apptoken>") as a Val Town Secret named "gotifyWebhookURL".
104. Click `Run`
11

emailRandomJokemain.tsx1 match

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

emailRandomJokemain.tsx1 match

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

emailRandomJokemain.tsx1 match

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

extractRandomWordsmain.tsx1 match

@fab1an•Updated 1 year ago
3export const extractRandomWords = async (req: Request) => {
4 try {
5 const response = await fetch("https://random-word-api.herokuapp.com/word?number=1");
6 if (!response.ok) {
7 // If the response is not OK, return an error message

blobREADME.md2 matches

@std•Updated 1 year ago
80```
81
82### Lower-level API
83
84We provide access to the lower-level getter and setters,
87
88* `async get(key: string)`: Retrieves a blob for a given key.
89* `async set(key: string, value: string | BodyInit)`: Sets the blob value for a given key. See [BodyInit](https://deno.land/api@v1.38.1?s=BodyInit).
90
91### Limitations

untitled_coralChinchillamain.tsx1 match

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

emailRandomJokemain.tsx1 match

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

emailRandomJoke2main.tsx1 match

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

Apiify11 file matches

@wolf•Updated 15 hours ago

dailyQuoteAPI

@Souky•Updated 2 days ago
Kapil01
apiv1