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/$%7Bsuccess?q=api&page=970&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 12629 results for "api"(1747ms)

valTownChatGPTmain.tsx1 match

@xuybinUpdated 11 months ago
3import { renderToString } from "npm:react-dom/server";
4
5// This uses by personal API key, you'll need to provide your own if
6// you fork this. We'll be adding support to the std/openai lib soon!
7const openai = new OpenAI();

openAIStreamingREADME.md3 matches

@xuybinUpdated 11 months ago
10assistant > Here are a few fun Val ideas you could build on Val Town:
11
121. **Random Joke Generator:** Fetch a random joke from an API and display it.
132. **Daily Weather Update:** Pull weather data for your location using an API and create a daily summary.
143. **Mini Todo List:** Create a simple to-do list app with add, edit, and delete functionalities.
154. **Chuck Norris Facts:** Display a random Chuck Norris fact sourced from an API.
165. **Motivational Quote of the Day:** Fetch and display a random motivational quote each day.
17

vscodemain.tsx1 match

@xuybinUpdated 11 months ago
72 "https://openvsxorg.blob.core.windows.net/resources/{publisher}/{name}/{version}/{path}",
73 },
74 "extensionEnabledApiProposals": {
75 "vscode.vscode-web-playground": [
76 "fileSearchProvider",

feedsmain.tsx1 match

@nwsUpdated 11 months ago
50 // gets all posts under #StateWX and returns them
51 const res = await fetch(
52 `https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=%23${state}&limit=50&sort=latest`,
53 ).then((res) => res.json());
54 let posts = [];

amaranthPlanarianREADME.md1 match

@ikbearUpdated 11 months ago
13Change the `query` variable for what you want to get notified for.
14
15You can use [Twitter's search operators](https://developer.twitter.com/en/docs/twitter-api/v1/rules-and-filtering/search-operators) to customize your query, for some collection of keywords, filtering out others, and much more!
16
17## 3. Notification

twitterAlertREADME.md1 match

@ikbearUpdated 11 months ago
25Todos:
26
27- this should filter the twitter API call to only tweets since the last run.
28- some kind of caching to avoid rate limiting
29- would be nice to use the user's feed instead of a username list... but not sure how easy that is

aqiREADME.md1 match

@chenUpdated 11 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

upload_jsonmain.tsx1 match

@stevedylandevUpdated 11 months ago
13 },
14 });
15 const res = await fetch("https://api.pinata.cloud/pinning/pinJSONToIPFS", {
16 method: "POST",
17 headers: {

twitterAlertREADME.md1 match

@chenUpdated 11 months ago
25Todos:
26
27- this should filter the twitter API call to only tweets since the last run.
28- some kind of caching to avoid rate limiting
29- would be nice to use the user's feed instead of a username list... but not sure how easy that is

sqliteExplorerAppREADME.md1 match

@kamekUpdated 11 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

vapi-minutes-db1 file match

@henrywilliamsUpdated 2 hours ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 4 hours ago
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