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/$%7BsvgDataUrl%7D?q=api&page=2&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 18990 results for "api"(2728ms)

Blob Storage414 words

https://docs.val.town/std/blob/
titled “Move” Move import { blob } from "https://esm.town/v/std/blob"; await blob.move("myKey", "myKeyNew"); Lower-level API. Section titled “Lower-level API” We provide access to the lower-level getter and setters, which are useful

Sections

Lower-level API

Lower-level API. Section titled “Lower-level API” We provide access to the lower-level getter and setters, which are useful if you are storing non-JSON or binary data, need to stream in

Supabase667 words

https://docs.val.town/integrations/databases/supabase/
Get your API URL and service role key. Section titled “3. Get your API URL and service role key” Go to your project’s Settings via the sidebar. Inside API, scroll

Sections

3. Get your API URL and service role key

Get your API URL and service role key. Section titled “3. Get your API URL and service role key” Go to your project’s Settings via the sidebar. Inside API, scroll

Browserbase131 words

https://docs.val.town/integrations/browserbase/
to get your Browserbase API key and remix this val. Get your free Browserbase API key at https://www.browserbase.com/ Add it to your Val Town Environment Variables as BROWSERBASE_API_KEY. Remix this

Sections

Quick start

to get your Browserbase API key and remix this val. Get your free Browserbase API key at https://www.browserbase.com/ Add it to your Val Town Environment Variables as BROWSERBASE_API_KEY. Remix this

Weather137 words

https://docs.val.town/guides/weather/
require payment and API keys. If you need something free and you’re primarily interested in weather in the United States, you can check out the NOAA weather API. Also, OpenWeatherMap

Sections

Weather data sources

require payment and API keys. If you need something free and you’re primarily interested in weather in the United States, you can check out the NOAA weather API. Also, OpenWeatherMap

OpenAI310 words

https://docs.val.town/std/openai/
questions about this page. Use OpenAI’s chat completion API with std/openai. This integration enables access to OpenAI’s language models without needing to acquire API keys. For free Val Town users,

Sections

OpenAI

questions about this page. Use OpenAI’s chat completion API with std/openai. This integration enables access to OpenAI’s language models without needing to acquire API keys. For free Val Town users,

Limits

the limitation by using your own keys: Create your own API key on OpenAI’s website. Create an environment variable named OPENAI_API_KEY. Use the OpenAI client from npm:openai: ExampleRun in Val

Interop with Node, Deno, and Browsers739 words

https://docs.val.town/guides/interop/
- Vals use the ES Module Syntax. Caveats: While we support Web Platform APIs, we also support many APIs that aren’t available in web browsers. Unlike web browsers, Deno can

Sections

Deno

variables in your local environment. Private vals can be run by setting DENO_AUTH_TOKENS. Create an API token in Val Town, and then use it for the esm.town domain: Terminal window

Browsers

- Vals use the ES Module Syntax. Caveats: While we support Web Platform APIs, we also support many APIs that aren’t available in web browsers. Unlike web browsers, Deno can

Node.js

Node.js. Section titled “Node.js” Using Node.js with Vals directly relies on relatively new APIs in Node.js, specifically the support for HTTP and HTTPS imports. This requires you to run Node

Node.js with dnt

a bit more setup than the other options, but if you’re using Deno and NPM APIs and have more complex code, it can be a great option. You’ll need to

Overview214 words

https://docs.val.town/vals/
page. Vals are the building blocks of Val Town. They can be used to create APIs, crons, websites, and email handlers with JavaScript. A val is a collaborative, versioned folder

Sections

Overview

page. Vals are the building blocks of Val Town. They can be used to create APIs, crons, websites, and email handlers with JavaScript. A val is a collaborative, versioned folder

Triggers

Triggers. Section titled “Triggers” There are 3 types of triggers that JavaScript files within a val can have: HTTP Triggered by https requests. You can make APIs or websites Cron

Express410 words

https://docs.val.town/legacy-vals/express/
this page. Deprecated. New vals should use the Web API instead, which supports a wider range of inputs & outputs. The Express API allows to run a Val as an

Sections

Express

this page. Deprecated. New vals should use the Web API instead, which supports a wider range of inputs & outputs. The Express API allows to run a Val as an

handle-val.express.val.run

handle-val.express.val.run. Section titled “handle-val.express.val.run” The Express API can be called via GET or POST. You can access the JSON-parsed POST request body via req.body: @user/postWebhookRun in Val Town ↗ export

Custom Status Codes

Custom Status Codes. Section titled “Custom Status Codes” Like any Express server, you can respond with custom headers, and custom status codes. ExampleRun in Val Town ↗ // Visit: https://api.val.town/v1/express/vtdocs.customStatusCode.

HTTP69 words

https://docs.val.town/vals/http/
Open in ChatGPT Ask questions about this page. HTTP triggers let you serve a scalable API or website. They are built on the web-standard Request and Response objects, so are

Sections

HTTP

Open in ChatGPT Ask questions about this page. HTTP triggers let you serve a scalable API or website. They are built on the web-standard Request and Response objects, so are

Push notifications113 words

https://docs.val.town/guides/push-notifications/
that would be as easy to use as console.email and might work via Web Push API, in the meantime we recommend ntfy.sh as an easy way to send yourself push

Sections

Push notifications

that would be as easy to use as console.email and might work via Web Push API, in the meantime we recommend ntfy.sh as an easy way to send yourself push

anchorPDSREADME.md3 matches

@tijs•Updated 2 hours ago
3A specialized ATProto server for check-in records, providing location-based social features for the Anchor ecosystem.
4
5This PDS powers the backend infrastructure for [Drop Anchor](https://dropanchor.app) - an *experimental* location-based social network built on the AT Protocol. While Drop Anchor provides the user interface and client experience, this PDS handles the storage, federation, and API endpoints for check-in records.
6
7## 🚀 Live Service
64- **Language**: TypeScript with full type safety
65
66## 📦 API Usage
67
68### Create a Check-in
154### Phase 3: Social Interactions
155
156- Likes support via Bluesky API proxy
157- Direct check-in comments
158- Social interaction feeds

anchorPDSanchor.ts1 match

@tijs•Updated 2 hours ago
70// app.dropanchor.getGlobalFeed
71app.get("/app.dropanchor.getGlobalFeed", async (c) => {
72 // Authenticate request to prevent scraping
73 const authContext = await authenticateRequest(c);
74 if (!authContext) {
Plantfo

Plantfo8 file matches

@Llad•Updated 4 hours ago
API for AI plant info

beeminder-api4 file matches

@cricks_unmixed4u•Updated 1 day ago
apiry
snartapi