New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Extract structured JSON from web pages, search engines

Web Extract — Structured Data from the Open Web

by SerendipityOneInc · MIT license · ★ 74 on GitHub · updated Sep 22

Web Extract — Structured Data from the Open Web cover

Extract structured JSON from web pages, search engines, and entire sites in ONE call — {title, summary, sections, key_metrics, outgoing_links, author, date, page_type, ...} fields, no second LLM pass to parse HTML. Six endpoints: scrape…

---
name: web-extract
description: >
  Extract structured JSON from web pages, search engines, and entire sites
  in ONE call — {title, summary, sections, key_metrics, outgoing_links,
  author, date, page_type, ...} fields, no second LLM pass to parse HTML.
  Six endpoints: scrape (single URL), scrape-interactive (JS-rendered pages
  with click/scroll/type), search (Google SERP + deep-scrape), map (URL
  discovery), crawl + crawl-status (async recursive crawl). Markdown/raw
  HTML on request.

  USE when the user needs page DATA — product pricing/specs, article fields,
  link graphs, JS-heavy SPAs, Google results with content. Prefer over
  browser-act (automation/screenshots) and WebFetch (static, no JS, no
  structured fields). Not for citation-rich research (use deep-research).

  Trigger (EN): scrape this URL, extract data from page, crawl this site,
  deep-scrape search results, map a domain's URLs, render this JS page.

Overview

Backed by the ZooData WebTools API. Six HTTP endpoints. One API key. Structured JSON by default — no second LLM pass to parse fields.

What you get

  • Networkonly https://api.zoodata.ai WebTools endpoints (Bearer ZOODATA_API_KEY). Target pages are fetched server-side by ZooData, not from this machine.
  • Executionbundled CLI {skill_base_dir}/scripts/webtools.py (Python 3, stdlib-only) with exactly the documented subcommands (scrape, interactive, search, map, crawl, crawl-status, crawl-wait, check) — the full surface is the declared surface.
  • Local filesnone; reads the optional credential store ~/.zoodata/config.json.
  • Sent to the APIthe target URLs, search queries, and crawl options you request.
  • Creditsevery call consumes credits (crawl bills per page). For large crawls or deep-scrapes, state the estimated cost and confirm before submitting.
Manual install (npx, ZIP)
Claude Codenpx skills add SerendipityOneInc/ZooData-Skills --skill web-extract -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/SerendipityOneInc/ZooData-Skills/tar.gz/7efe44572d17 \ | tar -xz -C ~/.claude/skills --strip-components=1 ZooData-Skills-7efe44572d17/web-extract
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/b3329c1c93f640dc3c79/web-extract.zip" -OutFile "$env:TEMP\web-extract.zip"; Expand-Archive "$env:TEMP\web-extract.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md15.1 KB
  • .clawhubignore12 B
  • references/1 file · 13.6 KB
  • scripts/1 file · 19.1 KB
Read the files here
SerendipityOneInc/7efe4454 files
Shared references2SKILL.md reads these from elsewhere in the repo. Not in the ZIP.Get them on GitHub ↗
SKILL.md
Show the full text226 lines

Web Extract — Structured Data from the Open Web

Backed by the ZooData WebTools API. Six HTTP endpoints. One API key. Structured JSON by default — no second LLM pass to parse fields.

Files

File Purpose
{skill_base_dir}/scripts/webtools.py Thin CLI wrapper — one subcommand per endpoint. Has the Cloudflare-UA, crawl-warmup, and nested-data-shape quirks baked in. Run --help for params.
{skill_base_dir}/references/reference.md Full request/response schemas, error codes, billing, edge cases. Load when you need exact field names.

Why pick this skill (vs the alternatives in this environment)

Tool What it gives you When to pick it
web-extract (this skill) Page → {title, summary, sections, key_metrics, outgoing_links, ...} JSON in one call You need page DATA (price, specs, fields, link graphs) — downstream code or LLM can use the JSON directly without re-parsing
browser-act Browser session: click, scroll, type, screenshot You need to interact with a page (login flow, take a screenshot, fill a form) or visually verify rendering
WebFetch (built-in) Static URL → markdown You need a single static page as prose, no JS rendering, no structured fields
deep-research Multi-source research with citations You need a synthesized report drawing from many web sources, not raw data
monid Generic tool-discovery layer You're not sure which tool to use yet and want to browse options

Key advantage: every other tool above forces a second pass (re-LLM the markdown / re-parse the HTML / extract structure manually). The underlying API returns the structured fields directly — saves a round-trip and tokens.

Credential

Required: ZOODATA_API_KEY. Get a free key (1,000 credits) at zoodata.ai/en/api-keys.

export ZOODATA_API_KEY='hms_live_xxx'
# OR persist to disk (keep the file private — 0600; it holds a bearer credential):
mkdir -p ~/.zoodata && chmod 700 ~/.zoodata
(umask 077; echo '{"api_key":"hms_live_xxx"}' > ~/.zoodata/config.json)

