Loading...
Loading...
Fetch real-time web data via the hasdata CLI. Use when the user wants search results, news, fact-checks, product or seller info, current prices, reviews, real-estate listings or sold comps, vacation rentals, local-business contact details, job postings, salary research, search trends, images, flights, social profiles, or to scrape any URL (HTML / markdown / AI-extracted JSON). Also use when the user asks to summarize a web page, ground a prompt with current information, verify a URL is live or render a JavaScript-heavy page, monitor a price over time, find a phone number or address for a business, build a competitor map, identify recent sold comparables, gather employer reviews, fan out a list of items to per-item details, or check what's being said online about a topic right now. Backed by Google, Bing, Amazon, Shopify, Zillow, Redfin, Airbnb, Yelp, YellowPages, Indeed, Glassdoor, Instagram, Google Maps / Trends / News / Images / Flights / Events APIs.
npx skill4agent add hasdata/agent-skills hasdata-clihasdataapi.hasdata.com/apiscommand -v hasdatacurl -sSL https://raw.githubusercontent.com/HasData/hasdata-cli/main/install.sh | shhasdata configure~/.hasdata/config.yamlno API key configuredhasdata configurehasdata <api> --flag value [--flag value ...] --raw | jq .--rawjq--pretty| User intent | Subcommand |
|---|---|
| Web search ("what does Google say about…") | |
| Latest news | |
| AI Mode SERP | |
| Shopping / product prices | |
| Immersive product page | |
| Maps / places / reviews | |
| Yelp / YellowPages local data | |
| Real-estate listings | |
| Real-estate single property deep dive | |
| Jobs | |
| Bing search | |
| Trends | |
| Images | |
| Flights | |
| Short videos | |
| Events | |
| Instagram profile | |
| Amazon seller | |
| Scrape a specific URL | |
hasdata <api> --helpreferences/google-serpgoogle-newsweb-scraping --output-format markdownweb-scraping --url X --no-block-resourcesgoogle-serp --q "site:example.com"web-scraping --output-format markdowngoogle-serp --q "X alternatives"google-shopping --q "X competitors"google-shoppingamazon-searchjqgoogle-maps-placeyelp-placegoogle-maps-reviews --place-id ... --sort lowestglassdoor-jobindeed-listingjq.jobs[].salaryzillow-listingredfin-listingairbnb-listingzillow-listing --type sold --keyword "X" --days-on-zillow 12mamazon-product --asin X.pricegoogle-trends --q "X"google-news --q "X"google-maps --q "X" --ll "@LAT,LNG,12z"google-maps-place--gl Y--proxy-country Yweb-scrapingweb-scraping --ai-extract-rules-json '{"price": {"type": "number"}, ...}'xargs*-property*-product*-placegoogle-serp --q '"Person Name" linkedin'Name — Role at Company | LinkedIngoogle-serp --q "$COMPANY".knowledge_graphgoogle-news --q "$COMPANY"--q '"$COMPANY" headquarters'--q '"$COMPANY" funding'--q 'site:linkedin.com/company "$COMPANY"'--q '"@example.com"'--q '"jane@example.com"'google-serpgoogle-serp--q '"jane@x.com"'--q '"+1 555 123 4567"'--q '"acme corp" site:example.com'google-serpgoogle-newsgoogle-shoppinggoogle-maps.knowledge_graph.organic_results[].snippet.local_results[]web-scrapingreferences/enrichment.mdtrue--no-block-ads--no-screenshot--no-js-rendering--no-extract-emails--no-block-resources--block-ads--no-block-ads-json--extract-rules-json '{"title":"h1"}'--extract-rules-json @rules.jsoncat rules.json | hasdata web-scraping ... --extract-rules-json -==--headers User-Agent=foo --headers Cookie=session=abc--headers-json--lr lang_en --lr lang_fr--lr lang_en,lang_frkey[]=value| Flag | Effect |
|---|---|
| Write response bytes as-is (use this when piping to |
| Pretty-print JSON (default when stdout is a TTY) |
| Write response to file instead of stdout (works for binary like screenshots) |
| Log outgoing URL and |
| Override env var (rarely needed) |
| Per-request timeout (default 2m) |
| Max retries on 429/5xx (default 2) |
jqhasdata google-serp --q "espresso machine" --num 10 --raw \
| jq -c '.organic_results[] | {title, link, snippet}'--prettyjq| Code | Meaning |
|---|---|
| 0 | success |
| 1 | user / CLI-input error (missing required flag, bad enum value, missing API key) |
| 2 | network error |
| 3 | API returned 4xx (auth, quota, validation) |
| 4 | API returned 5xx |
references/enrichment.mdreferences/search.mdreferences/web-scraping.mdweb-scrapingreferences/real-estate.mdreferences/ecommerce.mdreferences/local-business.mdreferences/jobs.mdreferences/all-commands.md