cURL
curl --request GET \ --url https://api.shovels.ai/v2/states/search \ --header 'X-API-Key: <api-key>'
{ "items": [ { "geo_id": "CA", "name": "CALIFORNIA" }, { "geo_id": "TX", "name": "TEXAS" }, { "geo_id": "MT", "name": "MONTANA" } ], "size": 3 }
Searches for US states based on the provided search term.
The name to search for in the state fields.
Cursor for pagination
1 <= x <= 100
A list of states that match the search term.
Paginated response for states.
The list of items returned in the response following given criteria.
Show child attributes
The state abbreviation.
The full name of the state.
The number of items returned in the response.
The cursor for retrieving the next page of results.
Was this page helpful?