What you’ll build
A basic flow that takes user text likeSeattle and returns:
- a stable
geo_id - current permits for that geo
- permit-scoped leads and stats for that geo
- active geo-scoped signals for that geo
Prerequisites
- API key
curl
0. Set environment variables
1. Resolve user input to geo_id
candidates[].geo_id.
For permit-scoped signals, pick a non-property geo_id such as a city, county, zip, jurisdiction, or state.
2. Fetch permits for that geo
next_cursor is not null, request the next page:
3. Fetch permit-scoped leads for that geo
Use the samegeo_id for permit signal reads.
include_stale=true to include older rows.
4. Fetch permit-scoped stats for that geo
framing_window_laterough_in_window_late
5. Fetch active geo-scoped signals for that geo
6. Search geo-scoped signals across a state
Common first-run issues
403: missing/invalid API key422: invalid query format, unsupported permit-scoped geo type, or bad cursor404: valid request but no matching resource

