crustapi-cli
v0.2.0
Published
Google and LinkedIn data from your terminal. Search, Maps, News, profiles, companies, jobs and more as JSON or CSV, via CrustAPI. You only pay for results that come back.
Maintainers
Readme
crust, the CrustAPI CLI
Google and LinkedIn data from your terminal. Search, Maps, News, Shopping plus public LinkedIn profiles, companies, posts and jobs, 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.
Public LinkedIn data, no login and no cookies. Give it a LinkedIn URL or keywords:
crust linkedin https://linkedin.com/in/satyanadella # full profile
crust linkedin https://linkedin.com/company/openai --employees # company + employee list
crust linkedin https://linkedin.com/in/satyanadella --type posts # recent posts (--comments to include comments)
crust linkedin "sales engineer" --type jobs --location "New York" # job listings
crust linkedin "growth marketers" # people search
crust linkedin "growth marketers" --enrich --csv > people.csv # full profile per person, straight to CSVA URL defaults to --type profile (or company for a company URL); keywords default to --type search. Each call costs 1 credit. --enrich costs 1 credit per full profile returned. Empty results and private profiles are free.
Surfaces
Google: web · maps · places · news · shopping · images · videos · scholar · patents · autocomplete · webpage · reviews
LinkedIn (crust linkedin): profile · company · posts · jobs · search
Flags
| flag | what it does |
|---|---|
| -t, --type | which surface (default web for search, profile/search for linkedin) |
| -l, --location | where to search from, e.g. "Miami, FL" (maps/places) or "New York" (linkedin jobs) |
| --gl / --hl | country / language code (Google) |
| --limit | how many results (maps 100, posts 100, jobs 50, people search 15) |
| -n, --num | reviews: per page (max 50) |
| --page | results page (Google) |
| --start | linkedin jobs: result offset |
| --enrich | linkedin search: full profile for each person (1 credit each) |
| --employees | linkedin company: include the employee list |
| --comments | linkedin posts: include comments |
| --csv | output CSV instead of JSON |
| -k, --key | API key (or set CRUSTAPI_API_KEY) |
Full docs at crustapi.com/docs.
