> ## Documentation Index
> Fetch the complete documentation index at: https://docs.outbound.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Search companies

> Finds companies by a plain-language `query`, by `filters`, or by a saved company search: send exactly one.

Returns one page of companies and the `filters` the search ran with. For the next page, send those `filters` with the page's `pagination.nextCursor` as `cursor`.

**Price:** \$0.0001 per company returned. Before the search runs, `limit` times \$0.0001 is held from your balance, and what the page does not use is released. A page with nothing on it costs nothing. **Scope:** search. Read-only keys may call it.



## OpenAPI

````yaml /openapi.json post /v1/companies/search
openapi: 3.1.0
info:
  title: outbound.dev API
  version: v1
  description: Find people and companies, and see what every call costs, with one API key.
servers:
  - url: https://api.outbound.dev
security: []
tags:
  - name: People
    description: >-
      Search people with filters, a saved search or a plain-language query,
      count matches and look up filter values.
  - name: Companies
    description: >-
      Search companies, count matches, name one company by its name, domain or
      LinkedIn page, and list its people.
  - name: Saved searches
    description: Keep a search under a title and run it again, for people or for companies.
  - name: Jobs
    description: >-
      Long tasks a call started: their progress, what they produced and what
      they were charged.
  - name: Account
    description: >-
      The calling key and its organization, its rate limits, and revoking the
      key.
  - name: Billing
    description: The balance, the ledger of every change to it, and the price list.
  - name: Usage and requests
    description: >-
      Calls and spend by day, and the record of every request of the last 30
      days.
paths:
  /v1/companies/search:
    post:
      tags:
        - Companies
      summary: Search companies
      description: >-
        Finds companies by a plain-language `query`, by `filters`, or by a saved
        company search: send exactly one.


        Returns one page of companies and the `filters` the search ran with. For
        the next page, send those `filters` with the page's
        `pagination.nextCursor` as `cursor`.


        **Price:** \$0.0001 per company returned. Before the search runs,
        `limit` times \$0.0001 is held from your balance, and what the page does
        not use is released. A page with nothing on it costs nothing. **Scope:**
        search. Read-only keys may call it.
      operationId: postCompaniesSearch
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: >-
                    Which companies to find, in plain language. It is turned
                    into filters, which the page answers with as `filters`.
                  minLength: 1
                  maxLength: 2000
                  example: logistics companies in Portugal
                filters:
                  type: object
                  description: >-
                    Filters by name, with values from `GET
                    /v1/companies/filters` and `GET /v1/companies/autocomplete`.
                  maxProperties: 100
                  additionalProperties: {}
                  example:
                    headquartersCountryCode:
                      - PRT
                savedSearchId:
                  type: string
                  description: Run a saved company search by its id.
                  minLength: 24
                  maxLength: 24
                  pattern: ^[0-9a-fA-F]+$
                savedSearchName:
                  type: string
                  description: >-
                    Run a saved company search by its title. A title several
                    saved searches share answers 409
                    `saved_search_name_ambiguous`.
                  minLength: 1
                  maxLength: 255
                limit:
                  type: integer
                  description: >-
                    Companies per page. The page's most possible cost, `limit`
                    times \$0.0001, is held from your balance first.
                  default: 25
                  minimum: 1
                  maximum: 100
                cursor:
                  type: string
                  description: >-
                    The `pagination.nextCursor` of the page before. Send it with
                    the same search, as the `filters` the first page answered
                    with.
                  minLength: 1
                  maxLength: 4096
            example:
              query: logistics companies in Portugal
              limit: 25
      responses:
        '200':
          description: One page of companies.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            X-Charged-Usd:
              $ref: '#/components/headers/ChargedUsd'
            X-Balance-Usd:
              $ref: '#/components/headers/BalanceUsd'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - pagination
                  - filters
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      description: >-
                        A company as the company data providers describe it.
                        Fields without a value are left out.
                      additionalProperties: true
                      properties:
                        preferred_name:
                          type: string
                          description: The company's name.
                        names:
                          type: array
                          items:
                            type: string
                          description: Every name the company is known by.
                        domains:
                          type: array
                          items:
                            type: string
                          description: Its website domains.
                        linkedin_primary_slug:
                          type:
                            - string
                            - 'null'
                          description: Its LinkedIn page, as `linkedin.com/company/<slug>`.
                        standard_industries:
                          type: array
                          items:
                            type: string
                        naics_codes:
                          type: array
                          items:
                            type: string
                        tags:
                          type: array
                          items:
                            type: string
                        status_consensus:
                          type:
                            - string
                            - 'null'
                          description: Whether it operates, such as `active`.
                        funding_stage:
                          type:
                            - string
                            - 'null'
                        employee_count_consensus:
                          type:
                            - object
                            - 'null'
                          description: The headcount, as a range.
                          properties:
                            gte:
                              type: integer
                            lte:
                              type: integer
                        location_consensus:
                          type:
                            - object
                            - 'null'
                          description: Where it is headquartered.
                          additionalProperties: true
                  pagination:
                    type: object
                    properties:
                      nextCursor:
                        type: string
                        description: >-
                          Send as `cursor`, with the same search, for the next
                          page. Absent on the last page.
                      total:
                        type: integer
                        description: >-
                          An estimate of every company matching. Absent when
                          unknown.
                  filters:
                    type: object
                    additionalProperties: true
                    description: >-
                      The filters the search ran with. Send them with `cursor`
                      for the next page, or save them as a saved search.
                  unresolvedCriteria:
                    type: array
                    items:
                      type: string
                    description: >-
                      With `query`: the parts of it that could not be turned
                      into a filter.
              example:
                data:
                  - preferred_name: Halden Freight
                    names:
                      - Halden Freight
                      - Halden Freight Lda
                    domains:
                      - haldenfreight.com
                    linkedin_primary_slug: halden-freight
                    standard_industries:
                      - Transportation and Logistics
                    status_consensus: active
                    employee_count_consensus:
                      gte: 201
                      lte: 500
                pagination:
                  nextCursor: Y29tcGFueV8y
                  total: 812
                filters:
                  headquartersCountryCode:
                    - PRT
                  linkedinIndustries:
                    - Transportation, Logistics, Supply Chain and Storage
        '429':
          $ref: '#/components/responses/RateLimited'
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/ServerError'
      security:
        - apiKey: []
