crustapi-cli
v0.1.0
Published
Google data from your terminal. Search, Maps, News, Shopping and more as JSON or CSV, via the CrustAPI API. You only pay for results that come back.
Maintainers
Readme
crust — the CrustAPI CLI
Google data from your terminal. Search, Maps, News, Shopping and 8 more surfaces, back as clean JSON or CSV in about a second. You only pay for results that come back; empty searches are free.
Install
npm install -g crustapi-cliThen set your key (get one free, 3,000 credits a month, no card, at crustapi.com):
export CRUSTAPI_API_KEY=key_live_xxxxUse
crust "dentists in miami" # web search, shorthand
crust search "best serp api" --type web --gl us
crust search coffee --type maps --location "Austin, TX" --limit 20
crust search openai --type news | jq '.news[0]' # pipes clean JSON
crust search plumbers --type maps --csv > leads.csv # CSV straight to a file
crust scrape https://example.com/pricing --markdown
crust types # list the surfacesOutput is JSON by default (a status line prints to stderr, so pipes stay clean). Pass --csv for CSV.
Surfaces
web · maps · places · news · shopping · images · videos · scholar · patents · autocomplete · webpage · reviews
Flags
| flag | what it does |
|---|---|
| -t, --type | which Google surface (default web) |
| -l, --location | where to search from, e.g. "Miami, FL" (maps/places) |
| --gl / --hl | country / language code |
| --limit | maps: how many businesses (max 100) |
| -n, --num | reviews: per page (max 50) |
| --page | results page |
| --csv | output CSV instead of JSON |
| -k, --key | API key (or set CRUSTAPI_API_KEY) |
Full docs at crustapi.com/docs.
