Search cities
curl --request POST \
--url https://api.companyenrich.com/v2/geo/cities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stateIds": [
123
],
"countryCodes": [
"<string>"
],
"query": "<string>",
"pageSize": 50,
"cursor": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stateIds: [123],
countryCodes: ['<string>'],
query: '<string>',
pageSize: 50,
cursor: '<string>'
})
};
fetch('https://api.companyenrich.com/v2/geo/cities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/v2/geo/cities"
payload = {
"stateIds": [123],
"countryCodes": ["<string>"],
"query": "<string>",
"pageSize": 50,
"cursor": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"id": 123,
"name": "<string>",
"countryCode": "<string>",
"stateId": 123,
"latitude": 123,
"longitude": 123
}
],
"nextCursor": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Geo
Search cities
Searches names using a literal, case-insensitive substring. Results use cursor pagination in stable code or ID order. Cursors expire 30 minutes after the first page; keep the same filters when continuing. This endpoint does not consume credits.
POST
/
v2
/
geo
/
cities
Search cities
curl --request POST \
--url https://api.companyenrich.com/v2/geo/cities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stateIds": [
123
],
"countryCodes": [
"<string>"
],
"query": "<string>",
"pageSize": 50,
"cursor": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stateIds: [123],
countryCodes: ['<string>'],
query: '<string>',
pageSize: 50,
cursor: '<string>'
})
};
fetch('https://api.companyenrich.com/v2/geo/cities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/v2/geo/cities"
payload = {
"stateIds": [123],
"countryCodes": ["<string>"],
"query": "<string>",
"pageSize": 50,
"cursor": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"id": 123,
"name": "<string>",
"countryCode": "<string>",
"stateId": 123,
"latitude": 123,
"longitude": 123
}
],
"nextCursor": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Body
application/json