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=967&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 13540 results for "api"(1697ms)

1# Framer Fetch: Basic
2
3A basic example of an API endpoint to use with Framer Fetch.

aqiREADME.md1 match

@jessicatheodosiusUpdated 7 months ago
8
91. Click `Fork`
102. Change `location` (Line 4) 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).
113. Click `Run`
12

simpletypemain.tsx1 match

@dantaloupeUpdated 7 months ago
26 const fetchWords = useCallback(async () => {
27 try {
28 const response = await fetch("https://random-word-api.herokuapp.com/all");
29 if (!response.ok) {
30 throw new Error("Failed to fetch words");

blob_adminREADME.md1 match

@ktibowUpdated 7 months ago
11[![](https://stevekrouse-button.web.val.run/Install)](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
12
13It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
14
15# TODO

cabinTwitterSearchmain.tsx1 match

@jonboUpdated 7 months ago
14}): Promise<TweetResult[]> {
15 const res = await twitterJSON({
16 url: `https://api.twitter.com/2/tweets/search/recent?query=${await searchParams(
17 {
18 query,

sqliteExplorerAppREADME.md1 match

@braedennorrisUpdated 7 months ago
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans

sqliteExplorerAppmain.tsx2 matches

@braedennorrisUpdated 7 months ago
27 <head>
28 <title>SQLite Explorer</title>
29 <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32 <link
33 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34 rel="stylesheet"
35 />

ZineFairsmain.tsx1 match

@sylveaUpdated 7 months ago
103 await email({
104 subject: "Website Scraper Error",
105 text: `An error occurred while scraping ${WEBSITE_URL}: ${error.message}`,
106 });
107 }

whackaghostmain.tsx1 match

@TttUpdated 7 months ago
341 <meta name="viewport" content="width=device-width, initial-scale=1.0">
342 <title>Whack-a-Ghost</title>
343 <link href="https://fonts.googleapis.com/css2?family=Creepster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
344 <style>${css}</style>
345 </head>

runescapeWoodCuttingmain.tsx1 match

@charmaineUpdated 7 months ago
155 <head>
156 <title>RuneVal</title>
157 <link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
158 <style>${css}</style>
159 </head>

create-val-api-demo1 file match

@shouserUpdated 3 hours ago

new-val-api-demo

@shouserUpdated 4 hours ago
This is an example of using the API to create a val.
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration