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

# Find a company across countries from its name

> Takes what you know about a company in one free-text `query` (the name plus a city, a country, a registration number, a website…) and returns candidates across the countries Topograph covers, best first, each with a registration number you can pass to `/v2/company`, a match strength and an explanation of the evidence.

The search is agentic and bounded: it reads the legal form and any address, checks Topograph's index, asks the web when the name and that data are not enough, confirms in the most likely registers (US states included), and stops as soon as one candidate is a strong match. At most 15 live and web searches, at most 100 seconds.

**Countries.** `countries` limits the search to some countries: `["US"]` searches every US state and nothing else, `["US-DE", "US-NY"]` two states, `["CA"]` every Canadian jurisdiction (the federal register `CA-FED` and the provinces and territories, `CA-ON`, `CA-QC`…), `["DE", "AT", "CH"]` three countries. Nothing outside them is searched or returned.

**Status.** `resolved`: one strong match, the candidate with `selected: true`, which you can use without a person checking. `ambiguous`: several plausible candidates (the same name in two countries, two namesakes in one register, a US company whose state is not established), all returned with their evidence. `not_found`: nothing acceptable; `reason` says why, and `likelyCountryCode` names the country the evidence pointed to even when Topograph does not cover it or it is outside `countries`.

**Company status.** A candidate's `isActive` is indicative only and may be out of date; read `company.status` from `/v2/company` before relying on it.

**Alpha.** The request and response shapes may still change.

**Billing.** A search is billed only when it succeeds: `status: resolved`, one good candidate. Ambiguous and not-found searches, inputs rejected as not a legal entity, failures and timeouts are not billed. `usage.priceCents` shows what was charged; the price is on the pricing page.

**Streaming.** With `stream: true` and `Accept: text/event-stream`, the endpoint emits `progress` events (what the search is doing right now, and the candidates found so far), then one `complete` event with the final response, or an `error` event.



## OpenAPI

````yaml post /v2/search/global
openapi: 3.0.0
info:
  title: Topograph
  description: The Topograph API
  version: '0.1'
  contact: {}
servers:
  - url: https://api.topograph.co
security:
  - x-api-key: []
