api-everything 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- api_everything/__init__.py +3 -0
- api_everything/__main__.py +8 -0
- api_everything/check.py +168 -0
- api_everything/chrome_cmd.py +131 -0
- api_everything/cli.py +803 -0
- api_everything/config.py +321 -0
- api_everything/delivery.py +518 -0
- api_everything/delivery_git.py +94 -0
- api_everything/driver/__init__.py +37 -0
- api_everything/driver/attach.py +95 -0
- api_everything/driver/base.py +80 -0
- api_everything/driver/chrome.py +127 -0
- api_everything/driver/profile.py +84 -0
- api_everything/engine.py +381 -0
- api_everything/errors.py +23 -0
- api_everything/hooks.py +52 -0
- api_everything/login.py +95 -0
- api_everything/mcp_bridge.py +249 -0
- api_everything/metrics.py +87 -0
- api_everything/mock_site/__init__.py +5 -0
- api_everything/mock_site/__main__.py +18 -0
- api_everything/mock_site/app.py +262 -0
- api_everything/pipeline.py +934 -0
- api_everything/pool.py +553 -0
- api_everything/ratelimit.py +67 -0
- api_everything/recipe/__init__.py +6 -0
- api_everything/recipe/actions.py +56 -0
- api_everything/recipe/jsonpath.py +22 -0
- api_everything/recipe/loader.py +142 -0
- api_everything/recipe/params.py +120 -0
- api_everything/recipe/schema.py +235 -0
- api_everything/recipes/alignmentforum/feed.yaml +15 -0
- api_everything/recipes/alpine_docs/search.yaml +32 -0
- api_everything/recipes/angular_docs/search.yaml +32 -0
- api_everything/recipes/anthropic_status/summary.yaml +17 -0
- api_everything/recipes/apis_guru/providers.yaml +15 -0
- api_everything/recipes/arbeitnow/jobs.yaml +20 -0
- api_everything/recipes/arin_rdap/ip.yaml +24 -0
- api_everything/recipes/artifacthub/browse.yaml +22 -0
- api_everything/recipes/artifacthub/search.yaml +24 -0
- api_everything/recipes/astro_docs/search.yaml +32 -0
- api_everything/recipes/atlassian_status/summary.yaml +17 -0
- api_everything/recipes/babel_docs/search.yaml +32 -0
- api_everything/recipes/binance/price.yaml +24 -0
- api_everything/recipes/bugzilla/bugs.yaml +24 -0
- api_everything/recipes/bundlephobia/size.yaml +24 -0
- api_everything/recipes/caddy_docs/search.yaml +32 -0
- api_everything/recipes/caniuse/search.yaml +24 -0
- api_everything/recipes/capacitor_docs/search.yaml +32 -0
- api_everything/recipes/cdnjs/library.yaml +22 -0
- api_everything/recipes/cdnjs/search.yaml +27 -0
- api_everything/recipes/certspotter/issuances.yaml +27 -0
- api_everything/recipes/cheerio_docs/search.yaml +32 -0
- api_everything/recipes/circleci_status/summary.yaml +17 -0
- api_everything/recipes/cisa_kev/catalog.yaml +17 -0
- api_everything/recipes/civitai/models.yaml +26 -0
- api_everything/recipes/cloudflare_status/summary.yaml +17 -0
- api_everything/recipes/cncf_landscape/projects.yaml +20 -0
- api_everything/recipes/cncf_landscape/ui.yaml +18 -0
- api_everything/recipes/coinbase/rates.yaml +24 -0
- api_everything/recipes/coingecko/trending.yaml +17 -0
- api_everything/recipes/conda_forge/package.yaml +25 -0
- api_everything/recipes/crates/categories.yaml +15 -0
- api_everything/recipes/crates/downloads.yaml +22 -0
- api_everything/recipes/crates/keywords.yaml +15 -0
- api_everything/recipes/crates/reverse_deps.yaml +22 -0
- api_everything/recipes/crates/search.yaml +24 -0
- api_everything/recipes/crates/summary.yaml +15 -0
- api_everything/recipes/crates/user.yaml +22 -0
- api_everything/recipes/crates/versions.yaml +22 -0
- api_everything/recipes/crossref/works.yaml +24 -0
- api_everything/recipes/cve_org/record.yaml +24 -0
- api_everything/recipes/debian_sources/search.yaml +24 -0
- api_everything/recipes/deps_dev/npm_spa.yaml +22 -0
- api_everything/recipes/deps_dev/package.yaml +23 -0
- api_everything/recipes/devdocs/index.yaml +18 -0
- api_everything/recipes/devto/articles.yaml +26 -0
- api_everything/recipes/devto/latest.yaml +18 -0
- api_everything/recipes/devto/tags.yaml +18 -0
- api_everything/recipes/devto/top.yaml +18 -0
- api_everything/recipes/digitalocean_status/summary.yaml +17 -0
- api_everything/recipes/digitalocean_status/ui.yaml +15 -0
- api_everything/recipes/discord_status/summary.yaml +17 -0
- api_everything/recipes/dns_google/resolve.yaml +24 -0
- api_everything/recipes/drizzle_docs/search.yaml +32 -0
- api_everything/recipes/echojs/latest.yaml +17 -0
- api_everything/recipes/ecosystems/package.yaml +25 -0
- api_everything/recipes/endoflife/product.yaml +24 -0
- api_everything/recipes/epss/score.yaml +24 -0
- api_everything/recipes/exchangerate/latest.yaml +24 -0
- api_everything/recipes/firefox_addons/search.yaml +26 -0
- api_everything/recipes/fly_status/summary.yaml +17 -0
- api_everything/recipes/formik_docs/search.yaml +32 -0
- api_everything/recipes/frankfurter/rates.yaml +24 -0
- api_everything/recipes/gcp_status/incidents.yaml +20 -0
- api_everything/recipes/github/explore.yaml +35 -0
- api_everything/recipes/github/gists.yaml +18 -0
- api_everything/recipes/github/issues.yaml +30 -0
- api_everything/recipes/github/license.yaml +23 -0
- api_everything/recipes/github/org.yaml +22 -0
- api_everything/recipes/github/releases.yaml +30 -0
- api_everything/recipes/github/repo.yaml +28 -0
- api_everything/recipes/github/user.yaml +22 -0
- api_everything/recipes/github_advisories/list.yaml +20 -0
- api_everything/recipes/github_status/summary.yaml +17 -0
- api_everything/recipes/github_status/ui.yaml +15 -0
- api_everything/recipes/gitlab/issues.yaml +24 -0
- api_everything/recipes/gitlab/repo.yaml +21 -0
- api_everything/recipes/gitlab/search.yaml +26 -0
- api_everything/recipes/go_proxy/latest.yaml +24 -0
- api_everything/recipes/grafana_status/summary.yaml +17 -0
- api_everything/recipes/hackage/versions.yaml +24 -0
- api_everything/recipes/hackernews/ask.yaml +18 -0
- api_everything/recipes/hackernews/front_page.yaml +18 -0
- api_everything/recipes/hackernews/item.yaml +21 -0
- api_everything/recipes/hackernews/jobs.yaml +18 -0
- api_everything/recipes/hackernews/latest.yaml +25 -0
- api_everything/recipes/hackernews/search.yaml +34 -0
- api_everything/recipes/hackernews/show.yaml +18 -0
- api_everything/recipes/hashicorp_releases/list.yaml +27 -0
- api_everything/recipes/hashicorp_status/summary.yaml +17 -0
- api_everything/recipes/helm_docs/search.yaml +32 -0
- api_everything/recipes/heroku_status/current.yaml +17 -0
- api_everything/recipes/hexpm/search.yaml +27 -0
- api_everything/recipes/hf_papers/daily.yaml +20 -0
- api_everything/recipes/himalayas/jobs.yaml +17 -0
- api_everything/recipes/homebrew/cask.yaml +22 -0
- api_everything/recipes/homebrew/formula.yaml +26 -0
- api_everything/recipes/hono_docs/search.yaml +32 -0
- api_everything/recipes/httpbin/json.yaml +17 -0
- api_everything/recipes/httpbin/uuid.yaml +15 -0
- api_everything/recipes/huggingface/datasets.yaml +25 -0
- api_everything/recipes/huggingface/model_info.yaml +27 -0
- api_everything/recipes/huggingface/models.yaml +28 -0
- api_everything/recipes/huggingface/spaces.yaml +25 -0
- api_everything/recipes/inspirehep/papers.yaml +24 -0
- api_everything/recipes/ionic_docs/search.yaml +32 -0
- api_everything/recipes/ipify/ipv4.yaml +17 -0
- api_everything/recipes/ipwho/lookup.yaml +24 -0
- api_everything/recipes/jest_docs/search.yaml +32 -0
- api_everything/recipes/jsdelivr/gh.yaml +27 -0
- api_everything/recipes/jsdelivr/npm.yaml +24 -0
- api_everything/recipes/jsr/search.yaml +27 -0
- api_everything/recipes/launchdarkly_status/summary.yaml +17 -0
- api_everything/recipes/lemmy/hot.yaml +17 -0
- api_everything/recipes/lesswrong/feed.yaml +17 -0
- api_everything/recipes/llamaindex_docs/search.yaml +32 -0
- api_everything/recipes/lobsters/hottest.yaml +20 -0
- api_everything/recipes/luma/category.yaml +22 -0
- api_everything/recipes/luma/events.yaml +17 -0
- api_everything/recipes/mastodon/explore.yaml +26 -0
- api_everything/recipes/mastodon/tag.yaml +23 -0
- api_everything/recipes/mastodon/trends_tags.yaml +18 -0
- api_everything/recipes/mdn/search.yaml +24 -0
- api_everything/recipes/metacpan/search.yaml +24 -0
- api_everything/recipes/microlink/preview.yaml +24 -0
- api_everything/recipes/mikro_orm_docs/search.yaml +32 -0
- api_everything/recipes/mock/items.yaml +35 -0
- api_everything/recipes/mongodb_status/summary.yaml +17 -0
- api_everything/recipes/nager_date/holidays.yaml +32 -0
- api_everything/recipes/neon_docs/search.yaml +32 -0
- api_everything/recipes/nestjs_docs/search.yaml +32 -0
- api_everything/recipes/netlify_status/summary.yaml +17 -0
- api_everything/recipes/nextjs_docs/search.yaml +32 -0
- api_everything/recipes/nodejs_dist/releases.yaml +17 -0
- api_everything/recipes/npm/dist_tags.yaml +22 -0
- api_everything/recipes/npm/package.yaml +25 -0
- api_everything/recipes/npm/search.yaml +25 -0
- api_everything/recipes/npm_downloads/weekly.yaml +24 -0
- api_everything/recipes/npm_status/summary.yaml +17 -0
- api_everything/recipes/npmtrends/compare.yaml +22 -0
- api_everything/recipes/nuget/search.yaml +27 -0
- api_everything/recipes/nuxt_docs/search.yaml +32 -0
- api_everything/recipes/nvd/cve.yaml +22 -0
- api_everything/recipes/nvd/cves.yaml +24 -0
- api_everything/recipes/open_elevation/lookup.yaml +29 -0
- api_everything/recipes/openai_status/summary.yaml +17 -0
- api_everything/recipes/opencollective/search.yaml +22 -0
- api_everything/recipes/openfda/events.yaml +17 -0
- api_everything/recipes/openlibrary/search.yaml +24 -0
- api_everything/recipes/openmeteo/forecast.yaml +17 -0
- api_everything/recipes/openrouter/models.yaml +20 -0
- api_everything/recipes/openstreetmap/geocode.yaml +27 -0
- api_everything/recipes/openstreetmap/reverse.yaml +27 -0
- api_everything/recipes/osv/vuln.yaml +24 -0
- api_everything/recipes/packagist/search.yaml +27 -0
- api_everything/recipes/peps/list.yaml +17 -0
- api_everything/recipes/pinia_docs/search.yaml +32 -0
- api_everything/recipes/pkg_go_dev/browse.yaml +15 -0
- api_everything/recipes/pkg_go_dev/package.yaml +25 -0
- api_everything/recipes/playwright_docs/search.yaml +32 -0
- api_everything/recipes/pnpm_docs/search.yaml +32 -0
- api_everything/recipes/pokeapi/pokemon.yaml +24 -0
- api_everything/recipes/posthog_docs/search.yaml +32 -0
- api_everything/recipes/postman_echo/get.yaml +24 -0
- api_everything/recipes/postman_status/summary.yaml +17 -0
- api_everything/recipes/preact_docs/search.yaml +32 -0
- api_everything/recipes/pubdev/search.yaml +24 -0
- api_everything/recipes/pubmed/search.yaml +24 -0
- api_everything/recipes/puppeteer_docs/search.yaml +32 -0
- api_everything/recipes/pypi/package.yaml +24 -0
- api_everything/recipes/pypi/version.yaml +27 -0
- api_everything/recipes/quay/search.yaml +27 -0
- api_everything/recipes/quora/answers.yaml +46 -0
- api_everything/recipes/qwik_docs/search.yaml +32 -0
- api_everything/recipes/ray_docs/search.yaml +32 -0
- api_everything/recipes/rdap/domain.yaml +24 -0
- api_everything/recipes/react_docs/search.yaml +32 -0
- api_everything/recipes/react_hook_form_docs/search.yaml +32 -0
- api_everything/recipes/reactrouter_docs/search.yaml +32 -0
- api_everything/recipes/reddit/search.yaml +48 -0
- api_everything/recipes/reddit_status/summary.yaml +17 -0
- api_everything/recipes/remoteok/jobs.yaml +17 -0
- api_everything/recipes/render_status/summary.yaml +17 -0
- api_everything/recipes/repology/project.yaml +24 -0
- api_everything/recipes/ripe_stat/prefix.yaml +24 -0
- api_everything/recipes/rollup_docs/search.yaml +32 -0
- api_everything/recipes/rsbuild_docs/search.yaml +32 -0
- api_everything/recipes/rubygems/gem.yaml +22 -0
- api_everything/recipes/rubygems/search.yaml +27 -0
- api_everything/recipes/sendgrid_status/summary.yaml +17 -0
- api_everything/recipes/sequelize_docs/search.yaml +32 -0
- api_everything/recipes/shodan_internetdb/host.yaml +24 -0
- api_everything/recipes/shopify_status/summary.yaml +17 -0
- api_everything/recipes/sigstore_rekor/log.yaml +17 -0
- api_everything/recipes/slack_status/current.yaml +17 -0
- api_everything/recipes/spdx/licenses.yaml +17 -0
- api_everything/recipes/stackexchange/sites.yaml +20 -0
- api_everything/recipes/stackoverflow/answers.yaml +15 -0
- api_everything/recipes/stackoverflow/questions.yaml +18 -0
- api_everything/recipes/stackoverflow/search.yaml +27 -0
- api_everything/recipes/stackoverflow/tags.yaml +18 -0
- api_everything/recipes/strapi_docs/search.yaml +32 -0
- api_everything/recipes/strawberry_docs/search.yaml +32 -0
- api_everything/recipes/stripe_status/current.yaml +17 -0
- api_everything/recipes/substack/explore.yaml +22 -0
- api_everything/recipes/substack/search.yaml +31 -0
- api_everything/recipes/sunrise_sunset/times.yaml +29 -0
- api_everything/recipes/supabase_status/summary.yaml +17 -0
- api_everything/recipes/swr_docs/search.yaml +32 -0
- api_everything/recipes/tanstack_docs/search.yaml +32 -0
- api_everything/recipes/tc39/proposals.yaml +20 -0
- api_everything/recipes/techempower/results.yaml +15 -0
- api_everything/recipes/temporal_docs/search.yaml +32 -0
- api_everything/recipes/terraform_registry/browse.yaml +25 -0
- api_everything/recipes/terraform_registry/search.yaml +24 -0
- api_everything/recipes/testing_library_docs/search.yaml +32 -0
- api_everything/recipes/tvmaze/shows.yaml +24 -0
- api_everything/recipes/twilio_status/summary.yaml +17 -0
- api_everything/recipes/upstash_docs/search.yaml +32 -0
- api_everything/recipes/valibot_docs/search.yaml +32 -0
- api_everything/recipes/vercel_status/summary.yaml +17 -0
- api_everything/recipes/vercel_status/ui.yaml +15 -0
- api_everything/recipes/vue_docs/search.yaml +32 -0
- api_everything/recipes/w3c/specs.yaml +17 -0
- api_everything/recipes/wayback/available.yaml +24 -0
- api_everything/recipes/webdriverio_docs/search.yaml +32 -0
- api_everything/recipes/webpack_docs/search.yaml +32 -0
- api_everything/recipes/wikidata/entity.yaml +22 -0
- api_everything/recipes/wikidata/search.yaml +24 -0
- api_everything/recipes/wikimedia_commons/search.yaml +25 -0
- api_everything/recipes/wikipedia/search.yaml +25 -0
- api_everything/recipes/wikipedia/summary.yaml +33 -0
- api_everything/recipes/wordpress_plugins/search.yaml +24 -0
- api_everything/recipes/wordpress_themes/search.yaml +24 -0
- api_everything/recipes/worldbank/indicator.yaml +17 -0
- api_everything/recipes/zenodo/records.yaml +24 -0
- api_everything/recipes/zippopotam/in.yaml +22 -0
- api_everything/recipes/zippopotam/lookup.yaml +29 -0
- api_everything/recipes/zoom_status/summary.yaml +17 -0
- api_everything/record.py +327 -0
- api_everything/record_session.py +364 -0
- api_everything/repair.py +717 -0
- api_everything/repair_ai.py +194 -0
- api_everything/runlog.py +61 -0
- api_everything/server.py +323 -0
- api_everything-0.5.0.dist-info/METADATA +363 -0
- api_everything-0.5.0.dist-info/RECORD +281 -0
- api_everything-0.5.0.dist-info/WHEEL +4 -0
- api_everything-0.5.0.dist-info/entry_points.txt +2 -0
- api_everything-0.5.0.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: api-everything
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Serve a website's own internal JSON as an API by driving a real browser and reading the responses the page already receives.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Abhinay-kal/Api-everything
|
|
6
|
+
Project-URL: Repository, https://github.com/Abhinay-kal/Api-everything
|
|
7
|
+
Project-URL: Issues, https://github.com/Abhinay-kal/Api-everything/issues
|
|
8
|
+
Author: Abhinay Kalkhanday
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: api,automation,browser,fastapi,json,mcp,playwright
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: fastapi>=0.163.0
|
|
23
|
+
Requires-Dist: httpx>=0.28.1
|
|
24
|
+
Requires-Dist: jsonpath-ng>=1.16.0
|
|
25
|
+
Requires-Dist: mcp>=2.3.0
|
|
26
|
+
Requires-Dist: playwright>=1.65.2
|
|
27
|
+
Requires-Dist: psutil>=7.2.2
|
|
28
|
+
Requires-Dist: pydantic>=2.7
|
|
29
|
+
Requires-Dist: pyyaml>=6.0
|
|
30
|
+
Requires-Dist: uvicorn>=0.54.0
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# Api-everything
|
|
34
|
+
|
|
35
|
+
Serve a website's own internal JSON as an API. A warm pool of real Chrome browsers runs a
|
|
36
|
+
small YAML recipe (open this page, do these steps, capture the response that matches), and
|
|
37
|
+
the daemon returns the JSON the site's own page already received. It only reads
|
|
38
|
+
responses; it never forges or alters requests, so the browser itself produces any
|
|
39
|
+
tokens the site needs.
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
**Status: alpha.** The core works end to end (the daemon, warm browser pool with backpressure,
|
|
44
|
+
recipes, checks, logins, and the recipe-scaffolding pipeline), and **174 real-site recipes ship
|
|
45
|
+
`stable` out of the box** (starting with the 5 flagship reference recipes below, plus 169 more from
|
|
46
|
+
the [developer catalog](docs/CATALOG.md)), each verified with 5 consecutive passing live
|
|
47
|
+
checks. `reddit.search` and `quora.answers` remain `experimental` at the bottom of the recipe table
|
|
48
|
+
because those sites return HTTP 403 to automated Chrome. The mock-site latency targets have not
|
|
49
|
+
been validly measured on a quiet machine yet; see [bench/README.md](bench/README.md) for every
|
|
50
|
+
run, honestly reported.
|
|
51
|
+
|
|
52
|
+
- Design: [docs/PRD.md](docs/PRD.md)
|
|
53
|
+
- Writing recipes: [docs/RECIPES.md](docs/RECIPES.md)
|
|
54
|
+
- 100-site developer catalog: [docs/CATALOG.md](docs/CATALOG.md) ([catalog/sites.yaml](catalog/sites.yaml))
|
|
55
|
+
- Vocabulary: [GLOSSARY.md](GLOSSARY.md)
|
|
56
|
+
- What is planned and when: [ROADMAP.md](ROADMAP.md)
|
|
57
|
+
|
|
58
|
+
## Try it
|
|
59
|
+
|
|
60
|
+
Needs Python 3.11+, [uv](https://docs.astral.sh/uv/) and Google Chrome. No Chrome (a Linux
|
|
61
|
+
server, say)? Run `uvx --from api-everything playwright install --only-shell chromium` once and set
|
|
62
|
+
`browser: chromium` in your config; see [Choosing a browser](#choosing-a-browser).
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
uvx api-everything serve # the daemon on 127.0.0.1:8750 (no clone needed)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
curl 'http://127.0.0.1:8750/v1/run/hackernews.search?q=playwright'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Or try the bundled token-gated local demo site (`127.0.0.1:8799`) from a local clone (`uv sync`):
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
uv run python -m api_everything.mock_site & # a demo target on 127.0.0.1:8799
|
|
76
|
+
curl 'http://127.0.0.1:8750/v1/run/mock.items?q=Item%203'
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{"data":{"items":[{"id":3,"title":"Item 3"}]},"meta":{"recipe":"mock.items","status":200,"count":1}}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Docker (Headless Chromium pre-installed)
|
|
84
|
+
|
|
85
|
+
Run the daemon with headless Chromium and all Linux dependencies encapsulated in a single container (an API token is required when binding `0.0.0.0`):
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
docker run --rm --init -p 8750:8750 \
|
|
89
|
+
-e API_EVERYTHING_TOKEN=change-me \
|
|
90
|
+
ghcr.io/abhinay-kal/api-everything
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Or build locally and mount your own recipes:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
docker build -t api-everything .
|
|
97
|
+
docker run --rm --init -p 8750:8750 \
|
|
98
|
+
-e API_EVERYTHING_TOKEN=change-me \
|
|
99
|
+
-v "$(pwd)/my-recipes:/recipes:ro" \
|
|
100
|
+
-e API_EVERYTHING__RECIPES_DIR=/recipes \
|
|
101
|
+
api-everything
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The demo page mints a single-use token on every load, so replaying a captured request gets a
|
|
105
|
+
403 (the tests prove this). Loading the page in a real browser and reading its own response
|
|
106
|
+
works every time. Watch it happen with `uv run python bench/replay_demo.py`.
|
|
107
|
+
|
|
108
|
+
| Command | What it does |
|
|
109
|
+
|---|---|
|
|
110
|
+
| `api-everything serve` | Run the daemon: a warm pool of Chrome browsers serving `/v1` (pass `--docs` for interactive Swagger UI at `/docs`) |
|
|
111
|
+
| `api-everything validate` | Check every recipe without starting anything |
|
|
112
|
+
| `api-everything check NAME... \| --all` | Run recipes' live checks; goes through a running daemon |
|
|
113
|
+
| `api-everything login PROFILE` | Sign in by hand once for recipes that use a logged-in profile |
|
|
114
|
+
| `api-everything probe TARGET` | Inspect live XHR/fetch JSON calls from a URL or catalog site ID |
|
|
115
|
+
| `api-everything scaffold TARGET` | Generate a draft YAML recipe (with optional `--probe` auto-detection) |
|
|
116
|
+
| `api-everything promote NAME` | Run N consecutive live checks (default 5) and promote to `stable` |
|
|
117
|
+
| `api-everything chrome PROFILE` | Start the Chrome an *attached* profile connects to (see below) |
|
|
118
|
+
| `api-everything mcp` | Let an AI agent call your recipes as tools over MCP (see below) |
|
|
119
|
+
| `api-everything recipes pull\|diff\|apply\|remove` | Fetch shared recipes from git and apply the ones you approve |
|
|
120
|
+
| `api-everything repair NAME` | Draft a verified fix for a recipe whose check failed because the site changed |
|
|
121
|
+
| `api-everything record URL` | Browse a page once and generate a verified recipe for one of its JSON responses |
|
|
122
|
+
|
|
123
|
+
Endpoints: `GET|POST /v1/run/{recipe}`, `GET /v1/recipes`, `GET /v1/recipes/{name}`,
|
|
124
|
+
`GET /v1/stats` (token only), `GET /metrics` (Prometheus), and `GET /healthz`. Settings live in an optional
|
|
125
|
+
`api-everything.yaml` (see `api-everything.example.yaml`).
|
|
126
|
+
|
|
127
|
+
## Why Not X?
|
|
128
|
+
|
|
129
|
+
Modern web apps hydrate via internal JSON APIs, but traditional tools either parse fragile HTML, burn LLM tokens per page, or break when single-use anti-CSRF tokens cannot be replayed.
|
|
130
|
+
|
|
131
|
+
| Dimension | **Api-everything** | [Crawl4AI](https://github.com/unclecode/crawl4ai) / [ScrapeGraphAI](https://github.com/ScrapeGraphAI/Scrapegraph-ai) | [Browser-Use](https://github.com/browser-use/browser-use) | [Scrapy](https://github.com/scrapy/scrapy) / [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/) | Direct `curl` / `httpx` |
|
|
132
|
+
|---|---|---|---|---|---|
|
|
133
|
+
| **Output Type** | **Native wire JSON** (exact server schema) | LLM-parsed Markdown / extracted JSON | Agent text, actions, or screenshots | Scraped HTML / CSS-selected text | Raw HTTP response |
|
|
134
|
+
| **DOM Fragility** | **0%** (ignores HTML/CSS; breaks only on API schema drift) | **Medium** (depends on HTML-to-Markdown / DOM chunks) | **Medium–High** (relies on accessibility/DOM state) | **Very High** (breaks on any CSS class or layout change) | **0%** (no browser) |
|
|
135
|
+
| **LLM Cost / Run** | **$0** (0 runtime tokens; optional `repair` only on breakage) | **~$0.005–$0.02+ / page** (cloud LLM extraction; $0 with local Ollama) | **~$0.01–$0.05+ / task** (multi-step DOM/vision loops) | **$0** | **$0** |
|
|
136
|
+
| **Step Latency** | **Single browser lease** (warm pool, no LLM round-trips) | Browser render + LLM inference latency | **~3,000–8,000 ms / step** (LLM round-trip per action) | **< 100 ms** (HTTP only; fails on JS-rendered SPAs) | **< 50 ms** (fails on JS hydration) |
|
|
137
|
+
| **Request Forging** | **Never (100% passive)** — browser mints real tokens natively | N/A (renders page or replays) | Simulates user clicks via CDP | Manual header/cookie replay (403 on single-use tokens) | Manual replay (403 on single-use tokens) |
|
|
138
|
+
| **Determinism** | **100% deterministic** (same input -> same bytes; pinned by `check`) | Probabilistic when LLM extraction is used | Non-deterministic multi-step trajectories | Deterministic until HTML changes | Deterministic until tokens expire |
|
|
139
|
+
| **AI / MCP Tooling** | **Built-in stdio [MCP](https://modelcontextprotocol.io/) server** + `/v1` REST API | Python SDK + community MCP wrappers | Python agent framework | Custom Python pipelines | Custom scripts |
|
|
140
|
+
|
|
141
|
+
**When to choose what:**
|
|
142
|
+
- **Use Api-everything** when the target site already fetches clean JSON in the browser and you want a deterministic, zero-token REST API or [MCP](https://modelcontextprotocol.io/) tool.
|
|
143
|
+
- **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.
|
|
144
|
+
- **Use [Browser-Use](https://github.com/browser-use/browser-use)** for open-ended, multi-step tasks (filling out arbitrary forms or navigating unfamiliar sites).
|
|
145
|
+
- **Use [Scrapy](https://github.com/scrapy/scrapy)** for high-volume static HTML crawling where JS hydration and single-use request tokens are not required.
|
|
146
|
+
|
|
147
|
+
## Reference recipes and their status
|
|
148
|
+
|
|
149
|
+
| Recipe | Status | Last checked | Result |
|
|
150
|
+
|---|---|---|---|
|
|
151
|
+
| `hackernews.search` | stable | 2026-11-25 | Passes 5/5 live checks (captures `hn.algolia.com` Algolia XHR JSON) |
|
|
152
|
+
| `github.explore` | stable | 2026-11-25 | Passes 5/5 live checks (public `api.github.com/search/repositories` JSON) |
|
|
153
|
+
| `wikipedia.summary` | stable | 2026-11-25 | Passes 5/5 live checks (Wikimedia REST summary JSON) |
|
|
154
|
+
| `mastodon.explore` | stable | 2026-11-25 | Passes 5/5 live checks (captures `mastodon.social/explore` trends XHR JSON) |
|
|
155
|
+
| `substack.search` | stable | 2026-11-25 | Passes 5/5 live checks (captures `substack.com/search` fetch JSON) |
|
|
156
|
+
| `mock.items` | stable | 2026-11-15 | Passes (the local demo site) |
|
|
157
|
+
| `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) |
|
|
158
|
+
| `quora.answers` | experimental, unverified | 2026-11-15 | HTTP 403 with a Cloudflare "security verification" page; its matcher is a placeholder |
|
|
159
|
+
|
|
160
|
+
The agreed rule is: a reference recipe must pass its live check five times in a row, or ship
|
|
161
|
+
labelled experimental with its status written down. All five flagship recipes above (plus 169
|
|
162
|
+
more `stable` developer recipes in [docs/CATALOG.md](docs/CATALOG.md)) passed five consecutive
|
|
163
|
+
live checks; `reddit.search` and `quora.answers` did not pass and stay `experimental`. This project
|
|
164
|
+
deliberately does not solve CAPTCHAs or evade bot detection, so it does not try to get past those
|
|
165
|
+
blocks. `check --all` skips experimental recipes unless you pass `--include-experimental`. To write
|
|
166
|
+
a recipe that works, see [docs/RECIPES.md](docs/RECIPES.md), or use the
|
|
167
|
+
[100-site catalog](docs/CATALOG.md) with `probe`, `scaffold`, and `promote`.
|
|
168
|
+
|
|
169
|
+
## Scheduling live checks
|
|
170
|
+
|
|
171
|
+
`api-everything check --all` runs every stable recipe's live check and exits 1 if any fail, so a
|
|
172
|
+
scheduler can run it and a `notify_command` in your config can tell you. Run it on your own
|
|
173
|
+
machine, never from hosted CI: your home IP and your Chrome are what the sites accept. If a
|
|
174
|
+
daemon is running, the checks go through it.
|
|
175
|
+
|
|
176
|
+
With cron (every morning at 09:00; use the full path to `uvx` from `which uvx`):
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
0 9 * * * /opt/homebrew/bin/uvx api-everything check --all >> "$HOME/api-everything-checks.log" 2>&1
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
With launchd on macOS, save this as `~/Library/LaunchAgents/local.api-everything.check.plist`
|
|
183
|
+
and load it with `launchctl load`:
|
|
184
|
+
|
|
185
|
+
```xml
|
|
186
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
187
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
188
|
+
<plist version="1.0"><dict>
|
|
189
|
+
<key>Label</key><string>local.api-everything.check</string>
|
|
190
|
+
<key>ProgramArguments</key>
|
|
191
|
+
<array><string>/opt/homebrew/bin/uvx</string><string>api-everything</string>
|
|
192
|
+
<string>check</string><string>--all</string></array>
|
|
193
|
+
<key>StartCalendarInterval</key><dict><key>Hour</key><integer>9</integer>
|
|
194
|
+
<key>Minute</key><integer>0</integer></dict>
|
|
195
|
+
<key>StandardOutPath</key><string>/tmp/api-everything-checks.log</string>
|
|
196
|
+
<key>StandardErrorPath</key><string>/tmp/api-everything-checks.log</string>
|
|
197
|
+
</dict></plist>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Both examples follow the standard formats but have not been run under a real scheduler by the
|
|
201
|
+
author. A recipe that is blocked by its site (the experimental ones) is skipped unless you add
|
|
202
|
+
`--include-experimental`.
|
|
203
|
+
|
|
204
|
+
## Attaching to a Chrome you start
|
|
205
|
+
|
|
206
|
+
For a logged-in profile you can start the Chrome yourself and let the daemon attach to it,
|
|
207
|
+
instead of the daemon launching one:
|
|
208
|
+
|
|
209
|
+
```yaml
|
|
210
|
+
profiles:
|
|
211
|
+
reddit:
|
|
212
|
+
attach: http://127.0.0.1:9222 # this machine only; pick any free port
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
uv run api-everything chrome reddit # a visible Chrome on its own folder; sign in by hand
|
|
217
|
+
uv run api-everything serve # attaches to it; stopping the daemon leaves it open
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Things to know. It is **not** your everyday Chrome: Chrome 136 and later ignores remote
|
|
221
|
+
debugging on the default profile, so this is a separate Chrome with its own folder. Anything on
|
|
222
|
+
this machine that can reach that port can control that Chrome, which is why only loopback
|
|
223
|
+
addresses are accepted. It is still an automated browser and does not hide that: sites that
|
|
224
|
+
block automation can block it too. If it is closed, runs answer `503 browser_unavailable` with
|
|
225
|
+
the command to start it again.
|
|
226
|
+
|
|
227
|
+
## Repair a recipe the site broke
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
uv run api-everything repair reddit.search # drafts a fix; applies nothing
|
|
231
|
+
uv run api-everything repair apply reddit.search # shows the diff, installs if you approve
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
It re-runs the recipe's check, loads the page again, and drafts a fix: the one response that still
|
|
235
|
+
satisfies the recipe's old assertions (**no AI**), or one Claude call that has **no tools** and sees
|
|
236
|
+
only structure (key names and types, never values). The draft is replayed live and saved only if it
|
|
237
|
+
works; it can change just the matcher and the assertions. It never tries to get around a site that
|
|
238
|
+
blocks you or an expired login. A recipe that reshapes its result (`extract`, `collect: all`) is refused. See [docs/RECIPES.md](docs/RECIPES.md#when-a-recipe-breaks-repair-it).
|
|
239
|
+
|
|
240
|
+
## Get shared recipes
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
uv run api-everything recipes pull # fetch (changes nothing you use)
|
|
244
|
+
uv run api-everything recipes diff # see exactly what would change
|
|
245
|
+
uv run api-everything recipes apply # approve one recipe at a time
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Recipes come from git repositories in `recipe_sources` (default: the community repo). They install
|
|
249
|
+
into a managed folder *below* your own recipes, which always win by name. Anything risky (a new
|
|
250
|
+
recipe, a new site, any change to a logged-in recipe, new actions) needs you to type the recipe's name; recipes
|
|
251
|
+
using `eval` are never applied. Nothing verifies who wrote a recipe, so read the diff. See
|
|
252
|
+
[docs/RECIPES.md](docs/RECIPES.md#getting-shared-recipes).
|
|
253
|
+
|
|
254
|
+
## Record a recipe instead of writing it
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
uv run api-everything record "https://shop.example.com/search?q=shoes" --param q
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
A visible browser opens; let the page load and press Enter. You pick which JSON response is the
|
|
261
|
+
data you want (the list shows key names and types, not values), and the recipe is replayed once
|
|
262
|
+
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
|
|
263
|
+
experimental. It captures network responses only, not your clicks or typing. See
|
|
264
|
+
[docs/RECIPES.md](docs/RECIPES.md#the-quick-way-record-it).
|
|
265
|
+
|
|
266
|
+
## Use it from an AI agent (MCP)
|
|
267
|
+
|
|
268
|
+
`api-everything mcp` is an [MCP](https://modelcontextprotocol.io) server on stdio. It is a thin
|
|
269
|
+
bridge to a **running daemon**: each recipe becomes one tool with typed parameters, and a call
|
|
270
|
+
goes to the daemon's `/v1` API, so the browsers, rate limits and token are shared. It never
|
|
271
|
+
starts a daemon or a browser.
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
uv run api-everything serve # in one terminal, and leave it running
|
|
275
|
+
# Claude Code:
|
|
276
|
+
claude mcp add api-everything -- uv run --project /path/to/api-everything api-everything mcp
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Claude Desktop (`claude_desktop_config.json`):
|
|
280
|
+
|
|
281
|
+
```json
|
|
282
|
+
{
|
|
283
|
+
"mcpServers": {
|
|
284
|
+
"api-everything": {
|
|
285
|
+
"command": "uv",
|
|
286
|
+
"args": ["run", "--project", "/path/to/api-everything", "api-everything", "mcp"]
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
By default an agent is offered only recipes that are `stable` and need no login. Add
|
|
293
|
+
`--include-experimental` for experimental ones and `--include-profiles` for logged-in recipes,
|
|
294
|
+
which run as your account, so turn that on only on purpose. If the daemon uses an API token, give
|
|
295
|
+
the bridge the same one with `API_EVERYTHING_TOKEN_FILE` (a path to a file holding it) rather than
|
|
296
|
+
pasting the token into an app's config. If the daemon is not running, the bridge still starts and
|
|
297
|
+
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).
|
|
298
|
+
|
|
299
|
+
## Safe by default
|
|
300
|
+
|
|
301
|
+
- Listens on `127.0.0.1` only. Any other address needs an API token (`API_EVERYTHING_TOKEN`),
|
|
302
|
+
and then every request must send `Authorization: Bearer <token>`.
|
|
303
|
+
- Without a token, requests addressed to any host name other than localhost are refused, so a
|
|
304
|
+
web page cannot reach it through DNS rebinding. No CORS headers are ever sent.
|
|
305
|
+
- A recipe that uses a logged-in profile is refused unless a token is set, even on localhost.
|
|
306
|
+
- A busy daemon says so (HTTP 429 with `Retry-After`) instead of queueing without limit, and
|
|
307
|
+
every run has one deadline covering the wait and the work.
|
|
308
|
+
- Logs hold metadata only: never response bodies, cookies, tokens or raw parameter values.
|
|
309
|
+
|
|
310
|
+
## Responsible use
|
|
311
|
+
|
|
312
|
+
This tool is for reading data from your own accounts and from public pages. You are
|
|
313
|
+
responsible for following each site's terms of service and robots.txt. Many sites forbid
|
|
314
|
+
automated access. Conservative defaults (per-domain rate limiting, no CAPTCHA solving,
|
|
315
|
+
no credential handling) ship on by default, and recipes must not change state on a site
|
|
316
|
+
(posting, deleting, submitting forms). Review any recipe before running it, especially
|
|
317
|
+
in a logged-in profile.
|
|
318
|
+
|
|
319
|
+
## Choosing a browser
|
|
320
|
+
|
|
321
|
+
Runs that need no login (`session: none`) use one shared browser. Which one is the operator's
|
|
322
|
+
choice, in the config file (or `API_EVERYTHING__BROWSER`), never in a recipe:
|
|
323
|
+
|
|
324
|
+
| `browser:` | What runs | Needs |
|
|
325
|
+
|---|---|---|
|
|
326
|
+
| `chrome` (default) | your installed Google Chrome, in Chrome's new headless mode | Google Chrome |
|
|
327
|
+
| `chromium` | Playwright's managed Chromium (the headless shell) | `uv run playwright install --only-shell chromium`, about 106 MB, once |
|
|
328
|
+
|
|
329
|
+
If the chosen browser is missing, `serve` exits with one line naming the fix (and a request
|
|
330
|
+
gets `503 browser_not_installed`) instead of retrying forever. Both options are plain
|
|
331
|
+
automated browsers: neither hides that it is one. Logged-in `profile:<name>` recipes always use
|
|
332
|
+
real Chrome, because Chrome and Chromium cannot share one profile's cookies. Speed is not a
|
|
333
|
+
reason to pick `chromium`: it has not been measured against Chrome on a quiet machine.
|
|
334
|
+
|
|
335
|
+
## Development
|
|
336
|
+
|
|
337
|
+
Working with an AI coding agent (Antigravity, Claude Code, ...)? Point it at [AGENTS.md](AGENTS.md)
|
|
338
|
+
first, and use `scripts/check` to verify a change (lint + fast tests in about 15 seconds;
|
|
339
|
+
`scripts/check full` for everything).
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
uv sync
|
|
346
|
+
uv run pytest
|
|
347
|
+
uv run ruff check
|
|
348
|
+
uv run api-everything validate # load and check every recipe, then exit
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
The browser tests use your installed Google Chrome (or `uv run playwright install chrome`).
|
|
352
|
+
The tests of the `chromium` setting also need `uv run playwright install --only-shell chromium`;
|
|
353
|
+
locally they are skipped without it, in CI they fail.
|
|
354
|
+
|
|
355
|
+
If your project folder is synced by iCloud Drive (macOS "Desktop & Documents"), keep the
|
|
356
|
+
virtualenv outside it, for example `export UV_PROJECT_ENVIRONMENT=~/.venvs/api-everything`.
|
|
357
|
+
Synced files can be marked `hidden` (Python then silently skips the editable install) or
|
|
358
|
+
`dataless` (reading them blocks while macOS downloads them), which looks like missing
|
|
359
|
+
imports or tests that hang.
|
|
360
|
+
|
|
361
|
+
## License
|
|
362
|
+
|
|
363
|
+
Apache-2.0. See [LICENSE](LICENSE).
|