Geo Suggest
Autocomplete and search for locations (cities, states, countries) to use as filters in the Jobs API. TypeScript types for response shapes live on the API types page.
GET
Query Parameters
qstringRequiredThe search query (e.g., city name, state, or country).
Example:
San FrankindsstringComma-separated list of location types to include. Values: city, state, country.
Example:
city,statelimitnumberMaximum number of results to return. Max 30. Default 10.
Example:
5Response Schema
Returns an array of location objects. Note that unlike the Job object, these results only contain the ID for their specific kind.
Success Response Shape
[
{
"kind": "city",
"name": "San Francisco",
"display_label": "San Francisco, California, United States",
"city_id": 5391959
},
{
"kind": "state",
"name": "California",
"display_label": "California, United States",
"state_id": 5332921
}
]kindstringThe specific type of the result: 'city', 'state', or 'country'.
namestringThe name of the geographic entity.
display_labelstringA human-readable string for display in search results.
city_id | state_id | country_idnumberThe unique ID for the result. Only the ID matching the 'kind' is returned.
Usage Tip
Use the IDs from these results in the
city_id, state_id, or country_id parameters of the GET /jobs endpoint for precise filtering.Example Request
cURL
curl -X GET "https://api.cleanjobdata.com/geo/suggest?q=London&kinds=city" \
-H "Authorization: Bearer YOUR_API_KEY"