goodnight000 /api-anything
Turn any website into an API your agent can call. Learns from the site's own frontend, heals itself when the site changes.
★ 3,952⑂ 506👁 21⑃ 140● 22▤ 0
+22
Daily
+298
Weekly
3,952
stars
506
forks
21
watchers
140
prs
22
issues
0
releases
README
Give your agent an API for websites that don't have one.
Learn a read once from the site's own traffic. Call it as JSON from MCP, the CLI, or your code.
Quick start · Example · Benchmarks · Integrations · Docs
Look up a book rating, search for flights, or check who's talking about your project without
driving a browser for each read. API Anything ships 114 sites and 323 read operations. It
uses plain HTTP when it can, falls back to the browser when needed, and can repair an operation
when a site changes. Calls run on your machine, not through the shared catalog.
Quick start
Try a read. All you need is Node 22.13 or newer. No browser, account, or API key for this call.
sh
npx -y api-anything call hacker-news search query=sqlite --fields title,url --max-tier 1
text
{"ok":true,"class":"ok","tier":1,"data":[
{"title":"Hosting SQLite databases on GitHub Pages or any static file hoster",
"url":"https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/"},
...]}
tier: 1 means plain HTTP, with no browser. --fields keeps only what you ask for. If a call
fails, it returns a reason and a next step.
Connect your agent.
sh
npx -y api-anything setup
Pick your client, restart it, and ask “What does Goodreads rate Piranesi?” Setup supports
Claude Code, Codex, Cursor, Claude Desktop, Gemini CLI, and VS Code; use --agents hermes for
Hermes. Use --local-only to skip the shared catalog. Setup for every client ·
Install instructions for your agent
Who's talking about your project
examples/mentions.mjs checks Hacker News, Reddit, YouTube, GitHub, and
Mastodon in one run and combines the links into a feed. It makes six read calls, all capped at plain
HTTP. If one source is unavailable, the script reports it and keeps the answers from the others.
On November 22, all five runs found 46 DuckDB mentions. The whole process took 1.56–1.89 s
per run. Five calls answered over plain HTTP; Reddit reported blocked each time.
Rerun details
sh
npm ci
node examples/mentions.mjs duckdb --json
Watch the November 6 recording
Performance
60% less time for a fresh CLI read. On November 22, we reran the local benchmarks on
current main against the revisions before the latency passes.
| Local workload | Before | Current |
| --- | ---: | ---: |
| First CLI read, including Node startup | 574 ms | 227 ms |
| Recognize a rate limit and return | 4.59 s, misclassified | 14 ms, with retry timing |
| Stop learning on an unresolved challenge | 36.0 s, two browser runs | 18.0 s, one browser run |
| Five-read batch, one field requested per item | 3,355 JSON characters | 60 JSON characters |
These are localhost fixtures: the first read includes process startup, and the batch measures
output size, not model tokens or a faster site. Reproduction, baselines, and raw results
The race
In earlier same-agent comparisons, both setups answered every scored question correctly. The
times below include the agent's entire run, not just the website c