Search counties
Search our counties to filter companies in a specific location.
GET
https://api.thecompaniesapi.com/v2/locations/counties
Free
If you need to filter companies by county, you can use this feature to retrieve information like their code.
Signup to access all our API features
Get your 500 free credits and start enriching and searching companies.
No credit card required
Query parameters
pagenumber (optional)
The page to fetch (default to 1).
searchstring (optional)
An additional search query applied to the county name.
sizenumber (optional)
The number of counties to be returned (between 1 and 20). Default to 10.
Response schema
countiesarray
The counties that match your conditions.
metaobject
The metas information.
Code examples
Select your favorite language:
import createClient from '@thecompaniesapi/sdk'
const tca = createClient({ apiToken: 'YOUR_API_TOKEN' })
const response = await tca.searchCounties({
search: 'orange',
size: 5
})
const counties = response.data.counties // Counties that match the name
const meta = response.data.meta // Meta information