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

# Similar companies

> Semantic search on the seed's activity description within a revenue band and an area, best match first; fewer than ten when fewer reach a 0.7 similarity. Price: 150 credits. 404, never billed, when no comparable is found.



## OpenAPI

````yaml api-reference/openapi.standard.json GET /companies/{id}/similar
openapi: 3.1.0
info:
  title: Syrto API - standard endpoints
  version: 1.7.0
  description: >-
    Financial, corporate and market data on Italian companies.


    Every call answers `200 { data, meta }`; `meta.usage.quantity` is what the
    call consumed, in

    credits, and `meta.warnings` lists any non-fatal caveats (empty when there
    are none). Every field

    is always present and unknown values are null. Percentages are fractions
    (0.15 = 15%).


    **Authentication.** Every call needs an API key, sent as `Authorization:
    Bearer sk_...` over

    HTTPS - never in a URL. Keys are scoped to your organization: admins create
    and revoke them in the

    Syrto dashboard (https://dashboard.syrto.ai/api-keys). A missing or
    unrecognised key is a 401

    (`missing_api_key`, `invalid_api_key`); a 503 `auth_unavailable` means the
    key could not be

    checked right now, so retry with backoff rather than rotating it.


    **Billing basis.** negativities, rna and structure bill once per legal
    entity: the individual and

    consolidated records of the same company count once. Every other endpoint
    bills per record (or per

    call), so individual and consolidated count separately. A tax id always
    resolves to a single record

    (`statementBasis`, individual by default): a company is billed twice only
    when both of its

    companyIds are passed. A market call is priced per call, whatever the size
    of its set: omitting

    `filters` and `seedId`, or sending `filters: {}`, is the whole of Italy, at
    the same price.

    notFound entries are never billed, and neither is any error.
servers:
  - url: https://api.syrto.ai
security: []
tags:
  - name: Company data
    description: Identity, risk flags, state aid and branches of known companies.
  - name: Governance
    description: Ownership, officers, beneficial owners and group.
  - name: Financials
    description: Statement items, reclassified statements, indices and spider graph.
  - name: Composite
    description: Comparable companies.
  - name: Search
    description: The companies of a filtered set, row by row.
  - name: Market
    description: Aggregates over a filtered set.
  - name: Catalog
    description: Free reference data.
paths:
  /companies/{id}/similar:
    get:
      tags:
        - Composite
      summary: >-
        Ten comparable companies, by activity description, revenue band and
        area.
      description: >-
        Semantic search on the seed's activity description within a revenue band
        and an area, best match first; fewer than ten when fewer reach a 0.7
        similarity. Price: 150 credits. 404, never billed, when no comparable is
        found.
      operationId: company-similar
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 100
            description: >-
              A companyId (Syrto id of one statement record, starts with `Zm86`)
              or a tax id (11-digit partita IVA or 16-character codice fiscale).
              A tax id resolves to the record selected by `statementBasis`.
            example: '02579690039'
          required: true
          description: >-
            A companyId (Syrto id of one statement record, starts with `Zm86`)
            or a tax id (11-digit partita IVA or 16-character codice fiscale). A
            tax id resolves to the record selected by `statementBasis`.
          name: id
          in: path
        - schema:
            type:
              - number
              - 'null'
            minimum: 0
            description: 'EUR. Default: the seed''s revenue - 30%.'
          required: false
          description: 'EUR. Default: the seed''s revenue - 30%.'
          name: revenueMin
          in: query
        - schema:
            type:
              - number
              - 'null'
            minimum: 0
            description: 'EUR. Default: the seed''s revenue + 30%.'
          required: false
          description: 'EUR. Default: the seed''s revenue + 30%.'
          name: revenueMax
          in: query
        - schema:
            type: array
            items:
              type: string
            minItems: 1
            maxItems: 20
            description: >-
              NUTS codes. Default: the seed's macro area for size XS/S/M, all
              Italy for L.
          required: false
          description: >-
            NUTS codes. Default: the seed's macro area for size XS/S/M, all
            Italy for L.
          style: form
          explode: false
          name: geography
          in: query
        - schema:
            type: integer
            minimum: 2015
            maximum: 2100
            description: >-
              Financial year (2015-2100). Omitted: the latest filed statement.
              Forecast years are never returned.
          required: false
          description: >-
            Financial year (2015-2100). Omitted: the latest filed statement.
            Forecast years are never returned.
          name: year
          in: query
        - schema:
            type: string
            enum:
              - it
              - en
            description: >-
              Language of metric names, labels and descriptions (never of field
              names or slugs). Omitted: the account's default.
          required: false
          description: >-
            Language of metric names, labels and descriptions (never of field
            names or slugs). Omitted: the account's default.
          name: language
          in: query
      responses:
        '200':
          description: >-
            Ten comparable companies, by activity description, revenue band and
            area.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/SimilarCompanies'
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
                required:
                  - data
                  - meta
        '401':
          description: missing_api_key | invalid_api_key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: credits_exhausted | limit_reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: client_not_configured | not_entitled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: unknown_endpoint | not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: invalid_params
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate_limited
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Neither a 429 nor a 504 is
                billed. A 504 whose query had reached the data service leaves it
                running, and its answer is cached, so the same call after this
                delay is usually fast.
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: upstream_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: auth_unavailable | entitlement_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '504':
          description: upstream_timeout
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Neither a 429 nor a 504 is
                billed. A 504 whose query had reached the data service leaves it
                running, and its answer is cached, so the same call after this
                delay is usually fast.
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    SimilarCompanies:
      type: object
      properties:
        seedCompanyId:
          type: string
        year:
          type: integer
          description: The seed's reference year.
        revenueRangeApplied:
          $ref: '#/components/schemas/RevenueRange'
        geographyApplied:
          type: array
          items:
            type: string
          description: NUTS codes; empty = Italy.
        resultsCount:
          type: integer
          minimum: 0
          maximum: 10
        results:
          type: array
          items:
            $ref: '#/components/schemas/SimilarCompany'
          maxItems: 10
          description: >-
            Best match first. The seed and its twin statement record are
            excluded.
      required:
        - seedCompanyId
        - year
        - revenueRangeApplied
        - geographyApplied
        - resultsCount
        - results
    ResponseMeta:
      type: object
      properties:
        requestId:
          type: string
        endpoint:
          type: string
        usage:
          $ref: '#/components/schemas/Usage'
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/Warning'
          description: Empty when there are none.
      required:
        - requestId
        - endpoint
        - usage
        - warnings
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - missing_api_key
                - invalid_api_key
                - credits_exhausted
                - limit_reached
                - client_not_configured
                - not_entitled
                - unknown_endpoint
                - not_found
                - payload_too_large
                - unsupported_media_type
                - invalid_params
                - rate_limited
                - internal_error
                - upstream_error
                - auth_unavailable
                - entitlement_unavailable
                - upstream_timeout
            message:
              type: string
            requestId:
              type: string
            details:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                  message:
                    type: string
                required:
                  - path
                  - message
          required:
            - code
            - message
            - requestId
      required:
        - error
    RevenueRange:
      type: object
      properties:
        min:
          type:
            - number
            - 'null'
        max:
          type:
            - number
            - 'null'
      required:
        - min
        - max
    SimilarCompany:
      allOf:
        - $ref: '#/components/schemas/CompanyHeader'
        - type: object
          properties:
            matchScore:
              type: number
              minimum: 0
              maximum: 1
              description: >-
                Similarity of the activity description; the tail of the list
                degrades.
            activityOverview:
              type:
                - string
                - 'null'
            naceClass:
              type:
                - string
                - 'null'
            nuts3:
              type:
                - string
                - 'null'
            year:
              type: integer
              description: The comparable's own statement year.
            financialStatementDate:
              type:
                - string
                - 'null'
              format: date
              description: >-
                Date of the financial statement the figures come from: the
                financial year end it is made up to (data di chiusura
                dell'esercizio - 31 December for most companies, 30 June for a
                club closing in June). Cite it when reporting a discrepancy.
            revenuesFromSalesAndServices:
              type:
                - number
                - 'null'
            ebitdaMargin:
              type:
                - number
                - 'null'
            ebitMargin:
              type:
                - number
                - 'null'
            employeeCount:
              type:
                - integer
                - 'null'
            revenueCagr3Years:
              type:
                - number
                - 'null'
          required:
            - matchScore
            - activityOverview
            - naceClass
            - nuts3
            - year
            - financialStatementDate
            - revenuesFromSalesAndServices
            - ebitdaMargin
            - ebitMargin
            - employeeCount
            - revenueCagr3Years
    Usage:
      type: object
      properties:
        quantity:
          type: number
        unit:
          type: string
      required:
        - quantity
        - unit
    Warning:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
    CompanyHeader:
      type: object
      properties:
        companyId:
          type: string
          description: >-
            Syrto id of this statement record. Individual and consolidated
            differ.
        legalName:
          type:
            - string
            - 'null'
        taxId:
          type:
            - string
            - 'null'
          description: Codice fiscale / partita IVA.
        consolidated:
          type: boolean
          description: Whether these figures are the consolidated (group) statement.
      required:
        - companyId
        - legalName
        - taxId
        - consolidated
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Org-scoped WorkOS API key (sk_...), sent as `Authorization: Bearer
        <key>`. Admins create and revoke keys in the Syrto dashboard:
        https://dashboard.syrto.ai/api-keys

````

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