agentsclimarketplace

Hasdata

Skill lingxling/awesome-skills-cn/antigravity-awesome-skills/plugins/agentic-awesome-skills-claude/skills/hasdata

Use HasData APIs for web scraping and structured web data extraction.From its SKILL.md

Install
npx -y skills add lingxling/awesome-skills-cn --skill hasdata

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.7 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it

HasData

Cloud platform for extracting public web data. One API key, three execution modes. All endpoints sit under https://api.hasdata.com and authenticate with x-api-key.

curl -G 'https://api.hasdata.com/scrape/google/serp' \
  --data-urlencode 'q=coffee' \
  -H 'x-api-key: <your-api-key>'

401 invalid key, 403 quota exhausted, 429 concurrency cap, 500 server error (retry).

When to Use

Use this skill when:

  • The user needs web scraping.
  • The user needs search engine results.
  • The user needs structured data extraction.
  • The user needs ecommerce, travel, jobs, or local business data.
  • The user explicitly asks about HasData.

Three execution modes

ModeLatencyWhenEndpoint
Web Scraping APIsecondsArbitrary URL — JS rendering, CSS/AI extraction, screenshotsPOST /scrape/web
Scraper APIs (sync)secondsPre-parsed JSON for known platforms (Google, Amazon, Zillow, …)GET /scrape/<vertical>/<resource>
Scraper Jobs (async)minutes–hoursBulk extraction, recursive crawling, webhook fan-outPOST /scrapers/<slug>/jobs

Decision rule. Default to a Scraper API when one exists for the platform (pre-parsed JSON, no selector maintenance). Use Web Scraping for arbitrary URLs not covered by an API. Reach for a Scraper Job only when no API equivalent exists — crawler, contacts, sec-edgar, amazon-bestsellers, amazon-product-reviewsor when async fan-out + webhooks save engineering time over a paginated client loop.

Always-true response shape

{ "requestMetadata": { "id": "…", "status": "ok", "url": "…" }, "...": "endpoint-specific" }

Treat data as valid only if requestMetadata.status === "ok". HTTP 200 alone isn't enough.

High-leverage patterns

  • SERP-first enrichment. Google SERP can surface public snippets for company and professional-profile lookup. Use it for business or authorized research, avoid unnecessary direct scraping, and treat personal email/phone lookup as allowed only with a legitimate purpose and user authorization.
  • AI Mode + verify. /scrape/google/ai-mode for the answer + references → /scrape/web (markdown) on each reference URL → cited RAG context, no vector DB.
  • Maps → leads. /scrape/google-maps/search returns business websites and phones; collect contact details only from public, permitted sources and apply opt-out, rate, and privacy-law constraints before any outreach use.
  • Crawler → corpus. crawler Scraper Job with outputFormat: ["markdown"] + includePaths: "/docs/.+" produces an LLM-ready corpus in one submission.
  • Pre-extracted via SERP rich snippets. knowledgeGraph, localResults, inlineShoppingResults, relatedQuestions carry pre-parsed public facts. Always check them before considering direct page access.

When to call from code (the wiring)

  • Auth: x-api-key header on every request. Read from HASDATA_API_KEY env. Never hardcode, never log.
  • Timeouts: set client timeout ≥ 300 s. HasData's own deadline is 300 s; shorter clients produce phantom failures while still being billed on completion.
  • Retries: 429 and 5xx only — exponential backoff, jitter. Never retry 4xx (auth, validation).
  • Concurrency: cap at your plan limit. The free tier is 1; anything higher just generates 429s.
  • Async jobs: the submit response handle is body.id (integer), not jobId. Persist it immediately. Poll GET /scrapers/jobs/<id> every 10–30 s with backoff; treat webhooks as best-effort and always pair with polling. On finished the status carries data: {csv, json, xlsx} short-lived URLs — download immediately.

See references/code-recipes.md for ready-to-paste Python and TypeScript clients with retry, backoff, bounded concurrency, and the full job lifecycle.

Common gotchas

  • 300 s server deadline. Match client timeout.
  • Disable jsRendering first, enable only if the page needs it — most static pages parse fine without a headless browser.
  • No cookies parameter — cookies go through headers["Cookie"].
  • includePaths regex is case-sensitive. /blog/.+ won't match /Blog/....
  • Scraper Job data is double-wrapped. Each row is body.data[i].data; outer wraps with id, jobId, dataId, createdAt, updatedAt.
  • requestMetadata.status === "ok" is the only success signal. HTTP 200 alone isn't enough.
  • Webhooks are best-effort with 3 retries. Always have a polling fallback.

References

Resources

Limitations

  • Requires access to HasData services and valid credentials.
  • Data quality and available fields depend on the target website and extraction method used.
  • JavaScript-heavy websites may require rendering, which can affect performance and cost.
  • Use only for public data or content the user is authorized to access; respect site terms, robots/access controls, privacy law, and rate limits.
  • Rate limits, quotas, and account restrictions may apply depending on the endpoint and subscription plan.

What ships with it

55.9 KB alongside SKILL.md

GitHub clipped this repository’s file list, so this is at least 10 files and may be more.

Gives 9 of the 12 instructions most scraping extraction skills give in ~1.6k tokens

Counted across 109 of the 148 authors here whose files we hold, read 2026-09-06

  • Add delays between requestsin 7 of 109, across 6 files
  • Close the browser when finishedin 6 of 109, across 4 files
  • Authenticate every request with the x-api-key headerhere, and in 5 of 109, across 2 files
  • Default to Scraper APIs when one existshere, and in 5 of 109, across 2 files
  • Map site structure before a full crawlin 5 of 109, across 3 files
  • Use the Web Scraping API for arbitrary URLshere, and in 4 of 109, across 1 file
  • Treat data as valid only if requestMetadata.status is okhere, and in 4 of 109, across 1 file
  • Set client timeout to at least 300 secondshere, and in 4 of 109, across 1 file
  • Retry only 429 and 5xx with exponential backoffhere, and in 4 of 109, across 1 file
  • Cap concurrency at your plan limithere, and in 4 of 109, across 1 file
  • Persist the async job id immediatelyhere, and in 4 of 109, across 1 file
  • Poll job status every 10 to 30 secondshere, and in 4 of 109, across 1 file

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.