Capabilities & Data Flow

  • Network: only https://api.zoodata.ai WebTools endpoints (Bearer ZOODATA_API_KEY). Target pages are fetched server-side by ZooData, not from this machine.
  • Execution: bundled CLI {skill_base_dir}/scripts/webtools.py (Python 3, stdlib-only) with exactly the documented subcommands (scrape, interactive, search, map, crawl, crawl-status, crawl-wait, check) — the full surface is the declared surface.
  • Local files: none; reads the optional credential store ~/.zoodata/config.json.
  • Sent to the API: the target URLs, search queries, and crawl options you request.
  • Credits: every call consumes credits (crawl bills per page). For large crawls or deep-scrapes, state the estimated cost and confirm before submitting.

Two ways to drive it

  1. webtools.py CLI (preferred — quirks baked in): UA header, warmup tolerance, retry/backoff, JSON-first defaults all handled. Just run python {skill_base_dir}/scripts/webtools.py <subcommand>.
  2. Raw curl / HTTP (when CLI isn't installed or for ad-hoc calls): every example below also shows the raw POST. Always set User-Agent: web-extract-skill/1.0 — the Cloudflare edge rejects the default Python-urllib UA with HTTP 403 (see Tips).

Endpoint base URL: https://api.zoodata.ai/openapi/v2/webtools/*. All POST with JSON body, except crawl/{id} (GET).

Default format: JSON

This skill defaults to formats: ["json"] for every scrape / scrape-interactive / search-with-scrapeOptions call. The API itself defaults to ["markdown"], but JSON gives the agent structured fields (title, summary, sections, key_metrics, outgoing_links, page_type, …) that compose better with downstream tools and are usually smaller to put back into context.

Switch to markdown only when the user explicitly asks for "the article text" / "clean prose" / "as markdown", or when the page is genuinely article-shaped (long-form blog post / news / docs) and structured fields wouldn't help. Switch to rawHtml only when the user needs DOM access (custom CSS selector extraction, table parsing the API didn't structure, embedded <script> data, etc.). Request multiple formats in one call (["json","markdown"]) when you genuinely need both — but never silently fall back to markdown when the user didn't ask for it.

When to use

User intent Endpoint Cost
Fetch one URL as structured JSON (default) POST /scrape formats:["json"] 1 credit
Fetch one URL as markdown (user explicitly asked) POST /scrape formats:["markdown"] 1 credit
Fetch one URL as raw HTML (user needs DOM) POST /scrape formats:["rawHtml"] 1 credit
Same as above, but page needs JS / login / click-through / scroll POST /scrape-interactive 1 credit
Google search → list of result URLs POST /search (SERP-only) 1 credit
Google search → URLs + structured JSON for each POST /search scrapeOptions:{format:"json"} 1 credit per returned result
List all URLs reachable from a website POST /map 1 credit
Recursively pull every page of a site (async) POST /crawl + GET /crawl/{id} poll loop 1/submit + 1/poll

Shorthand: WT="python {skill_base_dir}/scripts/webtools.py"

# 1. Scrape one URL as structured JSON (default)
$WT scrape https://example.com
# → data.json = {title, summary, sections, key_metrics, outgoing_links, author, date, page_type, ...}

# 2. Scrape as markdown (user explicitly asked for prose)
$WT scrape https://example.com --format markdown

# 3. Need BOTH JSON and markdown in one call
$WT scrape https://example.com --format json --format markdown

# 4. JS-heavy page — wait, click "Load more", scrape
$WT interactive https://example.com --actions '[
  {"type":"wait","milliseconds":1500},
  {"type":"click","selector":"button.load-more"},
  {"type":"wait","milliseconds":1000}
]'

# 5. SERP-only search (cheap — 1 credit total, regardless of result count)
$WT search "best wireless earbuds 2026" --limit 10

# 6. Deep-scrape every search result as JSON (1 credit per result)
$WT search "best wireless earbuds 2026" --limit 5 --deep-scrape

# 7. Search restricted to specific domains, last 24h
$WT search "python async" --limit 20 --tbs qdr:d \
  --include-domains "python.org,realpython.com"

# 8. Discover every URL on a docs site under /api/
$WT map https://docs.example.com --include-paths "/api/.*" --limit 1000

# 9. Crawl + poll in one shot (handles warmup, paginates pages internally)
$WT crawl-wait https://blog.example.com --limit 200 --max-depth 3 \
  --poll-interval 10 --max-wait 1800

# 9b. Or submit + manual poll
$WT crawl https://blog.example.com --limit 200 --max-depth 3
$WT crawl-status job_xxx --skip 0 --limit 100

# 10. Verify auth + credits (1 credit — scrapes example.com)
$WT check

Run $WT <subcommand> --help for every flag on any subcommand.

Same calls via raw curl

When the CLI isn't available (no python3 / offline / restricted env), every endpoint also takes a plain JSON POST:

curl -sS -X POST https://api.zoodata.ai/openapi/v2/webtools/scrape \
  -H "Authorization: Bearer $ZOODATA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: web-extract-skill/1.0"   `# REQUIRED — see Tips` \
  -d '{"url":"https://example.com","formats":["json"]}'

