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

# Company intelligence

> From a domain, get the company profile and firmographics, technology stack, website traffic, similar companies, funding rounds or news. Providers: Apollo, People Data Labs, Hunter, Prospeo, PredictLeads, LeadMagic, BuiltWith, DataForSEO, Ahrefs, Apify, Exa, Serper. Routes to one Endpoint per action; provider auto picks the first preferred Provider this key may run, a named provider forces it. The response is exactly the Run that POST /v1/runs returns — provider-native output, exact charge_usd, run_url; its provider, endpoint and input say which Endpoint served the call. Under auto, a Provider error, timeout or rate limit falls back to the next preferred Provider; a no-result answer does not. Each fallback hop is its own Run, visible in the runs list. Idempotency-Key is required and behaves exactly as on POST /v1/runs.



## OpenAPI

````yaml /openapi.json post /v1/solutions/gtm/company_intelligence
openapi: 3.1.0
info:
  title: Glasser
  version: 0.0.1
  description: >-
    One key, no contract, pay per call, across paid APIs bought wholesale. Every
    response carries x-request-id; every error body carries the same envelope.
servers: []
security: []
tags:
  - name: Solutions
  - name: Endpoints
  - name: Runs
  - name: Balance
paths:
  /v1/solutions/gtm/company_intelligence:
    post:
      tags:
        - Solutions
      summary: Company intelligence
      description: >-
        From a domain, get the company profile and firmographics, technology
        stack, website traffic, similar companies, funding rounds or news.
        Providers: Apollo, People Data Labs, Hunter, Prospeo, PredictLeads,
        LeadMagic, BuiltWith, DataForSEO, Ahrefs, Apify, Exa, Serper. Routes to
        one Endpoint per action; provider auto picks the first preferred
        Provider this key may run, a named provider forces it. The response is
        exactly the Run that POST /v1/runs returns — provider-native output,
        exact charge_usd, run_url; its provider, endpoint and input say which
        Endpoint served the call. Under auto, a Provider error, timeout or rate
        limit falls back to the next preferred Provider; a no-result answer does
        not. Each fallback hop is its own Run, visible in the runs list.
        Idempotency-Key is required and behaves exactly as on POST /v1/runs.
      operationId: gtm-company-intelligence
      parameters:
        - name: idempotency-key
          in: header
          schema:
            type: string
            minLength: 1
            description: >-
              A caller-generated idempotency key (a UUID is recommended). One
              key binds to one run: a retry with the same key after a network
              timeout is a read, not a second execution.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                action:
                  anyOf:
                    - type: string
                      enum:
                        - enrich
                        - tech_stack
                        - traffic
                        - competitors
                        - funding
                        - news
                      description: >-
                        Default enrich. enrich: profile and firmographics;
                        tech_stack; traffic; competitors: businesses similar to
                        the company (for the domains it competes with in Google
                        results use seo_research organic_competitors); funding;
                        news. All take domain.
                    - type: 'null'
                provider:
                  anyOf:
                    - type: string
                      enum:
                        - auto
                        - apollo
                        - pdl
                        - hunter
                        - prospeo
                        - predictleads
                        - leadmagic
                        - builtwith
                        - dataforseo
                        - ahrefs
                        - apify
                        - exa
                        - serper
                      description: >-
                        Data provider: auto (default) or one of apollo, pdl,
                        hunter, prospeo, predictleads, leadmagic, builtwith,
                        dataforseo, ahrefs, apify, exa, serper. Name one only
                        when the caller asks for that vendor.
                    - type: 'null'
                domain:
                  type: string
                  minLength: 3
                  maxLength: 253
                  description: >-
                    A website domain such as stripe.com. A full URL is accepted
                    and reduced to its host.
                country:
                  anyOf:
                    - type: string
                      minLength: 2
                      maxLength: 60
                      description: >-
                        Country as a two-letter ISO code or a country name, e.g.
                        us, gb, de, Germany. Default us. An unsupported country
                        is refused with the supported list.
                    - type: 'null'
                query:
                  anyOf:
                    - type: string
                      minLength: 1
                      maxLength: 200
                      description: >-
                        For news via Serper only: the company name to search
                        Google News by, instead of the domain. Other actions and
                        providers ignore it.
                    - type: 'null'
                limit:
                  anyOf:
                    - type: integer
                      minimum: 1
                      maximum: 100
                      description: >-
                        Rows to return. Keep it small: the routed Endpoint's
                        charge rule may read it. Each capability caps it
                        further.
                    - type: 'null'
              required:
                - domain
              additionalProperties: false
        required: true
      responses:
        '200':
          description: 'a terminal run: COMPLETED, FAILED or STOPPED'
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  run_url:
                    type: string
                  provider:
                    type: string
                    pattern: ^[a-z0-9][a-z0-9-]*$
                  endpoint:
                    type: string
                    pattern: ^\/.+$
                  endpoint_version:
                    type: integer
                    exclusiveMinimum: 0
                  status:
                    type: string
                    enum:
                      - QUEUED
                      - RUNNING
                      - COMPLETED
                      - FAILED
                      - STOPPED
                  failure:
                    anyOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - TIMED_OUT
                              - INTERNAL
                          message:
                            type: string
                        required:
                          - kind
                          - message
                        additionalProperties: false
                      - type: 'null'
                  input:
                    type: object
                  output: {}
                  provider_response:
                    anyOf:
                      - type: object
                        properties:
                          http_status:
                            type: integer
                            minimum: 100
                            maximum: 599
                          error:
                            anyOf:
                              - {}
                              - type: 'null'
                        required:
                          - http_status
                        additionalProperties: false
                      - type: 'null'
                  charge_usd:
                    anyOf:
                      - type: string
                        pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
                        description: >-
                          Exact USD decimal string (min 2, max 6 decimals, one
                          canonical spelling). Sum with decimal arithmetic or
                          scale by 10^6 — never floats.
                      - type: 'null'
                  charge_basis:
                    anyOf:
                      - type: object
                        properties:
                          clause:
                            type: string
                            enum:
                              - rule
                              - NO_RESULT
                              - PROVIDER_ERROR
                              - TIMED_OUT
                              - INTERNAL
                          quantity:
                            anyOf:
                              - type: integer
                                minimum: 0
                              - type: 'null'
                        required:
                          - clause
                          - quantity
                        additionalProperties: false
                      - type: 'null'
                  stoppable:
                    type: boolean
                  stop_requested_at:
                    anyOf:
                      - type: string
                        description: ISO-8601 UTC timestamp
                        format: date-time
                      - type: 'null'
                  created_at:
                    type: string
                    description: ISO-8601 UTC timestamp
                    format: date-time
                  started_at:
                    anyOf:
                      - type: string
                        description: ISO-8601 UTC timestamp
                        format: date-time
                      - type: 'null'
                  completed_at:
                    anyOf:
                      - type: string
                        description: ISO-8601 UTC timestamp
                        format: date-time
                      - type: 'null'
                required:
                  - id
                  - run_url
                  - provider
                  - endpoint
                  - endpoint_version
                  - status
                  - failure
                  - input
                  - output
                  - provider_response
                  - charge_usd
                  - charge_basis
                  - stoppable
                  - stop_requested_at
                  - created_at
                  - started_at
                  - completed_at
                additionalProperties: false
        '202':
          description: 'an in-flight run: QUEUED or RUNNING'
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  run_url:
                    type: string
                  provider:
                    type: string
                    pattern: ^[a-z0-9][a-z0-9-]*$
                  endpoint:
                    type: string
                    pattern: ^\/.+$
                  endpoint_version:
                    type: integer
                    exclusiveMinimum: 0
                  status:
                    type: string
                    enum:
                      - QUEUED
                      - RUNNING
                      - COMPLETED
                      - FAILED
                      - STOPPED
                  failure:
                    anyOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - TIMED_OUT
                              - INTERNAL
                          message:
                            type: string
                        required:
                          - kind
                          - message
                        additionalProperties: false
                      - type: 'null'
                  input:
                    type: object
                  output: {}
                  provider_response:
                    anyOf:
                      - type: object
                        properties:
                          http_status:
                            type: integer
                            minimum: 100
                            maximum: 599
                          error:
                            anyOf:
                              - {}
                              - type: 'null'
                        required:
                          - http_status
                        additionalProperties: false
                      - type: 'null'
                  charge_usd:
                    anyOf:
                      - type: string
                        pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
                        description: >-
                          Exact USD decimal string (min 2, max 6 decimals, one
                          canonical spelling). Sum with decimal arithmetic or
                          scale by 10^6 — never floats.
                      - type: 'null'
                  charge_basis:
                    anyOf:
                      - type: object
                        properties:
                          clause:
                            type: string
                            enum:
                              - rule
                              - NO_RESULT
                              - PROVIDER_ERROR
                              - TIMED_OUT
                              - INTERNAL
                          quantity:
                            anyOf:
                              - type: integer
                                minimum: 0
                              - type: 'null'
                        required:
                          - clause
                          - quantity
                        additionalProperties: false
                      - type: 'null'
                  stoppable:
                    type: boolean
                  stop_requested_at:
                    anyOf:
                      - type: string
                        description: ISO-8601 UTC timestamp
                        format: date-time
                      - type: 'null'
                  created_at:
                    type: string
                    description: ISO-8601 UTC timestamp
                    format: date-time
                  started_at:
                    anyOf:
                      - type: string
                        description: ISO-8601 UTC timestamp
                        format: date-time
                      - type: 'null'
                  completed_at:
                    anyOf:
                      - type: string
                        description: ISO-8601 UTC timestamp
                        format: date-time
                      - type: 'null'
                required:
                  - id
                  - run_url
                  - provider
                  - endpoint
                  - endpoint_version
                  - status
                  - failure
                  - input
                  - output
                  - provider_response
                  - charge_usd
                  - charge_basis
                  - stoppable
                  - stop_requested_at
                  - created_at
                  - started_at
                  - completed_at
                additionalProperties: false
        '400':
          description: ValidationFailed | IdempotencyKeyRequired
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationFailedEncoded'
                  - $ref: '#/components/schemas/IdempotencyKeyRequiredEncoded'
                  - $ref: '#/components/schemas/ValidationFailedEncoded'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedEncoded'
        '402':
          description: InsufficientBalance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientBalanceEncoded'
        '403':
          description: EndpointNotPermitted | Forbidden
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/EndpointNotPermittedEncoded'
                  - $ref: '#/components/schemas/ForbiddenEncoded'
        '409':
          description: IdempotencyConflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdempotencyConflictEncoded'
        '429':
          description: RateLimited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitedEncoded'
        '503':
          description: ServiceUnavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableEncoded'
      security:
        - bearer: []
components:
  schemas:
    ValidationFailedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - validation_failed
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    IdempotencyKeyRequiredEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - idempotency_key_required
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    UnauthorizedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    InsufficientBalanceEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - insufficient_balance
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    EndpointNotPermittedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - endpoint_not_permitted
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    ForbiddenEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - forbidden
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    IdempotencyConflictEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - idempotency_conflict
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    RateLimitedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - rate_limited
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    ServiceUnavailableEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - service_unavailable
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: Bearer

````