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
founder @outapint.io
vibe coding on val.town.
dm me to build custom vals: https://artivilla.com
Your friendly, neighborhood video API.
Substrate is the modular API for fast multi-step AI programs
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)
1import { API_URL } from "https://esm.town/v/std/API_URL";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import ValTown from "npm:@valtown/sdk";
28);
29
30// Example of using the API to create a new val with a single file
31// First create the val
32const valResponse = await fetch(
33 `${API_URL}/v2/vals`,
34 {
35 method: "POST",
36 body: JSON.stringify({
37 name: "new-val-api",
38 privacy: "public",
39 description: "This is an example of using the API to create a val.",
40 }),
41 headers: {
53const val = await valResponse.json();
54const fileResponse = await fetch(
55 `${API_URL}/v2/vals/${val.id}/files?path=main.tsx`,
56 {
57 method: "POST",
58 body: JSON.stringify({
59 content: "This is an example of using the API to create a file at the root.",
60 type: "file",
61 }),
1This is an example of using the API to create a file at the root.
This is an example of using the API to create a val.