Skip to content
Documentation menu

List countries

Countries with companies, with how many each has. Values for the country filter.

GEThttps://findbytown.com/api/v1/countriesNo quota

Examples

curl "https://findbytown.com/api/v1/countries" \
  -H "Authorization: Bearer fbt_EXAMPLE_not_a_real_key_0000"

Response

Example with fake values:

{
  "data": [
    {
      "code": "FR",
      "count": 5000
    }
  ]
}

Errors

CodeHTTP statusMeaning
validation_error400A parameter is missing or has the wrong form. details names it.
unknown_parameter400A query parameter is not one this endpoint knows, usually a typing mistake. details names it.
use_reveal_endpoint400You sent reveal= on a read. Reads never spend quota: use the reveal endpoint.
missing_api_key401No Authorization header, or an empty one.
invalid_api_key401The key does not exist or has been revoked.
plan_without_api403The account's current plan does not include the API. Applies from the moment a plan ends.
suspended403The account is suspended. Its keys start working again if the suspension is lifted.
rate_limited429Too many requests this minute. Wait for the number of seconds in Retry-After.
blocked429Access to company data is temporarily paused because of automated use, such as walking through ids. Retry-After gives the time left. Write to support if this is a mistake.
internal_error500Something went wrong on our side. Quote requestId when writing to support.

Back to findbytown