CompanyEnrich Geo API

Endpoints for looking up geographic data including regions, countries, states, and cities.

GitHub OpenAPI

Operations 5

GET /v2/geo/regions Get regions #
GET /v2/geo/countries/{countryCode} Get country by code #
POST /v2/geo/countries Search countries #
POST /v2/geo/states Search states #
POST /v2/geo/cities Search cities #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/companyenrich:companyenrich-geo-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

companyenrich-geo-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Company Enrich API v2 Geo API
  description: 'The Company Enrich API v2 provides programmatic access to company and person data for enrichment, search, and lead generation.


    ## Key Features


    - **Company Enrichment** — Enrich company profiles by domain or identifying properties, and retrieve stored companies by ID.

    - **Company Search** — Search and filter companies with cursor pagination, counts, and previews.

    - **Semantic and Lookalike Search** — Find companies using natural-language queries or similar company domains.

    - **People Enrichment** — Retrieve people by ID, identify people from their email address, and find work email addresses.

    - **People Search** — Search people by position, seniority, department, location, education, and company with cursor pagination, counts, and previews.

    - **Reference Data** — Look up industries, geographic data, keywords, technologies, and job titles.


    V2 intentionally excludes saved company lists, list-based exports, and filtering searches by saved-list IDs. These features remain available in V1 and are not planned for V2.


    ## Authentication


    All API requests require a Bearer token passed in the `Authorization` header:


    ```

    Authorization: Bearer YOUR_API_TOKEN

    ```


    You can generate API tokens from your dashboard.


    ## Credits


    Most API calls consume credits. The credit cost for each endpoint is documented in its description. You can check your remaining credit balance using the User endpoint.


    ## Rate Limiting


    The global API limiter allows **500 requests per minute** per IP address. Authenticated API routes also use a per-user route limiter based on plan capabilities.

    Supplementary lookup endpoints (such as keyword/technology/industry autocompletes) use a separate per-user route-level bucket.'
  termsOfService: https://companyenrich.com/terms-and-conditions
  contact:
    url: https://companyenrich.com/
    email: support@companyenrich.com
  version: 2.0.0
servers:
- url: https://api.companyenrich.com
security:
- Bearer: []
tags:
- name: Geo
  description: Endpoints for looking up geographic data including regions, countries, states, and cities.
paths:
  /v2/geo/regions:
    get:
      tags:
      - Geo
      summary: Get regions
      description: Returns all geographic regions and their country codes. This endpoint does not consume credits.
      responses:
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '402':
          description: Payment Required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SupportListResponseOfGeoRegionResponse'
      operationId: getV2GeoRegions
      x-operation-id-source: derived
  /v2/geo/countries/{countryCode}:
    get:
      tags:
      - Geo
      summary: Get country by code
      description: Retrieves a country by its two-letter code. This endpoint does not consume credits.
      parameters:
      - name: countryCode
        in: path
        description: The two-letter country code, case-insensitive
        required: true
        schema:
          pattern: ^[A-Za-z]{2}$
          type: string
      responses:
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '402':
          description: Payment Required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeoCountryResponse'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getV2GeoCountriesByCountryCode
      x-operation-id-source: derived
  /v2/geo/countries:
    post:
      tags:
      - Geo
      summary: Search countries
      description: 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.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeoSearchRequest'
        required: true
      responses:
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '402':
          description: Payment Required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeoSearchResponseOfGeoCountryResponse'
      operationId: postV2GeoCountries
      x-operation-id-source: derived
  /v2/geo/states:
    post:
      tags:
      - Geo
      summary: Search states
      description: 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.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeoStateSearchRequest'
        required: true
      responses:
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '402':
          description: Payment Required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeoSearchResponseOfGeoStateResponse'
      operationId: postV2GeoStates
      x-operation-id-source: derived
  /v2/geo/cities:
    post:
      tags:
      - Geo
      summary: Search cities
      description: 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.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeoCitySearchRequest'
        required: true
      responses:
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '402':
          description: Payment Required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeoSearchResponseOfGeoCityResponse'
      operationId: postV2GeoCities
      x-operation-id-source: derived