components:
  headers:
    RequestId:
      description: The request's id. Quote it when you write to support.
      schema:
        type: string
        example: req_6a1f0c2b9d4e8a7f3c5b2e10
    ChargedUsd:
      description: What this call cost, in US dollars as an exact six-decimal string.
      schema:
        type: string
        example: '0.000500'
    BalanceUsd:
      description: >-
        The organization's balance after this call, in US dollars as an exact
        six-decimal string.
      schema:
        type: string
        example: '9.999500'
    RateLimitLimit:
      description: >-
        The calls allowed in the window of the route's limit with the fewest
        calls left.
      schema:
        type: integer
        example: 20
    RateLimitRemaining:
      description: The calls left in that window.
      schema:
        type: integer
        example: 19
    RateLimitReset:
      description: Seconds until that window resets.
      schema:
        type: integer
        example: 42
    RetryAfter:
      description: Seconds to wait before calling again.
      schema:
        type: integer
        example: 42
  responses:
    RateLimited:
      description: >-
        Too many calls. Wait the seconds in Retry-After, then call again. The
        body is empty.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
    Error:
      description: The request was refused. The body names the reason in `error.code`.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: >-
        Something failed on our side and nothing was charged. Retry with
        backoff; quote X-Request-Id if it persists. The body is empty.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - doc_url
          properties:
            code:
              type: string
              description: >-
                Stable and machine-readable: branch on it. It never changes
                meaning.
            message:
              type: string
              description: >-
                A human-readable explanation for logs. It may be reworded at any
                time.
            param:
              type: string
              description: The request field the error is about, when there is one.
            doc_url:
              type: string
              description: The code's entry in the errors reference.
            request_id:
              type: string
              description: >-
                The request's id, as in the X-Request-Id header. Quote it to
                support.
      example:
        error:
          code: insufficient_balance
          message: Your balance cannot cover this call. Add funds and try again.
          doc_url: https://outbound.dev/docs/errors#insufficient_balance
          request_id: req_6a1f0c2b9d4e8a7f3c5b2e10
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from the console, starting `ob_live_`, sent as
        `Authorization: Bearer <key>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.