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

# [CR5] Search Companies

> Search for companies using natural language query. Extracts filters for industry, location, and employee count.



## OpenAPI

````yaml /api-reference/v1/v1.1.0_openapi.json post /action/company_research_v2_search_companies
openapi: 3.0.0
info:
  version: 1.1.0
  title: AI Actions - Get Data
  description: API specifications for 'Get Data' category AI actions.
  license:
    name: MIT
servers:
  - url: https://api-lr.agent.ai/v1
security:
  - bearerAuth: []
paths:
  /action/company_research_v2_search_companies:
    post:
      tags:
        - Company Research
      summary: '[CR5] Search Companies'
      description: >-
        Search for companies using natural language query. Extracts filters for
        industry, location, and employee count.
      operationId: companyResearchV2SearchCompanies
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: >-
                    Natural language search (e.g., 'SaaS companies in California
                    with 500+ employees').
                page:
                  type: number
                  description: Page number for pagination.
                  default: 1
                page_size:
                  type: number
                  description: Number of results per page (max 100).
                  default: 20
                output_variable_name:
                  type: string
                  description: >-
                    Variable name for search results. Access companies with
                    {{search_results.results}}.
                  default: search_results
                  pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
              required:
                - query
                - output_variable_name
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '401':
          description: Unauthorized - invalid or missing bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
components:
  schemas:
    ActionResponse:
      type: object
      properties:
        status:
          type: integer
          format: int32
          description: HTTP status code of the action response
        response:
          type: object
          description: Response data from the action
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from your account
        ([https://agent.ai/user/integrations#api](https://agent.ai/user/integrations#api))

````