See references/reference.md for the full JSON body shape of every endpoint. Any non-curl HTTP client must set a custom User-Agent header — Cloudflare's edge blocks the default Python-urllib UA with HTTP 403 (error code 1010).

Key parameters at a glance

Full schemas are in references/reference.md. Load that when you need exact field names or are debugging.

/scrape: url (required), formats: ["json"|"markdown"|"rawHtml"] — skill default ["json"] (API itself defaults to ["markdown"] if formats omitted; always pass it explicitly). Max 3 formats per call.

/scrape-interactive: url, formats, actions: [...] — 7 action types (wait/click/write/press/scroll/scrape/executeJavascript). Max 50 actions, cumulative wait ≤ 60s.

/search: query (supports inline Google operators), limit (1–20, default 10), sources (["web","news","images"]), tbs (qdr:d|w|m|y), includeDomains/excludeDomains (bare hostnames, max 20 each), scrapeOptions: {format:"markdown"|"json"} (presence triggers deep-scrape).

/map: url, limit (1–100000, default 5000), search (keyword rank filter), sitemapMode (include/only/skip), includeSubdomains (default true), includePaths/excludePaths (regex), ignoreQueryParameters (default true).

/crawl: url, limit (1–10000, default 100), maxDepth (1–10), includePaths/excludePaths, allowSubdomains, sitemapMode, ignoreQueryParameters (default false — opposite of /map), crawlEntireDomain.

GET /crawl/{job_id}: query params skip, limit (1–1000). data is an array of page-scrape blobs. meta.total is the running total; compare against data.length to detect completion.

