CompanyEnrich Batches API

The Batches API from CompanyEnrich — 4 operation(s) for batches.

GitHub OpenAPI

Operations 4

GET /v2/batches List batches #
GET /v2/batches/{id} Get batch status #
POST /v2/batches/{id}/cancel Cancel remaining batch requests #
GET /v2/batches/{id}/results Download raw batch results #

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-batches-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-batches-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Company Enrich API v2 Batches 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: Batches
paths:
  /v2/batches:
    get:
      tags:
      - Batches
      summary: List batches
      description: Returns your batches, newest first, with the same status and progress as `GET /v2/batches/{id}`. To fetch the next page, pass `nextCursor` as `cursor` with the same `kind`.
      parameters:
      - name: kind
        in: query
        description: Only return batches of this kind, such as `company-enrichment`.
        schema:
          maxLength: 64
          type: string
      - name: cursor
        in: query
        description: The `nextCursor` from the previous page. Omit for the newest batches.
        schema:
          maxLength: 1024
          type: string
      - name: pageSize
        in: query
        description: The maximum number of batches to return. Defaults to 20.
        schema:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
          default: 20
      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/BatchListResponse'
      operationId: getV2Batches
      x-operation-id-source: derived
  /v2/batches/{id}:
    get:
      tags:
      - Batches
      summary: Get batch status
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      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/BatchStatusResponse'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getV2BatchesById
      x-operation-id-source: derived
  /v2/batches/{id}/cancel:
    post:
      tags:
      - Batches
      summary: Cancel remaining batch requests
      description: Stops remaining work. Already charged results remain downloadable. Cancelling an owned batch that is already terminal is harmless.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      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/BatchStatusResponse'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: postV2BatchesByIdCancel
      x-operation-id-source: derived
  /v2/batches/{id}/results:
    get:
      tags:
      - Batches
      summary: Download raw batch results
      description: Streams a fixed snapshot of eligible HTTP outcomes as NDJSON, one record per line, in input order. Unfinished and unsettled results are excluded. Requires the batch owner's credentials, or the signature from `rawResultsUrl` in a status response.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: sig
        in: query
        description: The signature from a download URL in a status response. Not needed with the batch owner's credentials.
        schema:
          maxLength: 1024
          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'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '200':
          description: OK
          content:
            application/x-ndjson:
              schema:
                $ref: '#/components/schemas/BatchRawResultResponse'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getV2BatchesByIdResults
      x-operation-id-source: derived
components:
  schemas:
    HttpBatchItemState2:
      enum:
      - pending
      - running
      - succeeded
      - failed
      - unknown
      - cancelled
      description: The recorded outcome of the request.
    HttpBatchState:
      enum:
      - pending
      - running
      - completed
      - cancelling
      - cancelled
      description: The current batch state.
    BatchProgressResponse:
      required:
      - total
      - pending
      - running
      - succeeded
      - failed
      - unknown
      - cancelled
      type: object
      properties:
        total:
          type: integer
          description: The number of requests. A search export adds one for each page as the previous page settles.
          format: int32
        pending:
          type: integer
          description: Requests awaiting dispatch, including retries.
          format: int32
        running:
          type: integer
          description: Requests still being processed, including saved results not yet settled.
          format: int32
        succeeded:
          type: integer
          description: Requests that returned a successful HTTP response.
          format: int32
        failed:
          type: integer
          description: Requests that returned an HTTP error response.
          format: int32
        unknown:
          type: integer
          description: Requests whose execution outcome could not be confirmed.
          format: int32
        cancelled:
          type: integer
          description: Requests cancelled before their results were published.
          format: int32
      description: The number of requests in each state.
    BatchRawResultResponse:
      required:
      - index
      - state
      - credits
      type: object
      properties:
        index:
          type: integer
          description: The zero-based position of this request in the batch.
          format: int32
        customId:
          type:
          - string
          - 'null'
          description: The original input domain for a company enrichment batch.
        state:
          $ref: '#/components/schemas/HttpBatchItemState2'
        statusCode:
          type:
          - integer
          - 'null'
          description: The HTTP response status, or null if no response was recorded.
          format: int32
        contentType:
          type:
          - string
          - 'null'
          description: The response content type, when a response was recorded.
        body:
          $ref: '#/components/schemas/NullableOfJsonElement3'
        error:
          type:
          - string
          - 'null'
          description: The execution error, if any.
        credits:
          type: number
          description: The charged cost of this request, in user-visible credits.
          format: double
    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
    BatchStatusResponse:
      required:
      - id
      - kind
      - status
      - progress
      - creditsCharged
      - createdAt
      - statusUrl
      - resultsUrl
      - rawResultsUrl
      type: object
      properties:
        id:
          type: string
          description: The batch ID.
          format: uuid
        kind:
          type: string
          description: The task represented by the batch.
        status:
          $ref: '#/components/schemas/HttpBatchState'
        progress:
          $ref: '#/components/schemas/BatchProgressResponse'
        creditsCharged:
          type: number
          description: The credits charged so far, in user-visible credits.
          format: double
        recordCount:
          type:
          - integer
          - 'null'
          description: For a search export, the number of records its settled pages returned.
          format: int32
        recordLimit:
          type:
          - integer
          - 'null'
          description: For a search export, the most search results it requests. Results whose record is unavailable are skipped, so `recordCount` can end below it.
          format: int32
        createdAt:
          type: string
          description: When the batch was created.
          format: date-time
        completedAt:
          type:
          - string
          - 'null'
          description: When the batch completed or was cancelled, if terminal.
          format: date-time
        statusUrl:
          type: string
          description: The authenticated URL for checking batch status and progress.
        resultsUrl:
          type: string
          description: The download URL for the task's projected results. It is signed, so it works without credentials for one hour; after that, use the owner's credentials or a URL from a new status response.
        rawResultsUrl:
          type: string
          description: The download URL for raw HTTP outcomes in NDJSON format, signed like `resultsUrl`.
    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'
    BatchListResponse:
      required:
      - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/BatchStatusResponse'
          description: The batches in this page.
        nextCursor:
          type:
          - string
          - 'null'
          description: The cursor for the next page. Omitted when no more batches remain.
    NullableOfJsonElement3:
      description: The saved endpoint response body, without task-specific projection.
  securitySchemes:
    Bearer:
      type: apiKey
      description: 'API Token used for authentication. Example: "Authorization: Bearer {token}"'
      name: Authorization
      in: header
      x-bearer-format: bearer