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/?q=api&page=471&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 5096 results for "api"(383ms)

gpt4FunctionCallingExampleREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/openai/function_calling/gpt4FunctionCallingExample

sqlite_adminREADME.md1 match

@stevekrouse•Updated 1 year ago
9To use it on your own Val Town SQLite database, [fork it](https://www.val.town/v/stevekrouse/sqlite_admin/fork) to your account.
10
11It 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).
12
13Migrated from folder: utils/sqlite_admin/sqlite_admin

oldfashionedmain.tsx2 matches

@tmcw•Updated 1 year ago
302 <script src="https://unpkg.com/htmx.org@1.9.6/dist/htmx.min.js">
303 </script>
304 <link rel="preconnect" href="https://fonts.googleapis.com" />
305 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
306 <link
307 href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,500&display=swap"
308 rel="stylesheet"
309 />

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

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();

untitled_orangeImpalamain.tsx1 match

@stevekrouse•Updated 1 year ago
2
3export const untitled_orangeImpala = fetchJSON(
4 "https://api.openai.com/v1/usage?date=2023-11-01",
5 {
6 headers: {

gpt4ExampleREADME.md1 match

@stevekrouse•Updated 1 year ago
3This uses the brand new `gpt-4-1106-preview`.
4
5To use this, set `OPENAI_API_KEY` in your [Val Town Secrets](https://www.val.town/settings/secrets).
6
7Migrated from folder: Archive/IntroVideo/gpt4Example

emojiSearchBotmain.tsx2 matches

@stevekrouse•Updated 1 year ago
6import OpenAI from "npm:openai";
7
8const openai = new OpenAI({ apiKey: process.env.openai });
9
10export async function emojiSearchBot({ lastRunAt }: Interval) {
14 }&expansions=attachments.media_keys&media.fields=duration_ms,height,media_key,preview_image_url,public_metrics,type,url,width,alt_text`;
15 const result = await twitterJSON({
16 url: `https://api.twitter.com/2/users/1721850098575908864/mentions` + query,
17 bearerToken: process.env.twitter,
18 });

gpt4vDemomain.tsx1 match

@stevekrouse•Updated 1 year ago
2import OpenAI from "npm:openai";
3
4const openai = new OpenAI({ apiKey: process.env.openai });
5
6async function main() {

remarkDemoJSXmain.tsx3 matches

@stevekrouse•Updated 1 year ago
10 <style>
11 {`
12 @import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
13 @import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
14 @import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
15
16 body { font-family: 'Droid Serif'; }

runValAPIEx2 file matches

@charmaine•Updated 20 hours ago

PassphraseAPI2 file matches

@wolf•Updated 3 days ago
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)