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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Company Search with Elasticsearch

> Company Search with Elasticsearch

## Request contract

* **Method and path:** POST /apis/v1/people-data-labs/search-company-elastic
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic`

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/people-data-labs.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "people-data-labs.search-company-elastic",
  "method": "POST",
  "path": "/apis/v1/people-data-labs/search-company-elastic",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "pretty": {
              "default": false,
              "description": "If true, the JSON response will be pretty-printed with human-readable indentation. Defaults to false.",
              "examples": [
                "true",
                "false"
              ],
              "type": "boolean"
            },
            "query": {
              "description": "Elasticsearch DSL query string (JSON object) for searching People Data Labs company profiles.\n\n**Supported query types:** term, terms, match, match_phrase, range, exists, bool (must/should/filter/must_not), wildcard, prefix.\n\n**Common Company Fields:** name, display_name, website, industry, employee_count, founded, size, location.country, location.region, location.locality, location.name, tags, linkedin_url, type, summary.\n\n**Location Searches:** Use nested fields: `location.country`, `location.region`, `location.locality`, `location.name`. Example: `{\"term\": {\"location.country\": \"united states\"}}`.\n\n**Important Restrictions:**\n- Do NOT include `size` or `scroll_token` in this query; use the dedicated request fields.\n- Do NOT use `minimum_should_match` in bool queries.\n\nFor complete field mappings, see https://docs.peopledatalabs.com/docs/company-search-api.",
              "examples": [
                "{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}",
                "{\"range\": {\"employee_count\": {\"gte\": 5000}}}",
                "{\"bool\": {\"filter\": [{\"range\": {\"founded\": {\"gte\": 2010}}}, {\"term\": {\"location.country\": \"united states\"}}]}}",
                "{\"match\": {\"name\": \"google\"}}"
              ],
              "type": "string"
            },
            "scroll_token": {
              "default": "",
              "description": "A token returned from a previous search response, used for paginating through large result sets. Provide this token to retrieve the next batch of `size` records. Leave empty or omit for the first request.",
              "examples": [
                "627275426f6b656e3432363935383437303232353438373930323030343934383635343734313337",
                ""
              ],
              "type": "string"
            },
            "size": {
              "description": "The number of matched company records to return. Must be an integer between 1 and 100, inclusive.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "titlecase": {
              "default": false,
              "description": "If true, an attempt will be made to title-case relevant text fields in the returned company records. Defaults to false.",
              "examples": [
                "true",
                "false"
              ],
              "type": "boolean"
            }
          },
          "required": [
            "query",
            "size"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.1003 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi-public/people-data-labs.json POST /apis/v1/people-data-labs/search-company-elastic
openapi: 3.1.0
info:
  description: ''
  title: People Data Labs
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    people-data-labs:
      description: ''
      title: People Data Labs
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 4472c9dda3b96dd2c6c9a1c4d4e710bf66733ac807f0bdc12c4ebbb2523b319c
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/people-data-labs/companies-enrich
    - /apis/v1/people-data-labs/companies-search
    - /apis/v1/people-data-labs/company/enrich
    - /apis/v1/people-data-labs/company/search
    - /apis/v1/people-data-labs/enrich-bulk-company-data
    - /apis/v1/people-data-labs/enrich-bulk-person-data
    - /apis/v1/people-data-labs/enrich-company-data
    - /apis/v1/people-data-labs/enrich-person-data
    - /apis/v1/people-data-labs/identify-person-data
    - /apis/v1/people-data-labs/people-enrich
    - /apis/v1/people-data-labs/people-search
    - /apis/v1/people-data-labs/people-search-elastic
    - /apis/v1/people-data-labs/search-company-elastic
    - /apis/v1/people-data-labs/search-company-post
  x-aisa-document:
    composer_version: '31'
    facts_hash: 4472c9dda3b96dd2c6c9a1c4d4e710bf66733ac807f0bdc12c4ebbb2523b319c
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:0739c14979cf93955c9b5b61c78a1fbe87665b75aa7fb889b90285b7120617c1
    document_hash: sha256:b0f5bb366313bbdeffd48b7f58b596fdb80d1f71fd4e8ec6fa9caf413372c7fe
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: people-data-labs
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/people-data-labs/search-company-elastic:
    post:
      tags:
        - People Data Labs
      summary: Company Search with Elasticsearch
      operationId: people-data-labs.search-company-elastic
      requestBody:
        content:
          application/json:
            schema:
              properties:
                pretty:
                  default: false
                  description: >-
                    If true, the JSON response will be pretty-printed with
                    human-readable indentation. Defaults to false.
                  examples:
                    - 'true'
                    - 'false'
                  type: boolean
                query:
                  description: >-
                    Elasticsearch DSL query string (JSON object) for searching
                    People Data Labs company profiles.


                    **Supported query types:** term, terms, match, match_phrase,
                    range, exists, bool (must/should/filter/must_not), wildcard,
                    prefix.


                    **Common Company Fields:** name, display_name, website,
                    industry, employee_count, founded, size, location.country,
                    location.region, location.locality, location.name, tags,
                    linkedin_url, type, summary.


                    **Location Searches:** Use nested fields:
                    `location.country`, `location.region`, `location.locality`,
                    `location.name`. Example: `{"term": {"location.country":
                    "united states"}}`.


                    **Important Restrictions:**

                    - Do NOT include `size` or `scroll_token` in this query; use
                    the dedicated request fields.

                    - Do NOT use `minimum_should_match` in bool queries.


                    For complete field mappings, see
                    https://docs.peopledatalabs.com/docs/company-search-api.
                  examples:
                    - >-
                      {"bool": {"must": [{"term": {"industry": "computer
                      software"}}]}}
                    - '{"range": {"employee_count": {"gte": 5000}}}'
                    - >-
                      {"bool": {"filter": [{"range": {"founded": {"gte":
                      2010}}}, {"term": {"location.country": "united
                      states"}}]}}
                    - '{"match": {"name": "google"}}'
                  type: string
                scroll_token:
                  default: ''
                  description: >-
                    A token returned from a previous search response, used for
                    paginating through large result sets. Provide this token to
                    retrieve the next batch of `size` records. Leave empty or
                    omit for the first request.
                  examples:
                    - >-
                      627275426f6b656e3432363935383437303232353438373930323030343934383635343734313337
                    - ''
                  type: string
                size:
                  description: >-
                    The number of matched company records to return. Must be an
                    integer between 1 and 100, inclusive.
                  maximum: 100
                  minimum: 1
                  type: integer
                titlecase:
                  default: false
                  description: >-
                    If true, an attempt will be made to title-case relevant text
                    fields in the returned company records. Defaults to false.
                  examples:
                    - 'true'
                    - 'false'
                  type: boolean
              required:
                - query
                - size
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__a74b4d831e94f8c0
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__a74b4d831e94f8c0:
      properties:
        query:
          type: string
        records:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__e132828af5abc696
          type: array
        scroll_token:
          type: string
        total:
          type: integer
      required:
        - query
        - records
        - scroll_token
        - total
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__e132828af5abc696:
      properties:
        affiliated_profiles:
          items:
            type: string
          type: array
        alternative_domains:
          items:
            type: string
          type: array
        alternative_names:
          items:
            type: string
          type: array
        average_employee_tenure:
          type: number
        average_tenure_by_level:
          additionalProperties:
            type: number
          type: object
        average_tenure_by_role:
          additionalProperties:
            type: number
          type: object
        dataset_version:
          type: string
        display_name:
          type: string
        employee_churn_rate:
          additionalProperties:
            type: number
          type: object
        employee_count:
          type: integer
        employee_count_by_class:
          additionalProperties:
            type: integer
          type: object
        employee_count_by_country:
          additionalProperties:
            type: integer
          type: object
        employee_count_by_month:
          additionalProperties:
            type: integer
          type: object
        employee_count_by_month_by_level:
          additionalProperties:
            additionalProperties:
              type: integer
            type: object
          type: object
        employee_count_by_month_by_role:
          additionalProperties:
            additionalProperties:
              type: integer
            type: object
          type: object
        employee_count_by_role:
          additionalProperties:
            type: integer
          type: object
        employee_count_by_sub_role:
          additionalProperties:
            type: integer
          type: object
        employee_growth_rate:
          additionalProperties:
            type: number
          type: object
        employee_growth_rate_12_month_by_class:
          additionalProperties:
            type: number
          type: object
        employee_growth_rate_12_month_by_role:
          additionalProperties:
            type: number
          type: object
        employee_growth_rate_12_month_by_sub_role:
          additionalProperties:
            type: number
          type: object
        facebook_url:
          type: string
        founded:
          type: integer
        funding_stages:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__3854e01f2bc19c61
          type: array
        gross_additions_by_month:
          additionalProperties:
            type: integer
          type: object
        gross_departures_by_month:
          additionalProperties:
            type: integer
          type: object
        headline:
          type: string
        id:
          type: string
        industry:
          type: string
        industry_v2:
          type: string
        inferred_revenue:
          type: string
        last_funding_date:
          type: string
        latest_funding_stage:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__3854e01f2bc19c61
        linkedin_id:
          type: string
        linkedin_slug:
          type: string
        linkedin_url:
          type: string
        location:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__20b6b1d8f0c1ac14
        mic_exchange:
          type: string
        naics:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__5fff78354a0252c1
          type: array
        name:
          type: string
        number_funding_rounds:
          type: integer
        profiles:
          items:
            type: string
          type: array
        recent_exec_departures:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__9ade69eb098566cf
          type: array
        recent_exec_hires:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__e6ee6721184f4a9d
          type: array
        sic:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__747a19c7ca00e242
          type: array
        size:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__3d498cc8dd55f1c9
        summary:
          type: string
        tags:
          items:
            type: string
          type: array
        ticker:
          type: string
        top_next_employers:
          additionalProperties:
            items:
              $ref: >-
                #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4
            type: array
          type: object
        top_next_employers_12_month:
          additionalProperties:
            items:
              $ref: >-
                #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4
            type: array
          type: object
        top_next_employers_by_role:
          additionalProperties:
            items:
              $ref: >-
                #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4
            type: array
          type: object
        top_previous_employers:
          additionalProperties:
            items:
              $ref: >-
                #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4
            type: array
          type: object
        top_previous_employers_12_month:
          additionalProperties:
            items:
              $ref: >-
                #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4
            type: array
          type: object
        top_previous_employers_by_role:
          additionalProperties:
            items:
              $ref: >-
                #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4
            type: array
          type: object
        total_funding_raised:
          type: number
        twitter_url:
          type: string
        type:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__be1cf172b8eeb4a3
        website:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__3854e01f2bc19c61:
      enum:
        - seed
        - series_a
        - series_b
        - series_c
        - series_d
        - series_e
        - series_f
        - series_g
        - series_h
        - series_i
        - series_j
        - series_unknown
        - angel
        - pre_seed
        - private_equity
        - debt_financing
        - convertible_note
        - grant
        - corporate_round
        - equity_crowdfunding
        - product_crowdfunding
        - initial_coin_offering
        - post_ipo_equity
        - post_ipo_debt
        - post_ipo_secondary
        - secondary_market
        - non_equity_assistance
        - funding_round
        - undisclosed
      type: string
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__20b6b1d8f0c1ac14:
      properties:
        address_line_2:
          type: string
        continent:
          type: string
        country:
          type: string
        geo:
          type: string
        locality:
          type: string
        metro:
          type: string
        name:
          type: string
        postal_code:
          type: string
        region:
          type: string
        street_address:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__5fff78354a0252c1:
      properties:
        industry_group:
          type: string
        naics_code:
          type: string
        naics_industry:
          type: string
        national_industry:
          type: string
        sector:
          type: string
        sub_sector:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__9ade69eb098566cf:
      properties:
        departed_date:
          type: string
        job_title:
          type: string
        levels:
          items:
            type: string
          type: array
        new_company:
          additionalProperties:
            type: string
          type: object
        pdl_id:
          type: string
        roles:
          items:
            type: string
          type: array
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__e6ee6721184f4a9d:
      properties:
        job_title:
          type: string
        joined_date:
          type: string
        levels:
          items:
            type: string
          type: array
        pdl_id:
          type: string
        previous_company:
          additionalProperties:
            type: string
          type: object
        roles:
          items:
            type: string
          type: array
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__747a19c7ca00e242:
      properties:
        industry_group:
          type: string
        industry_sector:
          type: string
        major_group:
          type: string
        sic_code:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__3d498cc8dd55f1c9:
      enum:
        - 1-10
        - 11-50
        - 51-200
        - 201-500
        - 501-1000
        - 1001-5000
        - 5001-10000
        - 10001+
      type: string
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__1fd0c04f04f31ec4:
      properties:
        count:
          type: integer
        display_name:
          type: string
        id:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_SEARCH_COMPANY_ELASTIC__output__be1cf172b8eeb4a3:
      enum:
        - public
        - private
        - public_subsidiary
        - educational
        - government
        - nonprofit
      type: string
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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