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=3&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 18929 results for "api"(2030ms)

Get a Github user196 words

https://docs.val.town/integrations/github/get-a-github-user/
this page. For example, we can get a user without passing an authentication token. GitHub API endpoints have a cURL command that you can manually translate into a fetchJSON call

Sections

Get a Github user

this page. For example, we can get a user without passing an authentication token. GitHub API endpoints have a cURL command that you can manually translate into a fetchJSON call

Runtime153 words

https://docs.val.town/reference/runtime/
so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled. Included environment. Section titled “Included environment” fetch to make HTTP requests. import

Sections

Runtime

so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled.

Slack bot513 words

https://docs.val.town/integrations/slack/bot/
build a Slack bot using vals. Vals can receive events from Slack’s Events API via the Express API. In this guide, you’ll build a bot that replies whenever it’s mentioned.

Sections

Slack bot

build a Slack bot using vals. Vals can receive events from Slack’s Events API via the Express API. In this guide, you’ll build a bot that replies whenever it’s mentioned.

1. Create a Slack app

1. Create a Slack app. Section titled “1. Create a Slack app” Visit https://api.slack.com/apps?new_app=1, create a new app From Scratch, and choose your App Name and your workspace.

Routing189 words

https://docs.val.town/vals/http/routing/
in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and

Sections

Routing

in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and

Saving data from a web page521 words

https://docs.val.town/guides/saving-data-from-a-web-page/
to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town. Blob storage. Section titled “Blob storage” For example, this val

Sections

Saving data from a web page

to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town.

Blob storage

This is a remix of the above app that uses client-side React to make the API calls: You could easily host the React part anywhere (Vercel, Netlify, etc) and have

Environment variables278 words

https://docs.val.town/reference/environment-variables/
text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API tokens as Environment Variables via the val’s left side bar. Environment variables can be

Sections

Environment variables

text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API tokens as Environment Variables via the val’s left side bar. Environment variables can be

Neon Postgres283 words

https://docs.val.town/integrations/databases/neon-postgres/
Open in ChatGPT Ask questions about this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional

Sections

Neon Postgres

Open in ChatGPT Ask questions about this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional

Simplified val privacy288 words

https://docs.val.town/upgrading/simplified-val-privacy/
the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.

Sections

Upgrading

the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.

Discord bot692 words

https://docs.val.town/integrations/discord/how-to-make-a-discord-bot-hosted-24-7-for-free-in-/
Val Town is a social website to write, run, and host JavaScript. You can create APIs, scheduled functions, email yourself, and persist small pieces of data — all from the

Sections

Step 3: Login to Val Town

Step 3: Login to Val Town. Section titled “Step 3: Login to Val Town” Val Town is a social website to write, run, and host JavaScript. You can create APIs,

Further Directions

you want. You’ll probably want to: Register a new Slash Command. Connect your bot to APIs like OpenAI’s GPT or Dall-E. Come join us in the Val Town Discord if

Vulnerability Disclosure Policy348 words

https://docs.val.town/contact-us/security/
found. In-scope domains. Section titled “In-scope domains” Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program. Out of

Sections

In-scope domains

In-scope domains. Section titled “In-scope domains” Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program.

invest-trackermacro_news_daily.tsx3 matches

@samxii777•Updated 6 hours ago
1import { blob } from "https://esm.town/v/std/blob";
2const KEY = Deno.env.get("NEWSAPI");
3
4export default async function run() {
5 const query = `https://newsapi.org/v2/everything?`
6 + `q=(${
7 encodeURIComponent(`
9 AND (United States OR Australia OR Europe OR China)
10 `)
11 })&language=en&sortBy=publishedAt&pageSize=10&apiKey=${KEY}`;
12
13 const arts = (await fetch(query).then(r => r.json())).articles ?? [];

beeminder-apicall_beeminder_api.sh0 matches

@cricks_unmixed4u•Updated 6 hours ago
1#!/bin/sh
2# Write JSON payload to file
3# cat <<EOF > datapoint.json
4# {"value": 2.5, "comment": "Test from file", "goal": "walk"}
5# EOF

beeminder-api4 file matches

@cricks_unmixed4u•Updated 6 hours ago

shippingAPI1 file match

@dynamic_silver•Updated 21 hours ago
apiry
snartapi