api-everything
# Api-everything
<!-- mcp-name: io.github.Abhinay-kal/api-everything -->
[](https://pypi.org/project/api-everything/)
[](https://pypi.org/project/api-everything/)
[](https://pypi.org/project/api-everything/)
[](https://github.com/Abhinay-kal/Api-everything/blob/main/LICENSE)
**A real browser loads the page, and you get the JSON the page itself received, as a REST API and MCP tools.
No AI at runtime, read-only, no HTML parsing.**
A warm pool of real Chrome browsers runs a small YAML recipe (open this page, do these steps,
capture the matching HTTP, GraphQL, WebSocket, or SSE response), and the daemon returns the JSON
the site's own page already received. It only reads responses; it never forges or alters requests,
so the browser itself produces any tokens the site needs.

**Why not just copy the request?** The bundled demo site mints a single-use token on every page
load, so replaying a captured request gets a 403 (the tests prove this). Loading the page in a real
browser and reading its own response works. Watch it from a clone with
`uv run python bench/replay_demo.py`.
**Know before you try it:**
- Not every site works. Reddit and Quora answer automated Chrome with HTTP 403, and this project
does not try to get past blocks.
- 53 of the bundled recipes click or type on the page, so a layout change can break those.
- Many bundled recipes read sites that also have a public API. They are working examples; where a
public API does what you need, calling it directly is simpler and faster.
**Status: alpha.** The core works end to end (the daemon, warm browser pool with backpressure,
recipes, checks, logins, and the recipe-scaffolding pipeline). **242 real-site recipes ship marked
`stable`** (the 5 reference recipes below plus 237 from the
[developer catalog](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/CATALOG.md)), each after 5 consecutive passing live checks when it was
added (last additions 2026-11-26). Sites change, so run `api-everything check` to see how they do
today. `sequelize_docs.search` and `techempower.results` failed their check on 2026-11-29 and are
marked `experimental`. The mock-site latency targets have not been validly measured on a quiet machine yet; see
[bench/README.md](https://github.com/Abhinay-kal/Api-everything/blob/main/bench/README.md) for every run.
- Design: [docs/PRD.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/PRD.md)
- Writing recipes: [docs/RECIPES.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/RECIPES.md)
- 100-site developer catalog: [docs/CATALOG.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/CATALOG.md) ([catalog/sites.yaml](https://github.com/Abhinay-kal/Api-everything/blob/main/catalog/sites.yaml))
- Vocabulary: [GLOSSARY.md](https://github.com/Abhinay-kal/Api-everything/blob/main/GLOSSARY.md)
- What is planned and when: [ROADMAP.md](https://github.com/Abhinay-kal/Api-everything/blob/main/ROADMAP.md)
## Try it
Needs Python 3.11+, [uv](https://docs.astral.sh/uv/) and Google Chrome. No Chrome (a Linux
server, say)? Run `uvx --from api-everything playwright install --only-shell chromium` once and set
`browser: chromium` in your config; see [Choosing a browser](#choosing-a-browser).
```bash
uvx api-everything serve # the daemon on 127.0.0.1:8750 (no clone needed)
```
```bash
curl 'http://127.0.0.1:8750/v1/run/hackernews.search?q=playwright'
```
Or try the bundled token-gated local demo site (`127.0.0.1:8799`) from a local clone (`uv sync`):
```bash
uv run python -m api_everything.mock_site & # a demo target on 127.0.0.1:8799
curl 'http://127.0.0.1:8750/v1/run/mock.items?q=Item%203'
```
```json
{"data":{"items":[{"id":3,"title":"Item 3"}]},"meta":{"recipe":"mock.items","status":200,"count":1}}
```
### Docker (headless Chromium included)
Build the image from a clone (no published image is available yet). An API token is required when
binding `0.0.0.0`:
```bash
docker build -t api-everything .
docker run --rm --init -p 8750:8750 \
-e API_EVERYTHING_TOKEN=change-me \
-v "$(pwd)/my-recipes:/recipes:ro" \
-e API_EVERYTHING__RECIPES_DIR=/recipes \
api-everything
```
| Command | What it does |
|---|---|
| `api-everything serve` | Run the daemon: a warm pool of Chrome browsers serving `/v1` (`--ui` for Playground at `/ui`, `--docs` for Swagger UI at `/docs`, `--watch` for hot-reload) |
| `api-everything doctor` | Diagnose Python, Playwright, Chrome/Chromium, port, token, and recipe health |
| `api-everything codegen` | Generate typed TypeScript (`--lang ts`) or Python (`--lang python`) clients |
| `api-everything watch NAME` | Poll a recipe and emit JSON diffs or POST alerts to `--webhook` |
| `api-everything validate` | Check every recipe without starting anything |
| `api-everything check NAME... \| --all` | Run recipes' live checks; goes through a running daemon |
| `api-everything login PROFILE` | Sign in by hand once for recipes that use a logged-in profile |
| `api-everything probe TARGET` | Inspect live XHR/fetch JSON calls from a URL (catalog site IDs need a clone of the repository) |
| `api-everything scaffold TARGET` | Generate a draft YAML recipe (with optional `--probe` auto-detection) |
| `api-everything promote NAME` | Run N consecutive live checks (default 5) and promote to `stable` |
| `api-everything chrome PROFILE` | Start the Chrome an *attached* profile connects to (see below) |
| `api-everything mcp` | Let an AI agent call your recipes as tools over MCP (see below) |
| `api-everything recipes pull\|diff\|apply\|remove` | Fetch shared recipes from git and apply the ones you approve |
| `api-everything repair NAME` | Draft a verified fix for a recipe whose check failed because the site changed |
| `api-everything record URL` | Browse a page once and generate a verified recipe for one of its JSON responses |
Endpoints: `GET|POST /v1/run/{recipe}`, `GET /v1/recipes`, `GET /v1/recipes/{name}`,
`GET /v1/stats` (token only), `GET /metrics` (Prometheus), and `GET /healthz`. Pass `--docs` to `serve` to expose per-recipe typed `/openapi.json` (ready for `openapi-typescript` or Python client generators) and `/docs`. Settings live in an optional
`api-everything.yaml` (see `api-everything.example.yaml`).
### Web Playground (`--ui`)
Start the daemon with `--ui` to browse all bundled recipes, test parameters with auto-generated forms, copy `curl` commands, probe live URLs, and inspect `/metrics` health locally at `http://127.0.0.1:8750/ui` (off by default):
```bash
uvx api-everything serve --ui --watch
```

## SDKs, Chrome Extension & MCP Registry
- **Python SDK:** `from api_everything import Client` — see [examples/python_quickstart.py](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/python_quickstart.py)
- **TypeScript / JS:** zero-dependency `fetch` & typed `openapi-fetch` — see [examples/ts_quickstart.ts](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/ts_quickstart.ts)
- **Editor & Workflow Examples:** [Claude Code](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/claude_code.md), [Cursor](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/cursor_mcp.json), [Windsurf](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/windsurf_mcp.json), [LangChain](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/langchain_tool.py), [n8n](https://github.com/Abhinay-kal/Api-everything/blob/main/examples/n8n_http_node.json)
- **MCP Registry Manifests:** [server.json](https://github.com/Abhinay-kal/Api-everything/blob/main/server.json) and [smithery.yaml](https://github.com/Abhinay-kal/Api-everything/blob/main/smithery.yaml)
- **Chrome MV3 1-Click Recorder:** Load [extension/](https://github.com/Abhinay-kal/Api-everything/blob/main/extension/README.md) unpacked in `chrome://extensions` to capture XHR/fetch URLs from your active tab and send them to `serve --ui` (early: not yet tested by hand).
## Why Not X?
Many web apps load their data from internal JSON endpoints. Api-everything is for that case; other
tools are better for others.
**When to choose what:**
- **Use Api-everything** when the target site already fetches clean JSON in the browser and you want a zero-token REST API or [MCP](https://modelcontextprotocol.io/) tool.
- **Use [Crawl4AI](https://github.com/unclecode/crawl4ai) / [ScrapeGraphAI](https://github.com/ScrapeGraphAI/Scrapegraph-ai)** when data lives only in server-rendered HTML/articles and you want LLM-ready Markdown.
- **Use [Browser-Use](https://github.com/browser-use/browser-use)** for open-ended, multi-step tasks (filling out arbitrary forms or navigating unfamiliar sites).
- **Use [Scrapy](https://github.com/scrapy/scrapy)** for high-volume static HTML crawling where JS hydration and single-use request tokens are not required.
## Reference recipes and their status
| Recipe | Status | Last checked | Result |
|---|---|---|---|
| `hackernews.search` | stable | 2026-11-25 | Passes 5/5 live checks (captures `hn.algolia.com` Algolia XHR JSON) |
| `github.explore` | stable | 2026-11-25 | Passes 5/5 live checks (public `api.github.com/search/repositories` JSON) |
| `wikipedia.summary` | stable | 2026-11-25 | Passes 5/5 live checks (Wikimedia REST summary JSON) |
| `mastodon.explore` | stable | 2026-11-25 | Passes 5/5 live checks (captures `mastodon.social/explore` trends XHR JSON) |
| `substack.search` | stable | 2026-11-25 | Passes 5/5 live checks (captures `substack.com/search` fetch JSON) |
| `mock.items` | stable | 2026-11-15 | Passes (the local demo site) |
| `reddit.search` | experimental | 2026-11-16 | HTTP 403 block page for automated Chrome: headless, with a visible window, and through an attached Chrome (fresh profile) |
| `quora.answers` | experimental, unverified | 2026-11-15 | HTTP 403 with a Cloudflare "security verification" page; its matcher is a placeholder |
The agreed rule is: a reference recipe must pass its live check five times in a row, or ship
labelled experimental with its status written down. All five flagship recipes above (plus 237
more `stable` developer recipes in [docs/CATALOG.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/CATALOG.md)) passed five consecutive
live checks; `reddit.search` and `quora.answers` did not pass and stay `experimental`. This project
deliberately does not solve CAPTCHAs or evade bot detection, so it does not try to get past those
blocks. `check --all` skips experimental recipes unless you pass `--include-experimental`. To write
a recipe that works, see [docs/RECIPES.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/RECIPES.md), or use the
[100-site catalog](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/CATALOG.md) with `probe`, `scaffold`, and `promote` from a clone of the repository (the
catalog file is not part of the installed package).
## Scheduling live checks
`api-everything check --all` runs every stable recipe's live check and exits 1 if any fail, so a
scheduler can run it and a `notify_command` in your config can tell you. Run it on your own
machine, never from hosted CI: your home IP and your Chrome are what the sites accept. If a
daemon is running, the checks go through it.
With cron (every morning at 09:00; use the full path to `uvx` from `which uvx`):
```bash
0 9 * * * /opt/homebrew/bin/uvx api-everything check --all >> "$HOME/api-everything-checks.log" 2>&1
```
With launchd on macOS, save this as `~/Library/LaunchAgents/local.api-everything.check.plist`
and load it with `launchctl load`:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
<key>Label</key><string>local.api-everything.check</string>
<key>ProgramArguments</key>
<array><string>/opt/homebrew/bin/uvx</string><string>api-everything</string>
<string>check</string><string>--all</string></array>
<key>StartCalendarInterval</key><dict><key>Hour</key><integer>9</integer>
<key>Minute</key><integer>0</integer></dict>
<key>StandardOutPath</key><string>/tmp/api-everything-checks.log</string>
<key>StandardErrorPath</key><string>/tmp/api-everything-checks.log</string>
</dict></plist>
```
Both examples follow the standard formats but have not been run under a real scheduler by the
author. A recipe that is blocked by its site (the experimental ones) is skipped unless you add
`--include-experimental`.
## Attaching to a Chrome you start
For a logged-in profile you can start the Chrome yourself and let the daemon attach to it,
instead of the daemon launching one:
```yaml
profiles:
reddit:
attach: http://127.0.0.1:9222 # this machine only; pick any free port
```
```bash
uv run api-everything chrome reddit # a visible Chrome on its own folder; sign in by hand
uv run api-everything serve # attaches to it; stopping the daemon leaves it open
```
Things to know. It is **not** your everyday Chrome: Chrome 136 and later ignores remote
debugging on the default profile, so this is a separate Chrome with its own folder. Anything on
this machine that can reach that port can control that Chrome, which is why only loopback
addresses are accepted. It is still an automated browser and does not hide that: sites that
block automation can block it too. If it is closed, runs answer `503 browser_unavailable` with
the command to start it again.
## Repair a recipe the site broke
```bash
uv run api-everything repair reddit.search # drafts a fix; applies nothing
uv run api-everything repair apply reddit.search # shows the diff, installs if you approve
```
It re-runs the recipe's check, loads the page again, and drafts a fix: the one response that still
satisfies the recipe's old assertions (**no AI**), or one Claude call that has **no tools** and sees
only structure (key names and types, never values). The draft is replayed live and saved only if it
works; it can change just the matcher and the assertions. It never tries to get around a site that
blocks you or an expired login. A recipe that reshapes its result (`extract`, `collect: all`) is refused. See [docs/RECIPES.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/RECIPES.md#when-a-recipe-breaks-repair-it).
## Get shared recipes
The default community recipe repository is not public yet, so `recipes pull` fails for others until
it is. Point `recipe_sources` at a git repository of your own, or set it to `[]` to turn this off.
```bash
uv run api-everything recipes pull # fetch (changes nothing you use)
uv run api-everything recipes diff # see exactly what would change
uv run api-everything recipes apply # approve one recipe at a time
```
Recipes come from git repositories in `recipe_sources` (default: the community repo). They install
into a managed folder *below* your own recipes, which always win by name. Anything risky (a new
recipe, a new site, any change to a logged-in recipe, new actions) needs you to type the recipe's name; recipes
using `eval` are never applied. Nothing verifies who wrote a recipe, so read the diff. See
[docs/RECIPES.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/RECIPES.md#getting-shared-recipes).
## Record a recipe instead of writing it
```bash
uv run api-everything record "https://shop.example.com/search?q=shoes" --param q
```
A visible browser opens; let the page load and press Enter. You pick which JSON response is the
data you want (the list shows key names and types, not values), and the recipe is replayed once
in a fresh browser before it is written and compared with what you picked, so a file on disk has either been verified or is marked
experimental. It captures network responses only, not your clicks or typing. See
[docs/RECIPES.md](https://github.com/Abhinay-kal/Api-everything/blob/main/docs/RECIPES.md#the-quick-way-record-it).
## Use it from an AI agent (MCP)
`api-everything mcp` is an [MCP](https://modelcontextprotocol.io) server on stdio. It is a thin
bridge to a **running daemon**: each recipe becomes one tool with typed parameters, and a call
goes to the daemon's `/v1` API, so the browsers, rate limits and token are shared. It never
starts a daemon or a browser.
```bash
uv run api-everything serve # in one terminal, and leave it running
# Claude Code:
claude mcp add api-everything -- uv run --project /path/to/api-everything api-everything mcp
```
Claude Desktop (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"api-everything": {
"command": "uv",
"args": ["run", "--project", "/path/to/api-everything", "api-everything", "mcp"]
}
}
}
```
By default an agent is offered only recipes that are `stable` and need no login. Add
`--include-experimental` for experimental ones and `--include-profiles` for logged-in recipes,
which run as your account, so turn that on only on purpose.
**Choose sites.** Every bundled stable recipe is a tool, which is a lot for an agent to carry.
`--sites hackernews,github` offers only those sites' recipes (a site is the part of a recipe's name
before the dot). It only narrows: experimental and logged-in recipes still need their own flags.
Include your own recipes' site names too. The registry entry and the files in
[examples/](https://github.com/Abhinay-kal/Api-everything/tree/main/examples) start with
`hackernews,github,wikipedia,mastodon,substack`. Needs 0.8.0 or later.
If the daemon uses an API token, give
the bridge the same one with `API_EVERYTHING_TOKEN_FILE` (a path to a file holding it) rather than
pasting the token into an app's config. If the daemon is not running, the bridge still starts and
tells the agent to start it. The tool list comes from the daemon. If you start the daemon after the agent app, the agent may still show only the "not running" tool: the bridge announces the change to clients that listen for it, and otherwise refreshing the tools (or reconnecting the MCP server) picks the recipes up. GUI apps often lack your shell's `PATH`, so in Claude Desktop give `command` as the full path to `uv` (the Claude Desktop snippet above has not been tried in the app).
## Safe by default
- Listens on `127.0.0.1` only. Any other address needs an API token (`API_EVERYTHING_TOKEN`),
and then every request must send `Authorization: Bearer <token>`.
- Without a token, requests addressed to any host name other than localhost are refused, so a
web page cannot reach it through DNS rebinding. No CORS headers are ever sent.
- A recipe that uses a logged-in profile is refused unless a token is set, even on localhost.
- A busy daemon says so (HTTP 429 with `Retry-After`) instead of queueing without limit, and
every run has one deadline covering the wait and the work.
- Logs hold metadata only: never response bodies, cookies, tokens or raw parameter values.
## Responsible use
This tool is for reading data from your own accounts and from public pages. You are
responsible for following each site's terms of service and robots.txt. Many sites forbid
automated access. Conservative defaults (per-domain rate limiting, no CAPTCHA solving,
no credential handling) ship on by default, and recipes must not change state on a site
(posting, deleting, submitting forms). Review any recipe before running it, especially
in a logged-in profile.
## Choosing a browser
Runs that need no login (`session: none`) use one shared browser. Which one is the operator's
choice, in the config file (or `API_EVERYTHING__BROWSER`), never in a recipe:
| `browser:` | What runs | Needs |
|---|---|---|
| `chrome` (default) | your installed Google Chrome, in Chrome's new headless mode | Google Chrome |
| `chromium` | Playwright's managed Chromium (the headless shell) | `uv run playwright install --only-shell chromium`, about 106 MB, once |
If the chosen browser is missing, `serve` exits with one line naming the fix (and a request
gets `503 browser_not_installed`) instead of retrying forever. Both options are plain
automated browsers: neither hides that it is one. Logged-in `profile:<name>` recipes always use
real Chrome, because Chrome and Chromium cannot share one profile's cookies. Speed is not a
reason to pick `chromium`: it has not been measured against Chrome on a quiet machine.
## Development
Want to add a recipe in 2 minutes or contribute code? See [CONTRIBUTING.md](https://github.com/Abhinay-kal/Api-everything/blob/main/CONTRIBUTING.md).
Working with an AI coding agent (Antigravity, Claude Code, ...)? Point it at [AGENTS.md](https://github.com/Abhinay-kal/Api-everything/blob/main/AGENTS.md)
first, and use `scripts/check` to verify a change (lint + fast tests in about 15 seconds;
`scripts/check full` for everything).
Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).
```bash
uv sync
uv run pytest
uv run ruff check
uv run api-everything validate # load and check every recipe, then exit
```
The browser tests use your installed Google Chrome (or `uv run playwright install chrome`).
The tests of the `chromium` setting also need `uv run playwright install --only-shell chromium`;
locally they are skipped without it, in CI they fail.
If your project folder is synced by iCloud Drive (macOS "Desktop & Documents"), keep the
virtualenv outside it, for example `export UV_PROJECT_ENVIRONMENT=~/.venvs/api-everything`.
Synced files can be marked `hidden` (Python then silently skips the editable install) or
`dataless` (reading them blocks while macOS downloads them), which looks like missing
imports or tests that hang.
## License
Apache-2.0. See [LICENSE](https://github.com/Abhinay-kal/Api-everything/blob/main/LICENSE).
TDQS
Scored across 1 tool
With only one tool there is no possibility of misselection between operations, so ambiguity is nil. However, the sole entry is not a real capability an agent can choose, so distinctness is vacuous rather than earned.
The single name 'api_everything_not_running' is a status/error phrase rather than an actionable verb_noun identifier, and it redundantly prefixes the server name. With one tool no consistency can be established, and the pattern shown is non-actionable.
An 'api-everything' server exposing exactly one tool is an extreme mismatch with its apparent all-purpose scope. The lone tool is a connectivity failure stub, not a functional operation.
The surface contains no actual API operations — no list/get/create/update, nothing. The only tool reports that the backing daemon is unreachable, so every conceivable agent workflow dead-ends immediately.