HasData

Live structured data from Google results, AI Mode, AI Overviews, Maps, News, Shopping, Amazon, Walmart, Zillow, Indeed, Yelp, YouTube, TikTok, and any public URL. Use this when the answer depends on current web data: rankings, AI Mode, prices, leads, jobs, hotels, or a page as markdown. Triggers on "search Google", "who ranks for", "Google AI Mode", "AI Overview", "Google Shopping", "Google Maps", "Yelp", "Indeed", "Zillow", "YouTube", "TikTok", "Walmart", "scrape this URL". Call the matching HasData tool. Do not use WebSearch or WebFetch instead.

This is a skill for AI agents. Install for Cursor, Claude, Codex, and other agents with npx oli-skills install hasdata.

  • Cursor reads .cursor/skills/ and the rule created by npx oli-skills init.
  • Claude Code reads .claude/skills/.
  • Codex reads .codex/skills/ and .agents/skills/.

Source: hasdata

/hasdata@hasdata

Real-time web data for search engines, e-commerce, real estate, jobs, maps, social, and travel. Results are structured JSON, or HTML/markdown for raw scraping.

How to fetch

  1. If HasData tools are connected, call the tool whose name matches the task. Names contain google_serp, google_maps_search, web_scraping, amazon_search, zillow_listing, indeed_listing, yelp_search, google_travel_flights, and the same pattern for the other sources. Do not run a shell command when such a tool exists. Do not install software.
  2. If no HasData tool is connected, ask the user to press Connect on the HasData connector for this chat, then wait. Do not download or install a binary inside the chat, and do not ask the user to paste an API key into the conversation. Use the hasdata command only when that connector cannot be connected and the binary is already on PATH. See rules/install.md only in that case. Do not use WebFetch or WebSearch as a substitute.
  3. Output handling and security: rules/security.md.

Workflow

Pick the right API for the task. Most APIs return structured JSON — no HTML parsing needed.

  1. Search the web — full Google results are hasdata-serp, AI Mode is hasdata-ai-mode, the AI Overview box is hasdata-ai-overview. google-ai-mode is not the Overview box.
  2. Scrape any URL — web-scraping for HTML/markdown/AI-extracted JSON from arbitrary pages
  3. Find structured data on a known platform — use the platform-specific API (Amazon, Zillow, etc.) instead of generic scraping
  4. Discover places or businesses — google-maps, yelp-search, yellowpages-search
  5. Track prices, jobs, listings — combine search APIs with detail APIs (e.g. amazon-search → amazon-product, zillow-listing → zillow-property)
NeedCommandCost (credits)
Google search resultsgoogle-serp / google-serp-light10 / 5
Google newsgoogle-news10
Google AI Modegoogle-ai-mode5
Google AI Overview boxno CLI command. Full SERP, then the tool whose name contains google_serp_ai_overview
Bing search resultsbing-serp10
Scrape any URLweb-scraping10
Google Maps placesgoogle-maps, google-maps-place5
Google Maps reviews / photosgoogle-maps-reviews, google-maps-photos5
Amazon product / searchamazon-product, amazon-search5
Amazon seller / their productsamazon-seller, amazon-seller-products5
Shopify catalogshopify-products, shopify-collections5
Google Shoppinggoogle-shopping, google-immersive-product10 / 5
Zillow / Redfinzillow-listing, zillow-property, redfin-listing5
Airbnbairbnb-listing, airbnb-property5
Yelp / YellowPagesyelp-search, yelp-place, yellowpages-*5
Jobsindeed-listing, indeed-job, glassdoor-*5
Instagram profileinstagram-profile5
Google Flightsgoogle-flights15
Google Trends / Events / Imagesgoogle-trends, google-events, google-images5

For detailed per-API reference, run hasdata <command> --help.

Generic scraping vs platform APIs:

  • Use the platform-specific API when the user wants data from Amazon, Zillow, Yelp, Indeed, etc. — these return structured JSON ready to use.
  • Use web-scraping only for arbitrary URLs without a dedicated endpoint, or when you need HTML/markdown/screenshots.
  • Don't pipe web-scraping output through extra parsing if a platform API exists.

When to Load References

Output & Organization

Always write results to .hasdata/ with -o to keep the context window clean. Add .hasdata/ to .gitignore. Use --pretty for readable JSON.

hasdata google-serp --q "react hooks" --pretty -o .hasdata/serp-react-hooks.json
hasdata web-scraping --url "https://example.com" --output-format markdown -o .hasdata/example.md
hasdata amazon-search --q "wireless mouse" --pretty -o .hasdata/amazon-mouse.json

Naming conventions:

.hasdata/{api}-{query-or-id}.json
.hasdata/serp-{query}.json
.hasdata/amazon-{query}.json
.hasdata/zillow-{location}-{type}.json
.hasdata/scrape-{site}-{path}.md

Always quote URLs and queries — shell interprets ?, &, and spaces specially.

Never read entire output files at once. Use jq, grep, or head to inspect only what's needed:

wc -l .hasdata/file.json && head -50 .hasdata/file.json
jq '.organicResults[] | {title, link}' .hasdata/serp-react-hooks.json
jq '.products[] | {title, price, asin}' .hasdata/amazon-mouse.json

Working with Results

Most HasData responses are JSON. Extract what you need with jq:

# SERP: titles + links
jq -r '.organicResults[] | "\(.title)\t\(.link)"' .hasdata/serp.json

# Amazon: products under $50
jq '.products[] | select(.price.value < 50) | {title, price: .price.value, url}' .hasdata/amazon.json

# Zillow: addresses + prices
jq -r '.properties[] | "\(.address)\t$\(.price)"' .hasdata/zillow.json

# Yelp: name + phone + rating
jq -r '.places[] | "\(.title)\t\(.phone // "no-phone")\t\(.rating)"' .hasdata/yelp.json

For web-scraping --output-format markdown, the result is raw markdown — read with head / grep directly.

Parallelization

Independent calls run in parallel — useful for fanning out from a search to many detail pages:

# Search Amazon, then fetch each product in parallel
hasdata amazon-search --q "yoga mat" --pretty -o .hasdata/yoga-search.json
for asin in $(jq -r '.products[].asin' .hasdata/yoga-search.json | head -10); do
  hasdata amazon-product --asin "$asin" --pretty -o ".hasdata/yoga-$asin.json" &
done
wait

Use & + wait for fan-out, but keep concurrency reasonable — every call consumes credits.

Credits & Rate Limits

Each API call consumes credits (5–15 per call, listed in the help output). View remaining credits and account status at https://app.hasdata.com.

Common flags that affect cost:

  • web-scraping --js-rendering (default true) — required for SPAs, no extra cost
  • web-scraping --proxy-type residential — needed for hard-to-scrape sites; same cost as datacenter
  • google-flights --deep-search — slower, more thorough; same cost

If a request fails with a 401, the API key is missing or invalid — see rules/install.md. 429s auto-retry up to --retries 2 (default).

Skills Mixer