Step-by-Step Recipe
Set Up the CLI
If you haven’t already, install the CLI and configure your API key:Verify it works:For detailed setup instructions, see the CLI Quickstart Guide.
Find Your Target Market
If you know your ZIP code, you can use it directly as a For this tutorial, we’ll use ZIP code
--geo-id. If you need to find a city or county geo_id, search for it:92024 (Encinitas, CA).Search for Contractors
Search for solar contractors active in 2024:This returns up to 20 contractors with their names, contact info, permit counts, and ratings.
Inspect a Contractor's Permits
Pick a contractor ID from the results and view their permit history:This returns individual permits with descriptions, dates, job values, and addresses.To see monthly performance metrics:
Export to CSV
Use This creates a CSV with headers, ready for a spreadsheet or CRM import.
jq to transform the JSON output into CSV:Adjusting Your Search
If your results are too broad or too narrow, here are some adjustments:- Too many results: Add
--min-permits,--min-job-value, or narrow the--geo-idto a smaller area - Too few results: Expand the date range, use a broader geo_id (county or state), or remove tag filters
- Wrong specialty: Use
shovels tags listto see all available tags and pick the right one - Need specific contractors: Add
--contractor-nameor--contractor-licenseto filter by known details
