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

# Get a company's trade profile and overview

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

## 请求规范

* **方法与路径:** GET /apis/v1/trade/companies/\{id}
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/trade/companies/{id}`
* **id:** path; 必填

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/trade.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "trade.companies.id",
  "method": "GET",
  "path": "/apis/v1/trade/companies/{id}",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "examples": {
        "default": {
          "value": "co_g7sfqjqgfxj3"
        },
        "minimal": {
          "value": "co_g7sfqjqgfxj3"
        }
      },
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "maxLength": 40,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9_-]{1,40}$",
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

公开参考价格：每次成功请求 \$0.04 USD。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/trade.json GET /apis/v1/trade/companies/{id}
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/{id}:
    get:
      tags:
        - Global Trade & Customs
      summary: Get a company's trade profile and overview
      description: Global Trade & Customs API (trade.companies.id)
      operationId: trade.companies.id
      parameters:
        - examples:
            default:
              value: co_g7sfqjqgfxj3
            minimal:
              value: co_g7sfqjqgfxj3
          in: path
          name: id
          required: true
          schema:
            maxLength: 40
            minLength: 1
            pattern: ^[A-Za-z0-9_-]{1,40}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    additionalProperties: false
                    description: Company trade profile and overview.
                    properties:
                      address:
                        description: Address as on its records.
                        type:
                          - string
                          - 'null'
                      channels:
                        additionalProperties: false
                        description: >-
                          Ways to reach the company that it publishes itself.
                          People are in `contacts`.
                        properties:
                          emails:
                            description: Shared addresses such as `info@` and `sales@`.
                            items:
                              type: string
                            type: array
                          messaging:
                            description: >-
                              WhatsApp, WeChat, Zalo, LINE, Skype and Telegram
                              contacts the company gives.
                            items:
                              additionalProperties: false
                              properties:
                                app:
                                  enum:
                                    - whatsapp
                                    - wechat
                                    - zalo
                                    - line
                                    - skype
                                    - telegram
                                  type: string
                                value:
                                  description: >-
                                    A number in E.164 for WhatsApp, else the ID
                                    or number as printed.
                                  type: string
                              required:
                                - app
                                - value
                              type: object
                            type: array
                          phones:
                            description: >-
                              Phone numbers the company publishes: in E.164,
                              such as `+4952112340`, when the country can be
                              told, else as printed. Fax numbers are left out.
                            items:
                              type: string
                            type: array
                          social:
                            additionalProperties: false
                            description: >-
                              Links to its public pages. Null where none is
                              known.
                            properties:
                              facebook:
                                type:
                                  - string
                                  - 'null'
                              instagram:
                                type:
                                  - string
                                  - 'null'
                              linkedin:
                                type:
                                  - string
                                  - 'null'
                              pinterest:
                                type:
                                  - string
                                  - 'null'
                              tiktok:
                                type:
                                  - string
                                  - 'null'
                              twitter:
                                type:
                                  - string
                                  - 'null'
                              youtube:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - linkedin
                              - facebook
                              - twitter
                              - instagram
                              - youtube
                              - tiktok
                              - pinterest
                            type: object
                        required:
                          - emails
                          - phones
                          - messaging
                          - social
                        type: object
                      contacts:
                        description: >-
                          Always null on profile lookup; use GET
                          /apis/v1/trade/companies/{id}/contacts.
                        type: 'null'
                      country:
                        anyOf:
                          - description: ISO 3166-1 alpha-2 country code, such as `US`.
                            type: string
                          - type: 'null'
                        description: >-
                          Where the company is: the country its address names,
                          otherwise the country of its records. It can differ
                          from the `country` of search results, which is where
                          its goods were declared.
                      id:
                        description: Company ID, such as `co_8f3k2m9x4p1q`.
                        type: string
                      name:
                        description: Name as written on shipping documents.
                        type: string
                      partners:
                        description: >-
                          Always null on profile lookup; use GET
                          /apis/v1/trade/companies/{id}/partners.
                        type: 'null'
                      recent_shipments:
                        description: >-
                          Always null on profile lookup; use GET
                          /apis/v1/trade/companies/{id}/shipments.
                        type: 'null'
                      trade:
                        anyOf:
                          - additionalProperties: false
                            properties:
                              buyers:
                                anyOf:
                                  - type: integer
                                  - type: 'null'
                                description: Number of distinct buyers.
                              hs_codes:
                                description: HS codes it trades, digits only.
                                items:
                                  type: string
                                type: array
                              last_shipment:
                                description: Date of its latest record, `YYYY-MM-DD`.
                                type:
                                  - string
                                  - 'null'
                              shipments:
                                anyOf:
                                  - type: integer
                                  - type: 'null'
                                description: All shipment records of the company.
                              suppliers:
                                anyOf:
                                  - type: integer
                                  - type: 'null'
                                description: Number of distinct suppliers.
                            required:
                              - shipments
                              - suppliers
                              - buyers
                              - hs_codes
                              - last_shipment
                            type: object
                          - type: 'null'
                        description: Null when no trade summary is known yet.
                      type:
                        anyOf:
                          - enum:
                              - importer
                              - exporter
                              - both
                            type: string
                          - type: 'null'
                        description: Whether it imports, exports or both, by its records.
                      website:
                        description: >-
                          Bare domain, such as `example.com`. Null when not
                          known.
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - name
                      - country
                      - type
                      - website
                      - address
                      - channels
                      - trade
                    type: object
                  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/co_g7sfqjqgfxj3 \
              --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.