> ## 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

# Look up a trade company by name or domain

> Global Trade & Customs API (trade.companies.lookup)

## Request contract

* **Method and path:** GET /apis/v1/trade/companies/lookup
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/trade/companies/lookup`
* **country:** query; optional
* **limit:** query; optional
* **q:** query; required

[Complete OpenAPI definition](https://aisa.one/docs/openapi/trade.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "trade.companies.lookup",
  "method": "GET",
  "path": "/apis/v1/trade/companies/lookup",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "examples": {
        "default": {
          "value": "US"
        },
        "minimal": {
          "value": "US"
        }
      },
      "in": "query",
      "name": "country",
      "required": false,
      "schema": {
        "maxLength": 80,
        "minLength": 2,
        "type": "string"
      }
    },
    {
      "examples": {
        "default": {
          "value": 1
        },
        "minimal": {
          "value": 1
        }
      },
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
        "default": 5,
        "maximum": 10,
        "minimum": 1,
        "type": "integer"
      }
    },
    {
      "examples": {
        "default": {
          "value": "Walmart"
        },
        "minimal": {
          "value": "Walmart"
        }
      },
      "in": "query",
      "name": "q",
      "required": true,
      "schema": {
        "maxLength": 200,
        "minLength": 2,
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.02 USD per successful request. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/trade.json GET /apis/v1/trade/companies/lookup
openapi: 3.1.0
info:
  description: ''
  title: Global Trade & Customs
  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:
    trade:
      description: ''
      title: Global Trade & Customs
      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: 04609443cc30a0604ea1e6aabafe6ce20e6610145902fdad90731566707b2b23
        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/trade/companies/lookup
    - /apis/v1/trade/companies/search
    - /apis/v1/trade/companies/{id}
    - /apis/v1/trade/companies/{id}/contacts
    - /apis/v1/trade/companies/{id}/partners
    - /apis/v1/trade/companies/{id}/shipments
    - /apis/v1/trade/coverage
    - /apis/v1/trade/hs-codes
    - /apis/v1/trade/leads/find
    - /apis/v1/trade/markets/brief
    - /apis/v1/trade/shipments/search
    - /apis/v1/trade/stats/query
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:2701c7a014a31cae225348fbb39fce0f5996d7cf9e0f2480b35662ee4f9b1b6a
    facts_hash: 04609443cc30a0604ea1e6aabafe6ce20e6610145902fdad90731566707b2b23
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: trade
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/trade/companies/lookup:
    get:
      tags:
        - Global Trade & Customs
      summary: Look up a trade company by name or domain
      description: Global Trade & Customs API (trade.companies.lookup)
      operationId: trade.companies.lookup
      parameters:
        - examples:
            default:
              value: US
            minimal:
              value: US
          in: query
          name: country
          required: false
          schema:
            maxLength: 80
            minLength: 2
            type: string
        - examples:
            default:
              value: 1
            minimal:
              value: 1
          in: query
          name: limit
          required: false
          schema:
            default: 5
            maximum: 10
            minimum: 1
            type: integer
        - examples:
            default:
              value: Walmart
            minimal:
              value: Walmart
          in: query
          name: q
          required: true
          schema:
            maxLength: 200
            minLength: 2
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    description: The candidates, best match first.
                    items:
                      additionalProperties: false
                      properties:
                        country:
                          anyOf:
                            - description: ISO 3166-1 alpha-2 country code, such as `US`.
                              type: string
                            - type: 'null'
                          description: >-
                            Where the company is, from its address when one is
                            on file, otherwise the country of its records.
                        id:
                          description: Company ID, such as `co_8f3k2m9x4p1q`.
                          type: string
                        last_shipment:
                          description: Date of its latest record, `YYYY-MM-DD`.
                          type:
                            - string
                            - 'null'
                        name:
                          description: Name as written on shipping documents.
                          type: string
                        shipments:
                          anyOf:
                            - type: integer
                            - type: 'null'
                          description: All shipment records of the company, when known.
                        website:
                          description: Bare domain, such as `example.com`. Often null.
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - name
                        - country
                        - website
                        - shipments
                        - last_shipment
                      type: object
                    type: array
                  notice:
                    description: >-
                      A plain sentence when there is something to know about
                      this result: why a part is missing, or what to try next.
                      Null otherwise.
                    type:
                      - string
                      - 'null'
                  query:
                    additionalProperties: {}
                    description: >-
                      The request as it was understood: country names as codes,
                      the default dates filled in.
                    propertyNames:
                      type: string
                    type: object
                required:
                  - data
                  - query
                  - notice
                type: object
          description: Normalized successful response
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request GET \
              --url 'https://api.aisa.one/apis/v1/trade/companies/lookup?country=US&limit=1&q=Walmart' \
              --header 'Authorization: Bearer <token>'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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