Give Your AI Agent an API for Websites That Don't Have One with API Anything

Do this first
Install it into your agent
Copy the install command from the API Anything repo and paste it into Claude Code or Codex, and the agent sets it up. Reel Playbooks addition: the setup command is npx -y api-anything setup. It asks which agents to connect and adds an MCP server and a skill to each. Add --local-only if you do not want to use the shared catalog.
Summary
When you ask an AI agent to find a flight or check a book rating, it usually opens a browser and clicks around like a person, which is slow and uses a lot of tokens. API Anything, a free open source project, watches what a site does behind the scenes once, learns that request, and from then on your agent asks for the data directly and gets clean JSON back. The creator, Jordan Blake, says it already works with Google Flights, YouTube, Amazon and Airbnb, and you can teach it new sites.
- Skill level
- Intermediate
- Time to implement
- 30 min
- Cost
- Free
- Platform
- Web
- Tools
- Claude Code
- Outcomes
- Saves time, Free to do
- Last verified
- Nov 26, 2026
Set upWhat you need
Node.js 22.13 or newer
An agent such as Claude Code, Codex, Cursor, Claude Desktop or Gemini CLI
Google Chrome or another Chromium browser, only for learning new sites
No account or API key
Do thisStep by step
Install it into your agent
Copy the install command from the API Anything repo and paste it into Claude Code or Codex, and the agent sets it up. Reel Playbooks addition: the setup command is
npx -y api-anything setup. It asks which agents to connect and adds an MCP server and a skill to each. Add--local-onlyif you do not want to use the shared catalog.Try a read
Ask your agent something a site can answer, such as a book rating or flight prices, and it calls the site's own request instead of browsing. Reel Playbooks addition: to test from a terminal first, run
npx -y api-anything call hacker-news search query=sqlite --fields title,url --max-tier 1. Tier 1 means plain HTTP with no browser.Teach it a new site
Show it a website once and it learns the pattern. Reel Playbooks addition: your agent runs
learn_site(orapi-anything learnin the CLI) with the page URL and a few real example values; it loads the page, finds the request that carries those values, saves it and checks it with a holdout call. See the quick start.Use it for repeat lookups
Reel Playbooks addition: it pays off most when your agent checks the same kind of data again and again, such as prices, ratings or listings for a report. Keep writes off (they need
--allow-writes) unless you have a clear reason.
Heads upCommon mistakes & tips
Reel Playbooks addition: these are unofficial, undocumented requests. Many sites, including some it lists, restrict automated access in their terms. Read each site's terms (the project says you are responsible), prefer an official API when one exists, keep request volume low and do not use it on logged-in accounts you do not own.
Reel Playbooks addition: sites change and can block automation; it does not solve CAPTCHAs, and an operation that works for others can fail for you. The speed comparisons in the repo are the maintainers' own tests on earlier builds.
Reel Playbooks addition: the setup runs code from npm and adds an MCP server to your agent; check the repo before installing.
Quick answersCommon questions
- What is Give Your AI Agent an API for Websites That Don't Have One with API Anything in short?
When you ask an AI agent to find a flight or check a book rating, it usually opens a browser and clicks around like a person, which is slow and uses a lot of tokens. API Anything, a free open source project, watches what a site does behind the scenes once, learns that request, and from then on your agent asks for the data directly and gets clean JSON back. The creator, Jordan Blake, says it already works with Google Flights, YouTube, Amazon and Airbnb, and you can teach it new sites.
- What do I need before starting?
Node.js 22.13 or newer
An agent such as Claude Code, Codex, Cursor, Claude Desktop or Gemini CLI
Google Chrome or another Chromium browser, only for learning new sites
No account or API key
- How many steps does it take?
- 4 steps:
Install it into your agent
Try a read
Teach it a new site
Use it for repeat lookups
- Who created this method?
Jordan Blake. Original strategy on Facebook.
Jordan Blake
Original strategy by Jordan Blake. Watch the original on Facebook.
MeasureHow to know it worked
Your agent answers site questions with a JSON call that says tier 1 or 2 instead of opening a browser, and repeat lookups finish faster than before.
ProvenanceSource & adaptation notes
Original
The reel (51 seconds) explains that API Anything turns any website into an API: instead of an agent opening a browser and clicking, which is slow and expensive, you show it a website once, it learns what the site does behind the scenes when you search, and afterward the agent asks the site directly and gets clean data in seconds. It names Google Flights, YouTube, Amazon and Airbnb, says you can teach it new sites, and says you install it by pasting the install link from the repo into Claude Code or Codex. It is free and open source.
Reel Playbooks additions
Reel Playbooks additions: the repo link, setup and test commands, how learning a site works, requirements, the writes setting, and the cautions on site terms, reliability, benchmark claims and install safety.
AttributionCredit
Original tip by Jordan Blake (Facebook) on Facebook (watch the original reel). API Anything is by goodnight000.
Adapted from Jordan Blake's video; steps expanded by Reel Playbooks.
Reel Playbooks credits and links to the original creator. See For creators to request changes or removal.