components:
  schemas:
    GeoCityResponse:
      required:
      - id
      - name
      type: object
      properties:
        id:
          type: integer
          description: The city ID accepted by company search filters
          format: int32
        name:
          type: string
          description: The city name
        countryCode:
          type:
          - string
          - 'null'
          description: The two-letter code of the parent country
        stateId:
          type:
          - integer
          - 'null'
          description: The ID of the parent state
          format: int32
        latitude:
          type:
          - number
          - 'null'
          description: The latitude of the city
          format: float
        longitude:
          type:
          - number
          - 'null'
          description: The longitude of the city
          format: float
    GeoSearchResponseOfGeoCountryResponse:
      required:
      - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/GeoCountryResponse'
          description: The geographic records in this page
        nextCursor:
          type:
          - string
          - 'null'
          description: The cursor for the next page. Omitted when no more results remain. Expires 30 minutes after the first page.
    GeoRegionResponse:
      required:
      - id
      - name
      - countryCodes
      type: object
      properties:
        id:
          type: string
          description: The region ID accepted by company search filters
        name:
          type: string
          description: The name of the region
        parentId:
          type:
          - string
          - 'null'
          description: The parent region ID, when this is a subregion
        countryCodes:
          type: array
          items:
            type: string
          description: The two-letter country codes belonging to this region
    SupportListResponseOfGeoRegionResponse:
      required:
      - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/GeoRegionResponse'
          description: The reference values or suggestions returned by the request
    GeoSearchResponseOfGeoStateResponse:
      required:
      - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/GeoStateResponse'
          description: The geographic records in this page
        nextCursor:
          type:
          - string
          - 'null'
          description: The cursor for the next page. Omitted when no more results remain. Expires 30 minutes after the first page.
    GeoCitySearchRequest:
      type: object
      properties:
        stateIds:
          maxItems: 100
          type:
          - array
          - 'null'
          items:
            type: integer
            format: int32
          description: Up to 100 positive state IDs. Results may belong to any supplied state and must also match any country filter.
        countryCodes:
          maxItems: 250
          type:
          - array
          - 'null'
          items:
            type: string
          description: Up to 250 two-letter country codes. Results may belong to any supplied country. Codes are trimmed and case-insensitive.
        query:
          maxLength: 100
          type:
          - string
          - 'null'
          description: A literal, case-insensitive substring of the name. Leading and trailing whitespace is ignored.
        pageSize:
          maximum: 100
          minimum: 1
          type: integer
          description: The maximum number of results to return. Defaults to 100.
          format: int32
        cursor:
          maxLength: 2048
          type:
          - string
          - 'null'
          description: The cursor from the previous response. Omit for the first page. Keep the same filters; pageSize may change.
    GeoSearchRequest:
      type: object
      properties:
        query:
          maxLength: 100
          type:
          - string
          - 'null'
          description: A literal, case-insensitive substring of the name. Leading and trailing whitespace is ignored.
        pageSize:
          maximum: 100
          minimum: 1
          type: integer
          description: The maximum number of results to return. Defaults to 100.
          format: int32
        cursor:
          maxLength: 2048
          type:
          - string
          - 'null'
          description: The cursor from the previous response. Omit for the first page. Keep the same filters; pageSize may change.
    HttpValidationProblemDetails:
      type: object
      properties:
        type:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        status:
          type:
          - integer
          - 'null'
          format: int32
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    GeoStateResponse:
      required:
      - id
      - name
      type: object
      properties:
        id:
          type: integer
          description: The state ID accepted by city and company search filters
          format: int32
        name:
          type: string
          description: The state name
        code:
          type:
          - string
          - 'null'
          description: The ISO 3166-2 state code, when available
        countryCode:
          type:
          - string
          - 'null'
          description: The two-letter code of the parent country
        latitude:
          type:
          - number
          - 'null'
          description: The latitude of the state
          format: float
        longitude:
          type:
          - number
          - 'null'
          description: The longitude of the state
          format: float
    ProblemDetails:
      type: object
      properties:
        type:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        status:
          type:
          - integer
          - 'null'
          format: int32
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
    GeoCountryResponse:
      required:
      - code
      - name
      type: object
      properties:
        code:
          type: string
          description: The two-letter country code
        name:
          type: string
          description: The country name
        latitude:
          type:
          - number
          - 'null'
          description: The latitude of the country
          format: float
        longitude:
          type:
          - number
          - 'null'
          description: The longitude of the country
          format: float
    GeoSearchResponseOfGeoCityResponse:
      required:
      - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/GeoCityResponse'
          description: The geographic records in this page
        nextCursor:
          type:
          - string
          - 'null'
          description: The cursor for the next page. Omitted when no more results remain. Expires 30 minutes after the first page.
    GeoStateSearchRequest:
      type: object
      properties:
        countryCodes:
          maxItems: 250
          type:
          - array
          - 'null'
          items:
            type: string
          description: Up to 250 two-letter country codes. Results may belong to any supplied country. Codes are trimmed and case-insensitive.
        query:
          maxLength: 100
          type:
          - string
          - 'null'
          description: A literal, case-insensitive substring of the name. Leading and trailing whitespace is ignored.
        pageSize:
          maximum: 100
          minimum: 1
          type: integer
          description: The maximum number of results to return. Defaults to 100.
          format: int32
        cursor:
          maxLength: 2048
          type:
          - string
          - 'null'
          description: The cursor from the previous response. Omit for the first page. Keep the same filters; pageSize may change.
  securitySchemes:
    Bearer:
      type: apiKey
      description: 'API Token used for authentication. Example: "Authorization: Bearer {token}"'
      name: Authorization
      in: header
      x-bearer-format: bearer