Tips

  • 🚨 Cloudflare 1010 trap (Python / non-curl HTTP clients). The Cloudflare edge in front of api.zoodata.ai blocks default Python Python-urllib/X.Y User-Agent → HTTP 403. ALWAYS set an explicit User-Agent header (any non-default value works, e.g. User-Agent: web-extract-skill/1.0). curl is fine out of the box; Python / Go / Node fetch / requests all need it.
  • Crawl GET /crawl/{job_id} warmup gotcha: for ~5–10 seconds after POST /crawl returns the job_id, polling may return NOT_FOUND. This is the job still registering, not a real "not found." Tolerate it: retry with 5s sleep up to ~3 times before giving up.
  • crawl-status response shape: data is an object {id, status, completed, total, data: [pages...]} — the page array is nested at data.data. Status values: "queued", "running", "completed", "failed". (Failed success:false responses cost 0 credits.)
  • A success:true response can still contain an error page. Always check data.meta.statusCode (or per-result meta.statusCode for search) before trusting content.
  • Deep-scrape /search may return fewer than limit results — pages with no extractable content in the chosen format are dropped.
  • Domain filters are bare hostnames only. https://github.com or github.com/path → 422. Use github.com.
  • includePaths / excludePaths are regex, not glob. Use /blog/.* not /blog/**.
  • Crawl job IDs are tenant-scoped. Polling someone else's job returns 404 (indistinguishable from "job not found" — by design).
  • Refused requests (ACCESS_DENIED, RATE_LIMITED) are NOT billed. TIMEOUT and CONTENT_UNAVAILABLE are.
  • Polling costs 1 credit per call. For large crawls, batch your polls — fetch with limit=1000 and space polls ≥10s apart.
  • Format choice (skill default = JSON): json is the default — gives structured fields (title/summary/sections/key_metrics/outgoing_links/page_type/...) that downstream tools can consume directly. Use markdown only when the user asks for clean prose or the page is article-shaped (blog post / docs); use rawHtml only when DOM access is needed (custom selectors, table parsing the JSON layer doesn't expose).

On Missing Key (no credentials configured)

BEFORE calling any endpoint, verify a credential is configured. Reliable check: python {skill_base_dir}/scripts/webtools.py check — exits 2 if no key is found in env (ZOODATA_API_KEY) or the config file (~/.zoodata/config.json). A [ -z "$ZOODATA_API_KEY" ] test alone is NOT sufficient.

When no key is found through any mechanism:

  1. STOP. Do not call any endpoint.
  2. Do NOT fall back to "partial output from training data" / "describe the page from common knowledge" / "for reference only" preview. This skill's deliverable is structured extraction of THIS URL's actual content — without the data, there is no deliverable.
  3. Tell the user, in their language, all three of:
    • "ZOODATA_API_KEY is not set — I need this to fetch the page."
    • Get a free key (1,000 credits, no credit card): https://zoodata.ai/en/api-keys
    • Configure via one of:
      • export ZOODATA_API_KEY='hms_live_xxx' (session only)
      • mkdir -p ~/.zoodata && chmod 700 ~/.zoodata && (umask 077; echo '{"api_key":"hms_live_xxx"}' > ~/.zoodata/config.json) (persistent; keep the file private — 0600)

On 401 Invalid Key

When any endpoint returns HTTP 401:

  1. STOP further calls immediately. A rejected key won't be accepted on retry — every subsequent call will return 401 too.
  2. Tell the user: their ZOODATA_API_KEY was rejected (invalid, revoked, or expired). Direct them to zoodata.ai/en/api-keys.
  3. If you collected partial output before failure, show it and mark partial. Do not fabricate the rest — no "training-data fallback" / "page description from common knowledge" substitution.

On 402 Credit Exhausted

When any endpoint returns HTTP 402:

  1. STOP further calls.
  2. Report partial findings already gathered, plus the creditsRemaining number from the last successful call.
  3. Point the user at zoodata.ai/en/pricing to top up. Do not fabricate the rest — no "common-sense page summary" filler in place of a real fetch.

See also

  • zoodata — commerce endpoints (Amazon products / markets / reviews / brands). Pair with webtools when you need to validate Amazon findings against the open web (competitor sites, news, off-Amazon reviews).
  • amazon-market-analysis — uses the commerce side; webtools complements it for non-Amazon channel research.
1---
2name: web-extract
3description: >
4 Extract structured JSON from web pages, search engines, and entire sites
5 in ONE call — {title, summary, sections, key_metrics, outgoing_links,
6 author, date, page_type, ...} fields, no second LLM pass to parse HTML.
7 Six endpoints: scrape (single URL), scrape-interactive (JS-rendered pages
8 with click/scroll/type), search (Google SERP + deep-scrape), map (URL
9 discovery), crawl + crawl-status (async recursive crawl). Markdown/raw
10 HTML on request.
11 
12 USE when the user needs page DATA — product pricing/specs, article fields,
13 link graphs, JS-heavy SPAs, Google results with content. Prefer over
14 browser-act (automation/screenshots) and WebFetch (static, no JS, no
15 structured fields). Not for citation-rich research (use deep-research).
16 
17 Trigger (EN): scrape this URL, extract data from page, crawl this site,
18 deep-scrape search results, map a domain's URLs, render this JS page.
19 触发词:抓取/爬取/网页提取/结构化抽取/搜索带内容/全站爬取/JS 渲染抓取/点击后抓取.
20 
21 Requires ZOODATA_API_KEY (free key: https://zoodata.ai/en/api-keys).
22metadata:
23 version: "0.2.4"
24 author: SerendipityOneInc
25 homepage: https://github.com/SerendipityOneInc/ZooData-Skills
26 openclaw: {"requires": {"env": ["ZOODATA_API_KEY"]}, "primaryEnv": "ZOODATA_API_KEY"}
27---
28 
29# Web Extract — Structured Data from the Open Web
30 
31Backed by the ZooData WebTools API. Six HTTP endpoints. One API key. **Structured JSON by default — no second LLM pass to parse fields.**
32 
33## Files
34 
35| File | Purpose |
36|------|---------|
37| `{skill_base_dir}/scripts/webtools.py` | Thin CLI wrapper — one subcommand per endpoint. Has the Cloudflare-UA, crawl-warmup, and nested-data-shape quirks baked in. Run `--help` for params. |
38| `{skill_base_dir}/references/reference.md` | Full request/response schemas, error codes, billing, edge cases. Load when you need exact field names. |
39 
40## Why pick this skill (vs the alternatives in this environment)
41 
42| Tool | What it gives you | When to pick it |
43|---|---|---|
44| **`web-extract`** (this skill) | Page → `{title, summary, sections, key_metrics, outgoing_links, ...}` JSON in one call | You need **page DATA** (price, specs, fields, link graphs) — downstream code or LLM can use the JSON directly without re-parsing |
45| `browser-act` | Browser session: click, scroll, type, screenshot | You need to **interact** with a page (login flow, take a screenshot, fill a form) or visually verify rendering |
46| `WebFetch` (built-in) | Static URL → markdown | You need a **single static page** as prose, no JS rendering, no structured fields |
47| `deep-research` | Multi-source research with citations | You need a **synthesized report** drawing from many web sources, not raw data |
48| `monid` | Generic tool-discovery layer | You're not sure which tool to use yet and want to browse options |
49 
50**Key advantage**: every other tool above forces a second pass (re-LLM the markdown / re-parse the HTML / extract structure manually). The underlying API returns the structured fields directly — saves a round-trip and tokens.
51 
52## Credential
53 
54Required: `ZOODATA_API_KEY`.
55Get a free key (1,000 credits) at [zoodata.ai/en/api-keys](https://zoodata.ai/en/api-keys).
56 
57```bash
58export ZOODATA_API_KEY='hms_live_xxx'
59# OR persist to disk (keep the file private — 0600; it holds a bearer credential):
60mkdir -p ~/.zoodata && chmod 700 ~/.zoodata
61(umask 077; echo '{"api_key":"hms_live_xxx"}' > ~/.zoodata/config.json)
62```
63 
64## Capabilities & Data Flow
65 
66- **Network**: only `https://api.zoodata.ai` WebTools endpoints (Bearer `ZOODATA_API_KEY`). Target pages are fetched server-side by ZooData, not from this machine.
67- **Execution**: bundled CLI `{skill_base_dir}/scripts/webtools.py` (Python 3, stdlib-only) with exactly the documented subcommands (`scrape`, `interactive`, `search`, `map`, `crawl`, `crawl-status`, `crawl-wait`, `check`) — the full surface is the declared surface.
68- **Local files**: none; reads the optional credential store `~/.zoodata/config.json`.
69- **Sent to the API**: the target URLs, search queries, and crawl options you request.
70- **Credits**: every call consumes credits (crawl bills per page). For large crawls or deep-scrapes, state the estimated cost and confirm before submitting.
71 
72## Two ways to drive it
73 
741. **`webtools.py` CLI** (preferred — quirks baked in): UA header, warmup tolerance, retry/backoff, JSON-first defaults all handled. Just run `python {skill_base_dir}/scripts/webtools.py <subcommand>`.
752. **Raw curl / HTTP** (when CLI isn't installed or for ad-hoc calls): every example below also shows the raw POST. **Always set `User-Agent: web-extract-skill/1.0`** — the Cloudflare edge rejects the default Python-urllib UA with HTTP 403 (see Tips).
76 
77Endpoint base URL: `https://api.zoodata.ai/openapi/v2/webtools/*`. All POST with JSON body, except `crawl/{id}` (GET).
78 
79## Default format: JSON
80 
81**This skill defaults to `formats: ["json"]` for every scrape / scrape-interactive / search-with-scrapeOptions call.** The API itself defaults to `["markdown"]`, but JSON gives the agent structured fields (title, summary, sections, key_metrics, outgoing_links, page_type, …) that compose better with downstream tools and are usually smaller to put back into context.
82 
83**Switch to `markdown` only when** the user explicitly asks for "the article text" / "clean prose" / "as markdown", or when the page is genuinely article-shaped (long-form blog post / news / docs) and structured fields wouldn't help. **Switch to `rawHtml`** only when the user needs DOM access (custom CSS selector extraction, table parsing the API didn't structure, embedded `<script>` data, etc.). Request multiple formats in one call (`["json","markdown"]`) when you genuinely need both — but never silently fall back to markdown when the user didn't ask for it.
84 
85## When to use
86 
87| User intent | Endpoint | Cost |
88|---|---|---|
89| Fetch one URL as structured JSON (default) | `POST /scrape` `formats:["json"]` | 1 credit |
90| Fetch one URL as markdown (user explicitly asked) | `POST /scrape` `formats:["markdown"]` | 1 credit |
91| Fetch one URL as raw HTML (user needs DOM) | `POST /scrape` `formats:["rawHtml"]` | 1 credit |
92| Same as above, but page needs JS / login / click-through / scroll | `POST /scrape-interactive` | 1 credit |
93| Google search → list of result URLs | `POST /search` (SERP-only) | 1 credit |
94| Google search → URLs + structured JSON for each | `POST /search` `scrapeOptions:{format:"json"}` | 1 credit per returned result |
95| List all URLs reachable from a website | `POST /map` | 1 credit |
96| Recursively pull every page of a site (async) | `POST /crawl` + `GET /crawl/{id}` poll loop | 1/submit + 1/poll |
97 
98## Quick start (CLI — recommended)
99 
100Shorthand: `WT="python {skill_base_dir}/scripts/webtools.py"`
101 
102```bash
103# 1. Scrape one URL as structured JSON (default)
104$WT scrape https://example.com
105# → data.json = {title, summary, sections, key_metrics, outgoing_links, author, date, page_type, ...}
106 
107# 2. Scrape as markdown (user explicitly asked for prose)
108$WT scrape https://example.com --format markdown
109 
110# 3. Need BOTH JSON and markdown in one call
111$WT scrape https://example.com --format json --format markdown
112 
113# 4. JS-heavy page — wait, click "Load more", scrape
114$WT interactive https://example.com --actions '[
115 {"type":"wait","milliseconds":1500},
116 {"type":"click","selector":"button.load-more"},
117 {"type":"wait","milliseconds":1000}
118]'
119 
120# 5. SERP-only search (cheap — 1 credit total, regardless of result count)
121$WT search "best wireless earbuds 2026" --limit 10
122 
123# 6. Deep-scrape every search result as JSON (1 credit per result)
124$WT search "best wireless earbuds 2026" --limit 5 --deep-scrape
125 
126# 7. Search restricted to specific domains, last 24h
127$WT search "python async" --limit 20 --tbs qdr:d \
128 --include-domains "python.org,realpython.com"
129 
130# 8. Discover every URL on a docs site under /api/
131$WT map https://docs.example.com --include-paths "/api/.*" --limit 1000
132 
133# 9. Crawl + poll in one shot (handles warmup, paginates pages internally)
134$WT crawl-wait https://blog.example.com --limit 200 --max-depth 3 \
135 --poll-interval 10 --max-wait 1800
136 
137# 9b. Or submit + manual poll
138$WT crawl https://blog.example.com --limit 200 --max-depth 3
139$WT crawl-status job_xxx --skip 0 --limit 100
140 
141# 10. Verify auth + credits (1 credit — scrapes example.com)
142$WT check
143```
144 
145Run `$WT <subcommand> --help` for every flag on any subcommand.
146 
147## Same calls via raw curl
148 
149When the CLI isn't available (no `python3` / offline / restricted env), every endpoint also takes a plain JSON POST:
150 
151```bash
152curl -sS -X POST https://api.zoodata.ai/openapi/v2/webtools/scrape \
153 -H "Authorization: Bearer $ZOODATA_API_KEY" \
154 -H "Content-Type: application/json" \
155 -H "User-Agent: web-extract-skill/1.0" `# REQUIRED — see Tips` \
156 -d '{"url":"https://example.com","formats":["json"]}'
157```
158 
159See `references/reference.md` for the full JSON body shape of every endpoint. **Any non-curl HTTP client must set a custom `User-Agent` header** — Cloudflare's edge blocks the default Python-urllib UA with HTTP 403 (error code 1010).
160 
161## Key parameters at a glance
162 
163Full schemas are in `references/reference.md`. Load that when you need exact field names or are debugging.
164 
165**`/scrape`**: `url` (required), `formats: ["json"|"markdown"|"rawHtml"]` — **skill default `["json"]`** (API itself defaults to `["markdown"]` if `formats` omitted; always pass it explicitly). Max 3 formats per call.
166 
167**`/scrape-interactive`**: `url`, `formats`, `actions: [...]` — 7 action types (`wait`/`click`/`write`/`press`/`scroll`/`scrape`/`executeJavascript`). Max 50 actions, cumulative `wait` ≤ 60s.
168 
169**`/search`**: `query` (supports inline Google operators), `limit` (1–20, default 10), `sources` (`["web","news","images"]`), `tbs` (`qdr:d|w|m|y`), `includeDomains`/`excludeDomains` (bare hostnames, max 20 each), `scrapeOptions: {format:"markdown"|"json"}` (presence triggers deep-scrape).
170 
171**`/map`**: `url`, `limit` (1–100000, default 5000), `search` (keyword rank filter), `sitemapMode` (`include`/`only`/`skip`), `includeSubdomains` (default true), `includePaths`/`excludePaths` (regex), `ignoreQueryParameters` (default **true**).
172 
173**`/crawl`**: `url`, `limit` (1–10000, default 100), `maxDepth` (1–10), `includePaths`/`excludePaths`, `allowSubdomains`, `sitemapMode`, `ignoreQueryParameters` (default **false** — opposite of /map), `crawlEntireDomain`.
174 
175**`GET /crawl/{job_id}`**: query params `skip`, `limit` (1–1000). `data` is an array of page-scrape blobs. `meta.total` is the running total; compare against `data.length` to detect completion.
176 
177## Tips
178 
179- **🚨 Cloudflare 1010 trap (Python / non-curl HTTP clients).** The Cloudflare edge in front of `api.zoodata.ai` blocks default Python `Python-urllib/X.Y` User-Agent → HTTP 403. ALWAYS set an explicit `User-Agent` header (any non-default value works, e.g. `User-Agent: web-extract-skill/1.0`). curl is fine out of the box; Python / Go / Node fetch / requests all need it.
180- **Crawl `GET /crawl/{job_id}` warmup gotcha**: for ~5–10 seconds after `POST /crawl` returns the job_id, polling may return `NOT_FOUND`. This is the job still registering, not a real "not found." Tolerate it: retry with 5s sleep up to ~3 times before giving up.
181- **`crawl-status` response shape**: `data` is an **object** `{id, status, completed, total, data: [pages...]}` — the page array is nested at `data.data`. Status values: `"queued"`, `"running"`, `"completed"`, `"failed"`. (Failed `success:false` responses cost 0 credits.)
182- **A `success:true` response can still contain an error page.** Always check `data.meta.statusCode` (or per-result `meta.statusCode` for search) before trusting content.
183- **Deep-scrape `/search` may return fewer than `limit`** results — pages with no extractable content in the chosen format are dropped.
184- **Domain filters are bare hostnames only.** `https://github.com` or `github.com/path` → 422. Use `github.com`.
185- **`includePaths` / `excludePaths` are regex, not glob.** Use `/blog/.*` not `/blog/**`.
186- **Crawl job IDs are tenant-scoped.** Polling someone else's job returns 404 (indistinguishable from "job not found" — by design).
187- **Refused requests (`ACCESS_DENIED`, `RATE_LIMITED`) are NOT billed.** `TIMEOUT` and `CONTENT_UNAVAILABLE` are.
188- **Polling costs 1 credit per call.** For large crawls, batch your polls — fetch with `limit=1000` and space polls ≥10s apart.
189- **Format choice (skill default = JSON)**: `json` is the default — gives structured fields (`title/summary/sections/key_metrics/outgoing_links/page_type/...`) that downstream tools can consume directly. Use `markdown` only when the user asks for clean prose or the page is article-shaped (blog post / docs); use `rawHtml` only when DOM access is needed (custom selectors, table parsing the JSON layer doesn't expose).
190 
191## On Missing Key (no credentials configured)
192 
193**BEFORE calling any endpoint**, verify a credential is configured. Reliable check: `python {skill_base_dir}/scripts/webtools.py check` — exits 2 if no key is found in env (`ZOODATA_API_KEY`) or the config file (`~/.zoodata/config.json`). A `[ -z "$ZOODATA_API_KEY" ]` test alone is NOT sufficient.
194 
195When no key is found through any mechanism:
196 
1971. **STOP.** Do not call any endpoint.
1982. **Do NOT fall back to "partial output from training data" / "describe the page from common knowledge" / "for reference only" preview.** This skill's deliverable is structured extraction of THIS URL's actual content — without the data, there is no deliverable.
1993. **Tell the user, in their language**, all three of:
200 - "`ZOODATA_API_KEY` is not set — I need this to fetch the page."
201 - **Get a free key** (1,000 credits, no credit card): https://zoodata.ai/en/api-keys
202 - **Configure** via one of:
203 - `export ZOODATA_API_KEY='hms_live_xxx'` (session only)
204 - `mkdir -p ~/.zoodata && chmod 700 ~/.zoodata && (umask 077; echo '{"api_key":"hms_live_xxx"}' > ~/.zoodata/config.json)` (persistent; keep the file private — 0600)
205 
206## On 401 Invalid Key
207 
208When any endpoint returns HTTP 401:
209 
2101. **STOP further calls immediately.** A rejected key won't be accepted on retry — every subsequent call will return 401 too.
2112. **Tell the user**: their `ZOODATA_API_KEY` was rejected (invalid, revoked, or expired). Direct them to [zoodata.ai/en/api-keys](https://zoodata.ai/en/api-keys).
2123. If you collected partial output before failure, show it and mark partial. **Do not fabricate** the rest — no "training-data fallback" / "page description from common knowledge" substitution.
213 
214## On 402 Credit Exhausted
215 
216When any endpoint returns HTTP 402:
217 
2181. **STOP further calls.**
2192. Report partial findings already gathered, plus the `creditsRemaining` number from the last successful call.
2203. Point the user at [zoodata.ai/en/pricing](https://zoodata.ai/en/pricing) to top up. **Do not fabricate** the rest — no "common-sense page summary" filler in place of a real fetch.
221 
222## See also
223 
224- [`zoodata`](../zoodata/SKILL.md) — commerce endpoints (Amazon products / markets / reviews / brands). Pair with webtools when you need to validate Amazon findings against the open web (competitor sites, news, off-Amazon reviews).
225- [`amazon-market-analysis`](../amazon-market-analysis/SKILL.md) — uses the commerce side; webtools complements it for non-Amazon channel research.
226 
View all files on GitHub →

Details

Updated
Sep 22, 2026
License
MIT
Stars on the repo
★ 74
Checked
Source
SerendipityOneInc/ZooData-Skills ↗
Creator
SerendipityOneInc · 9 listings
View creator

Similar skills

See all →
SkillWeb browser automation with AI-optimized snapshotsBrowser Automation Skillruvnet/RuView · by ruvnetWeb browser automation with AI-optimized snapshots for claude-flow agents★ 94.7k GitHub starsSkillDeepEval evaluation workflow for AI agentsconfident-ai/deepeval · by confident-aiDeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent, tool-using workflow, multi-turn chatbot, RAG pipeline, or LLM app; add evals; generate datasets or goldens; use deepeval generate; use deepeval test run; send results to Confident AI; monitor production; run online evals; inspect traces; or iterate on prompts, tools, retrieval, or agent behavior from eval failures. AI agents are the primary use case. Covers Python SDK, pytest eval suites, CLI generation, traced evals, Confident AI reporting, and agent-driven improvement loops. DO NOT TRIGGER for unrelated generic pytest, non-AI test setup, or non-DeepEval observability work unless the user asks to compare or migrate to DeepEval; for instrumenting an app with DeepEval tracing, @observe, or framework integrations (use the `deepeval-tracing` skill); or for raw OpenTelemetry / OTLP export without the deepeval package (use the `deepeval-otel` skill).★ 18.7k GitHub starsSkillBrowser automation with persistent named pagesDev browserSawyerHood/dev-browser · by SawyerHoodBrowser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, log into sites, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", "open the browser", or any browser interaction request.★ 6.7k GitHub starsSkillTurn visible project context, a proven thread, skillTurn into appBuilderIO/skills · by BuilderIOTurn visible project context, a proven thread, skill, or workflow into a runnable Agent-Native app with simple buttons, visible agent steps, preview, and deployment handoff. Use when a user invokes `/turn-into-app` or asks to make a workflow into an app, including from Claude or ChatGPT on the web, including when the source is a spreadsheet link or upload.★ 4.5k GitHub starsSkillComplete browser automation with PlaywrightPlaywright Browser Automationlackeyjb/playwright-skill · by lackeyjbComplete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive checks, UX validation, login flows, link checks, and arbitrary browser automation. Use when the user wants to test a website, automate browser interactions, validate web functionality, or perform browser-based testing.★ 3.2k GitHub starsSkillUse TinyFish for web search, fetching URLs, reading pagesTinyFish CLItinyfish-io/tinyfish-cookbook · by tinyfish-ioUse TinyFish for web search, fetching URLs, reading pages, current information, source-backed answers, research, docs, pricing/product pages, extraction, scraping, and browser automation. Use whenever the user asks to search, find, look up, research, compare, get information from the web, summarize a URL, fetch page content, or automate a website.★ 2.2k GitHub stars

More from SerendipityOneInc

SkillDeep consumer insights from 1B+ pre-analyzed Amazon reviewsAmazon Review Intelligence Extractor — 11 Dimensions, 1B+ ReviewsSerendipityOneInc/ZooData-Skills · by SerendipityOneIncDeep consumer insights from 1B+ pre-analyzed Amazon reviews. Extracts pain points, buying factors, user profiles, usage patterns, and differentiation opportunities across 11 analysis dimensions. Compares review sentiment across competitors and generates listing copy suggestions. Uses up to 11 relevant ZooData endpoints with cross-validation. Use when user asks about: review analysis, customer feedback, pain points, what customers say, review insights, sentiment analysis, consumer insights, product improvements, voice of customer, review comparison, negative reviews, customer complaints, buying factors, user profile. Requires ZOODATA_API_KEY.★ 74 GitHub starsSkillData-driven pricing strategy engine for Amazon sellersDynamic Pricing Intelligence Agent — RAISE / HOLD / LOWERSerendipityOneInc/ZooData-Skills · by SerendipityOneIncData-driven pricing strategy engine for Amazon sellers. Given one or more ASINs, auto-detects each product's leaf category, analyzes the pricing landscape, and delivers RAISE/HOLD/LOWER signals with profit simulation. Supports single ASIN or batch (multiple ASINs, auto-grouped by category). Uses ZooData API endpoints with cross-validation. Use when user asks about: pricing strategy, how much to price, optimal price, price optimization, competitor pricing, price war, BuyBox strategy, profit margin, pricing analysis, should I raise price, should I lower price, price comparison, price positioning, repricing, should I raise or lower price. Requires ZOODATA_API_KEY.★ 74 GitHub starsSkillAutomated daily Amazon market digestZooData — Amazon Daily Market RadarSerendipityOneInc/ZooData-Skills · by SerendipityOneIncAutomated daily Amazon market digest. Given the user's own ASINs (1-10) and any competitor ASINs (up to 20), produces a daily change-detection briefing: price moves, BSR shifts, new entrants in the surrounding category, review wave detection, stockout signals. Output is a triaged alert dashboard (RED/YELLOW/GREEN) comparing today against yesterday's snapshot. Designed for unattended scheduled automation (cron-style daily run). Use when the user EXPLICITLY requests ongoing OPERATIONAL daily monitoring of their products and the surrounding market — a "what changed since yesterday" digest. Use when user asks: set up daily market monitoring for my ASINs, run my daily radar, what changed in my tracked market since yesterday, daily briefing on my tracked ASINs and competitors, emerging-brand or stockout alerts on my watchlist. Establishing monitoring and recurring runs always require the user's explicit opt-in — do not activate on vague update questions. Requires ZOODATA_API_KEY.★ 74 GitHub starsSkillAnalyze Amazon keyword value and product traffic healthZooData — Amazon Keyword IntelligenceSerendipityOneInc/ZooData-Skills · by SerendipityOneIncAnalyze Amazon keyword value and product traffic health through keyword demand, market structure, weekly trends, observed SERP signals, ASIN traffic structure, traffic terms, changes, and named-term timelines. Use for keyword expansion, keyword deep dives, traffic-term value analysis, and ASIN-centered product traffic analysis or diagnosis. Produces evidence-bounded validation priorities; does not make direct bid, budget, pause, or negative-keyword decisions without seller ABA-SQP and Amazon Ads data. Requires ZOODATA_API_KEY.★ 74 GitHub starsSkillComprehensive listing health check and optimization engineZooData — Amazon Listing Audit ProSerendipityOneInc/ZooData-Skills · by SerendipityOneIncComprehensive listing health check and optimization engine for Amazon sellers. Scores listings across 8 dimensions, benchmarks against category leaders, identifies keyword gaps, and generates data-backed improvement recommendations. Supports single ASIN or bulk audit (10-100+ ASINs for agencies). Uses up to 11 relevant ZooData endpoints with cross-validation. Use when user asks about: listing audit, listing optimization, listing score, listing quality, improve my listing, listing review, listing diagnosis, title optimization, bullet point optimization, keyword gaps, listing benchmark, A+ content, listing health check, listing comparison. Requires ZOODATA_API_KEY.★ 74 GitHub starsSkillAmazon-domain general analysis and multi-endpoint researchZooData — Amazon Seller Data AnalysisSerendipityOneInc/ZooData-Skills · by SerendipityOneIncAmazon-domain general analysis and multi-endpoint research engine. Handles broad or composite Amazon research requests that span multiple data dimensions or have no single specialized angle. For focused category-market discovery, market-entry evaluation, or category trends, use amazon-market-analysis. Use when: - user asks for multi-endpoint Amazon research or composite reports - user asks "what kind of Amazon analysis can I run" or wants an overview of available Amazon insights - user wants broad Amazon data exploration with no single specific deliverable in mind Uses {skill_base_dir}/scripts/zoodata.py. Requires ZOODATA_API_KEY.★ 74 GitHub stars