tags: []
paths:
  /v2/search/global:
    post:
      tags:
        - Search
      summary: Find a company across countries from its name
      description: >-
        Takes what you know about a company in one free-text `query` (the name
        plus a city, a country, a registration number, a website…) and returns
        candidates across the countries Topograph covers, best first, each with
        a registration number you can pass to `/v2/company`, a match strength
        and an explanation of the evidence.


        The search is agentic and bounded: it reads the legal form and any
        address, checks Topograph's index, asks the web when the name and that
        data are not enough, confirms in the most likely registers (US states
        included), and stops as soon as one candidate is a strong match. At most
        15 live and web searches, at most 100 seconds.


        **Countries.** `countries` limits the search to some countries: `["US"]`
        searches every US state and nothing else, `["US-DE", "US-NY"]` two
        states, `["CA"]` every Canadian jurisdiction (the federal register
        `CA-FED` and the provinces and territories, `CA-ON`, `CA-QC`…), `["DE",
        "AT", "CH"]` three countries. Nothing outside them is searched or
        returned.


        **Status.** `resolved`: one strong match, the candidate with `selected:
        true`, which you can use without a person checking. `ambiguous`: several
        plausible candidates (the same name in two countries, two namesakes in
        one register, a US company whose state is not established), all returned
        with their evidence. `not_found`: nothing acceptable; `reason` says why,
        and `likelyCountryCode` names the country the evidence pointed to even
        when Topograph does not cover it or it is outside `countries`.


        **Company status.** A candidate's `isActive` is indicative only and may
        be out of date; read `company.status` from `/v2/company` before relying
        on it.


        **Alpha.** The request and response shapes may still change.


        **Billing.** A search is billed only when it succeeds: `status:
        resolved`, one good candidate. Ambiguous and not-found searches, inputs
        rejected as not a legal entity, failures and timeouts are not billed.
        `usage.priceCents` shows what was charged; the price is on the pricing
        page.


        **Streaming.** With `stream: true` and `Accept: text/event-stream`, the
        endpoint emits `progress` events (what the search is doing right now,
        and the candidates found so far), then one `complete` event with the
        final response, or an `error` event.
      operationId: GlobalSearchController_globalSearch_v2
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalSearchRequestDto'
      responses:
        '200':
          description: >-
            The candidates and their explanations (JSON), or the SSE stream when
            `stream` is true.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalSearchResponse'
            text/event-stream:
              schema:
                type: string
                description: >-
                  Named events: `progress` (GlobalSearchProgress), `complete`
                  (GlobalSearchResponse), `error`.
                example: >-
                  event: progress

                  data: {"isComplete":false,"revision":3,"activity":["Asking the
                  register in Austria"],"candidates":[]}


                  event: complete

                  data: {"id":"global-search-…","status":"resolved",...}
        '400':
          description: >-
            Invalid request (empty query, empty `countries`, or a code in
            `countries` that is not a country).
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 400
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: invalid_request
                      message:
                        type: string
                        example: query cannot be empty
        '402':
          description: Not enough credits for a run.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 402
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: insufficient_funds
                      message:
                        type: string
                        example: Not enough credits for a global search.
        '429':
          description: >-
            Fair-use limit: too many runs this minute, or too many running at
            once, for this account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 429
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: rate_limited
                      message:
                        type: string
                        example: >-
                          Too many global searches this minute for this account.
                          Retry shortly.
        '503':
          description: The run exceeded its time limit.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 503
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: search_timeout
                      message:
                        type: string
                        example: The global search took too long to complete.
      security:
        - x-api-key: []
components:
  schemas:
    GlobalSearchRequestDto:
      type: object
      properties:
        query:
          type: string
          description: >-
            What you know about the company, in one string: the name first, then
            anything else, separated by commas ("Bamberger GmbH, Wien", "MFG
            Investments EOOD, from a UK filing", "Altria Group Inc., Richmond
            VA, altria.com", or an LEI alone). The name, the address, an
            identifier, a website and the countries it names are read out of it
            for you, and returned in `query`.
          example: Bamberger GmbH, Wien
        countries:
          description: >-
            Search only these countries: Topograph country codes, `US-DE` for
            one US state, `US` for every US state, `CA-FED` for the Canadian
            federal register, `CA-ON` for one Canadian province or territory,
            `CA` for every Canadian jurisdiction. Nothing outside them is
            searched or returned. Unlike a country named in `query`, which only
            says where you think the company is, this is a filter. Omit it to
            search every country.
          example:
            - US
          type: array
          items:
            type: string
        activeOnly:
          type: boolean
          description: >-
            Leave out companies the search sees as inactive. It filters on the
            same indicative status as `isActive`: a company whose status is
            unknown is kept, so a candidate is not proof that the company is
            active.
          example: false
        strictActiveOnly:
          type: boolean
          description: >-
            Return only candidates explicitly reported as active, excluding
            unknown statuses. Implies activeOnly. Status remains indicative and
            may come from a periodic snapshot.
          example: false
        stream:
          type: boolean
          description: >-
            Streaming mode: Server-Sent Events with `progress` events (the steps
            so far, and the candidates found so far), one `complete` event
            carrying the final response, or an `error` event. Set Accept to
            `text/event-stream`.
          example: false
      required:
        - query
    GlobalSearchResponse:
      type: object
      properties:
        id:
          type: string
          description: Identifies this search. Quote it when you contact support about it.
          example: global-search-1791216000000-k3x9qa
        status:
          description: >-
            `resolved`: one strong match, the `selected` candidate. `ambiguous`:
            several plausible candidates (including namesakes in one register
            the evidence cannot tell apart), or one weak one. `not_found`:
            nothing acceptable; see `reason`.
          allOf:
            - $ref: '#/components/schemas/GlobalSearchStatus'
        reason:
          description: Why the search ended `not_found`, or why it stopped early.
          allOf:
            - $ref: '#/components/schemas/GlobalSearchReason'
        summary:
          type: string
          description: The outcome in one sentence.
          example: 'Found in Austria: Bamberger GmbH (370916s).'
        likelyCountryCode:
          type: string
          description: >-
            The country the evidence points to, even when the company could not
            be confirmed, Topograph does not cover its register, or it is
            outside `countries`.
          example: KY
        query:
          description: What was understood from your input.
          allOf:
            - $ref: '#/components/schemas/GlobalSearchQuery'
        candidates:
          description: >-
            Candidates, best first. Empty on `not_found`. On `resolved`, the
            first one is `selected`.
          type: array
          items:
            $ref: '#/components/schemas/GlobalSearchCandidate'
        usage:
          $ref: '#/components/schemas/GlobalSearchUsage'
      required:
        - id
        - status
        - summary
        - query
        - candidates
        - usage
    GlobalSearchStatus:
      type: string
      enum:
        - resolved
        - ambiguous
        - not_found
      description: >-
        `resolved`: one strong match, the `selected` candidate. `ambiguous`:
        several plausible candidates (including namesakes in one register the
        evidence cannot tell apart), or one weak one. `not_found`: nothing
        acceptable; see `reason`.
    GlobalSearchReason:
      type: string
      enum:
        - not_a_legal_entity
        - no_country_signal
        - country_not_covered
        - no_register_match
        - search_limit_reached
        - timeout
        - outside_countries
      description: Why the search ended `not_found`, or why it stopped early.
    GlobalSearchQuery:
      type: object
      properties:
        name:
          type: string
          description: The company name read out of your query.
          example: Bamberger GmbH
        latinName:
          type: string
          description: Latin spelling, when the name is written in another script.
        legalForm:
          type: string
          description: The legal form found in the name.
          example: GmbH
        address:
          type: string
          description: The address read out of your query.
          example: Wien
        identifier:
          type: string
          description: A registration, VAT or LEI number read out of your query.
          example: FN 370916s
        website:
          type: string
          description: A website read out of your query.
          example: altria.com
        mentionedCountries:
          description: >-
            Countries your query names as where the company is ("Metinvest B.V.,
            Netherlands"). A belief the search weighs, not a filter.
          example:
            - NL
          type: array
          items:
            type: string
        sourceCountry:
          type: string
          description: >-
            The country of the filing the name came from ("from a UK filing"). A
            weak signal: a holder's stated domicile is often not where it is
            incorporated.
          example: GB
      required:
        - name
    GlobalSearchCandidate:
      type: object
      properties:
        selected:
          type: boolean
          description: >-
            `true` on the company itself, when the search can stand behind one
            candidate: a strong match with no plausible rival. At most one
            candidate is selected, always the first, and only when `status` is
            `resolved`. Use it without a person checking; when no candidate is
            selected, show the candidates to a person.
        match:
          description: >-
            `strong`: this is the company, as far as the evidence goes.
            `possible`: a plausible candidate that needs a second look. Several
            candidates can be `strong` (the same name in two countries) while
            none is `selected`.
          allOf:
            - $ref: '#/components/schemas/GlobalSearchMatchStrength'
        countryCode:
          type: string
          description: >-
            Topograph country code; US states as `US-DE`. Use it with
            `/v2/company`.
          example: AT
        id:
          type: string
          description: Registration number in that register, as `/v2/company` expects it.
          example: 370916s
        legalName:
          type: string
          example: Bamberger GmbH
        legalNameInEnglish:
          type: string
        companyNameTransliterations:
          type: array
          items:
            type: string
        address:
          $ref: '#/components/schemas/AddressDTO'
        isActive:
          type: boolean
          description: >-
            Indicative only: whether the company looked active when it was
            searched, absent when unknown. It comes from a register's search
            results or from Topograph's company data, which can lag the
            register, so it may be out of date. For the current status, request
            `company` from `/v2/company` and read `company.status`.
        explanation:
          $ref: '#/components/schemas/GlobalSearchExplanation'
      required:
        - selected
        - match
        - countryCode
        - id
        - legalName
        - explanation
    GlobalSearchUsage:
      type: object
      properties:
        priceCents:
          type: number
          description: >-
            What this search was charged, in credit cents. 0 unless `status` is
            `resolved`.
        durationMs:
          type: number
      required:
        - priceCents
        - durationMs
    GlobalSearchMatchStrength:
      type: string
      enum:
        - strong
        - possible
      description: >-
        `strong`: this is the company, as far as the evidence goes. `possible`:
        a plausible candidate that needs a second look. Several candidates can
        be `strong` (the same name in two countries) while none is `selected`.
    AddressDTO:
      type: object
      properties:
        addressLine1:
          type: string
          description: >-
            First line of the street address, as the register publishes it.
            Registers differ in how they order the building number, building
            name and street, and in whether they separate them; the country
            guide documents the mapping for each country.
          example: 10 rue de la Fraternité
        addressLine2:
          type: string
          description: >-
            Second line of the street address, as the register publishes it: for
            example a building, an estate, a district or, when the register has
            no separate town field, the town.
          example: Bâtiment B
        city:
          type: string
          description: >-
            City or town of the address. Absent when the register publishes no
            separate town field.
          example: Bagnolet
        postalCode:
          type: string
          description: Postal code of the address
          example: '93170'
        region:
          type: string
          description: >-
            County, district or département, usually a subdivision below
            `state`, as the register publishes it.
          example: Seine-Saint-Denis
        countryCode:
          type: string
          description: Country of the address using ISO 3166-1 alpha-2 country code
          example: FR
        poBox:
          type: string
          description: Post Office Box number
          example: PO Box 123
        careOf:
          type: string
          description: Care of (c/o) recipient
          example: c/o John Doe
        state:
          type: string
          description: >-
            State, province or other first-level subdivision of the country: for
            example a US state, a German Land, a French région, or the UK nation
            (England, Scotland, Wales, Northern Ireland).
          example: Île-de-France
        latitude:
          type: number
          description: Latitude coordinate
          example: 59.9139
        longitude:
          type: number
          description: Longitude coordinate
          example: 10.7522
    GlobalSearchExplanation:
      type: object
      properties:
        summary:
          type: string
          description: Why this candidate matched, in one or two sentences.
        reasons:
          description: The reasons, one per line.
          type: array
          items:
            $ref: '#/components/schemas/GlobalSearchMatchReason'
      required:
        - summary
        - reasons
    GlobalSearchMatchReason:
      type: object
      properties:
        kind:
          description: What kind of reason this is.
          allOf:
            - $ref: '#/components/schemas/GlobalSearchMatchReasonKind'
        text:
          type: string
          description: The reason as a sentence you can show a user.
          example: The register in Austria lists it under exactly that name
        countryCode:
          type: string
          description: The country the reason is about.
          example: AT
        url:
          type: string
          description: '`public_source` only: the page that states it.'
          example: >-
            https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000764180
      required:
        - kind
        - text
    GlobalSearchMatchReasonKind:
      type: string
      enum:
        - legal_form
        - address
        - country_hint
        - source_filing
        - website
        - identifier
        - company_data
        - public_source
        - register_match
        - address_match
        - distance
        - other_registration
      description: What kind of reason this is.
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key

````

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