Public
Script
Readme

GET /v1/vals/{val_id}

Gets information about a specific val.

To access private vals, pass your API token as a secret to the function. Read more about authentication to understand how to generate a token and save it as a secret.

1
2
3
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=43";
console.log(await fetchJSON("https://api.val.town/v1/vals/7f9019e4-dbf8-4ebe-b8cd-67730697624e"));
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
March 20, 2024