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

# Brief product import demand, search interest, and market sizing across countries

> Global Trade & Customs API (trade.markets.brief)

## Request contract

* **Method and path:** POST /apis/v1/trade/markets/brief
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/trade/markets/brief`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "trade.markets.brief",
  "method": "POST",
  "path": "/apis/v1/trade/markets/brief",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "default": {
            "value": {
              "countries": [
                "US"
              ],
              "hs_code": "847130",
              "product": "laptop",
              "sections": [
                "official",
                "search",
                "marketplace"
              ]
            }
          },
          "minimal": {
            "value": {
              "countries": [
                "US"
              ],
              "hs_code": "847130",
              "product": "laptop",
              "sections": [
                "official",
                "search",
                "marketplace"
              ]
            }
          }
        },
        "schema": {
          "additionalProperties": false,
          "properties": {
            "countries": {
              "items": {
                "type": "string"
              },
              "maxItems": 10,
              "minItems": 1,
              "type": "array"
            },
            "hs_code": {
              "maxLength": 10,
              "minLength": 6,
              "pattern": "^[0-9]{6,10}$",
              "type": "string"
            },
            "marketplace_query": {
              "maxLength": 100,
              "minLength": 2,
              "type": "string"
            },
            "product": {
              "maxLength": 80,
              "minLength": 2,
              "type": "string"
            },
            "sections": {
              "default": [
                "official",
                "search",
                "marketplace"
              ],
              "items": {
                "enum": [
                  "estimates",
                  "marketplace",
                  "official",
                  "search",
                  "shipments"
                ],
                "type": "string"
              },
              "maxItems": 5,
              "minItems": 1,
              "type": "array"
            },
            "terms": {
              "items": {
                "type": "string"
              },
              "maxItems": 30,
              "minItems": 1,
              "type": "array"
            }
          },
          "required": [
            "countries",
            "product"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Published reference price: \$0.2 USD per billable unit. Default request estimate: \$0.2 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/trade.json POST /apis/v1/trade/markets/brief
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/markets/brief:
    post:
      tags:
        - Global Trade & Customs
      summary: >-
        Brief product import demand, search interest, and market sizing across
        countries
      description: Global Trade & Customs API (trade.markets.brief)
      operationId: trade.markets.brief
      requestBody:
        content:
          application/json:
            examples:
              default:
                value:
                  countries:
                    - US
                  hs_code: '847130'
                  product: laptop
                  sections:
                    - official
                    - search
                    - marketplace
              minimal:
                value:
                  countries:
                    - US
                  hs_code: '847130'
                  product: laptop
                  sections:
                    - official
                    - search
                    - marketplace
            schema:
              additionalProperties: false
              properties:
                countries:
                  items:
                    type: string
                  maxItems: 10
                  minItems: 1
                  type: array
                hs_code:
                  maxLength: 10
                  minLength: 6
                  pattern: ^[0-9]{6,10}$
                  type: string
                marketplace_query:
                  maxLength: 100
                  minLength: 2
                  type: string
                product:
                  maxLength: 80
                  minLength: 2
                  type: string
                sections:
                  default:
                    - official
                    - search
                    - marketplace
                  items:
                    enum:
                      - estimates
                      - marketplace
                      - official
                      - search
                      - shipments
                    type: string
                  maxItems: 5
                  minItems: 1
                  type: array
                terms:
                  items:
                    type: string
                  maxItems: 30
                  minItems: 1
                  type: array
              required:
                - countries
                - product
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    additionalProperties: false
                    description: The brief, one entry for each country.
                    properties:
                      countries:
                        description: One entry for each country, in the order asked.
                        items:
                          additionalProperties: false
                          properties:
                            country:
                              description: ISO code.
                              type: string
                            estimates:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    agreement:
                                      anyOf:
                                        - enum:
                                            - close
                                            - conflict
                                          type: string
                                        - type: 'null'
                                      description: >-
                                        Of the figures for the `same` market
                                        that are not `too_high` or `too_low`:
                                        `close` when the largest is at most 3
                                        times the smallest, `conflict` when it
                                        is more. Null with fewer than two.
                                    exports_usd:
                                      description: >-
                                        A year of its official exports of the HS
                                        code, the larger of the same two, asked
                                        for only when a size is far from the
                                        imports, to tell whether most imports
                                        stay. Null otherwise, or when not known.
                                      type:
                                        - number
                                        - 'null'
                                    figures:
                                      description: >-
                                        Market sizes that market research pages
                                        publish for the product in the country,
                                        of the last 5 years, most recent first.
                                        Each is unverified: one page's number,
                                        which `check` holds against trade.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          check:
                                            description: >-
                                              Against the country's trade.
                                              `consistent`: between a fifth of its
                                              imports and 10 times them, or a `wider`
                                              market above that, or a `narrower` one
                                              below. `too_high` or `too_low`: outside
                                              that, in a country that exports under
                                              half of what it imports, so most imports
                                              stay and its market cannot be far from
                                              them. `unchecked`: outside that where
                                              the country exports more, so much may be
                                              made there or passed on, or where its
                                              trade or the value is not known.
                                            enum:
                                              - consistent
                                              - too_high
                                              - too_low
                                              - unchecked
                                            type: string
                                          figure:
                                            description: >-
                                              The size as the page writes it, such as
                                              `USD 101.25 million`.
                                            type: string
                                          market:
                                            description: >-
                                              The market it is the size of, as the
                                              page names it.
                                            type: string
                                          publisher:
                                            description: >-
                                              Who published the size, such as a
                                              research firm. Null when the page does
                                              not say.
                                            type:
                                              - string
                                              - 'null'
                                          scope:
                                            anyOf:
                                              - enum:
                                                  - same
                                                  - wider
                                                  - narrower
                                                type: string
                                              - type: 'null'
                                            description: >-
                                              Its market against `product`: `same`, a
                                              `wider` one that includes it, or a
                                              `narrower` part of it. Null when it
                                              cannot be told.
                                          times_imports:
                                            description: >-
                                              `value_usd` over `imports_usd`. Null
                                              without both.
                                            type:
                                              - number
                                              - 'null'
                                          url:
                                            description: The page that gives it.
                                            type: string
                                          value_usd:
                                            description: >-
                                              The size in US dollars, the middle of a
                                              range. Null for a currency we do not
                                              convert.
                                            type:
                                              - number
                                              - 'null'
                                          year:
                                            description: The year the size is for.
                                            type: integer
                                        required:
                                          - figure
                                          - value_usd
                                          - year
                                          - market
                                          - scope
                                          - publisher
                                          - url
                                          - times_imports
                                          - check
                                        type: object
                                      type: array
                                    imports_usd:
                                      description: >-
                                        A year of the country's official imports
                                        of the HS code, which the sizes are held
                                        against: the larger of the latest 12
                                        months and the 12 before, since the
                                        latest months of many countries fill up
                                        late. Null without an HS code or
                                        statistics.
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - figures
                                    - imports_usd
                                    - exports_usd
                                    - agreement
                                  type: object
                                - type: 'null'
                              description: >-
                                Market sizes that web pages publish, held
                                against the country's trade. Null when not asked
                                for, or when none was found.
                            marketplace:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    bought_last_month:
                                      anyOf:
                                        - additionalProperties: false
                                          properties:
                                            at_least:
                                              description: >-
                                                The counts the store prints, added up: a
                                                floor, not a total.
                                              type: integer
                                            listings:
                                              description: >-
                                                How many listings say how many were
                                                bought.
                                              type: integer
                                          required:
                                            - at_least
                                            - listings
                                          type: object
                                        - type: 'null'
                                      description: >-
                                        What the listings of the first page say
                                        about recent sales. Null when none say.
                                    price:
                                      anyOf:
                                        - additionalProperties: false
                                          properties:
                                            currency:
                                              description: ISO 4217 code of the prices.
                                              type: string
                                            left_out:
                                              description: >-
                                                Listings priced under a quarter of the
                                                median of all, left out as likely
                                                accessories or parts.
                                              type: integer
                                            listings:
                                              description: How many listings the prices are from.
                                              type: integer
                                            median:
                                              type: number
                                            median_usd:
                                              description: >-
                                                The median in US dollars: at the peg for
                                                a currency pegged to the dollar,
                                                otherwise at the latest monthly average
                                                rate. Null when no rate is published for
                                                the currency.
                                              type:
                                                - number
                                                - 'null'
                                            p25:
                                              description: >-
                                                A quarter of the listings cost less than
                                                this.
                                              type: number
                                            p75:
                                              description: >-
                                                A quarter of the listings cost more than
                                                this.
                                              type: number
                                          required:
                                            - currency
                                            - median
                                            - p25
                                            - p75
                                            - median_usd
                                            - listings
                                            - left_out
                                          type: object
                                        - type: 'null'
                                      description: >-
                                        The price range of the listings. Null
                                        when fewer than 3 show a price.
                                    query:
                                      description: What the store was searched for.
                                      type: string
                                    read:
                                      description: >-
                                        How many listings of the first page were
                                        read.
                                      type: integer
                                    results:
                                      anyOf:
                                        - type: integer
                                        - type: 'null'
                                      description: >-
                                        How many products the store lists for
                                        the query in all, when it says.
                                    store:
                                      description: >-
                                        The country's store that answered, such
                                        as `amazon.sa`.
                                      type: string
                                    top:
                                      description: >-
                                        Up to 5 listings that sell the most, by
                                        recent sales and then by ratings.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          bought_last_month:
                                            anyOf:
                                              - type: integer
                                              - type: 'null'
                                            description: >-
                                              At least this many were bought in the
                                              past month, as the store says. Null when
                                              it does not.
                                          currency:
                                            description: ISO 4217 code.
                                            type:
                                              - string
                                              - 'null'
                                          price:
                                            description: The price, in `currency`.
                                            type:
                                              - number
                                              - 'null'
                                          ratings:
                                            anyOf:
                                              - type: integer
                                              - type: 'null'
                                            description: How many ratings it has.
                                          title:
                                            type: string
                                          url:
                                            type:
                                              - string
                                              - 'null'
                                        required:
                                          - title
                                          - price
                                          - currency
                                          - ratings
                                          - bought_last_month
                                          - url
                                        type: object
                                      type: array
                                  required:
                                    - store
                                    - query
                                    - results
                                    - read
                                    - price
                                    - bought_last_month
                                    - top
                                  type: object
                                - type: 'null'
                              description: >-
                                What the country's main marketplace sells. Null
                                when not asked for, when the country has no
                                store we read, or when it listed nothing.
                            official:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    basis:
                                      description: >-
                                        `own`: the country's own statistics.
                                        `partners`: what its partners report
                                        about their exports to it, because it
                                        publishes no recent statistics of its
                                        own. Partners that publish nothing are
                                        missing, so it is a lower bound.
                                      enum:
                                        - own
                                        - partners
                                      type: string
                                    by_month:
                                      description: >-
                                        Imports of each published month, oldest
                                        first.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          month:
                                            description: '`YYYY-MM`'
                                            type: string
                                          partial:
                                            description: >-
                                              True while late reports can still add to
                                              it.
                                            type: boolean
                                          value_usd:
                                            type: number
                                        required:
                                          - month
                                          - value_usd
                                        type: object
                                      type: array
                                    change_12m:
                                      description: >-
                                        `imports_12m_usd` over `prior_12m_usd`,
                                        minus 1: `-0.3` is 30% less.
                                      type:
                                        - number
                                        - 'null'
                                    comparable_change_12m:
                                      description: >-
                                        With `stopped_reporting`: the same
                                        change without those partners in either
                                        year, which is the change of the trade
                                        reported all along. Read it instead of
                                        `change_12m`.
                                      type:
                                        - number
                                        - 'null'
                                    imports_12m_usd:
                                      description: >-
                                        Imports of the 12 months up to
                                        `period.until`, in US dollars. A month
                                        in `missing_months` adds nothing.
                                      type: number
                                    missing_months:
                                      description: >-
                                        Months the country published no
                                        statistics for at all: missing, not
                                        months without trade.
                                      items:
                                        description: '`YYYY-MM`'
                                        type: string
                                      type: array
                                    partial_months:
                                      description: >-
                                        How many of the last 12 months are still
                                        filling up as late reports arrive. While
                                        they are, `change_12m` reads lower than
                                        it will be.
                                      type: integer
                                    period:
                                      additionalProperties: false
                                      description: >-
                                        The first and the last month the numbers
                                        cover.
                                      properties:
                                        since:
                                          description: '`YYYY-MM`'
                                          type: string
                                        until:
                                          description: '`YYYY-MM`'
                                          type: string
                                      required:
                                        - since
                                        - until
                                      type: object
                                    prior_12m_usd:
                                      description: >-
                                        Imports of the 12 months before those.
                                        Null when they are not all published, or
                                        a month of either year is missing.
                                      type:
                                        - number
                                        - 'null'
                                    stopped_reporting:
                                      description: >-
                                        With `partners`: partners whose numbers
                                        stop while the others go on, most likely
                                        because they have published nothing
                                        since, or publish late. The months after
                                        look lower than the trade was.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          country:
                                            description: ISO code.
                                            type: string
                                          last_month:
                                            description: The last month with its numbers.
                                            type: string
                                          share:
                                            description: >-
                                              Its part of all imports of `period`, 0
                                              to 1.
                                            type: number
                                        required:
                                          - country
                                          - last_month
                                          - share
                                        type: object
                                      type: array
                                    top_origins:
                                      description: >-
                                        Up to 5 countries the imports come from,
                                        largest first, over `period`.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          country:
                                            description: ISO code.
                                            type: string
                                          share:
                                            description: >-
                                              Its part of all imports of `period`, 0
                                              to 1.
                                            type: number
                                          value_usd:
                                            type: number
                                        required:
                                          - country
                                          - value_usd
                                          - share
                                        type: object
                                      type: array
                                    value_basis:
                                      description: >-
                                        How the values are valued: customs
                                        value, cost-insurance-freight or free on
                                        board.
                                      enum:
                                        - customs
                                        - cif
                                        - fob
                                      type: string
                                  required:
                                    - basis
                                    - value_basis
                                    - period
                                    - imports_12m_usd
                                    - prior_12m_usd
                                    - change_12m
                                    - partial_months
                                    - top_origins
                                    - by_month
                                  type: object
                                - type: 'null'
                              description: >-
                                What the statistics offices publish about the
                                country's imports of the HS code. Null when not
                                asked for, without an HS code, or when nothing
                                is published.
                            search:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    by_month:
                                      description: >-
                                        Searches of each of the last 12 months,
                                        all terms together, oldest first.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          month:
                                            description: '`YYYY-MM`'
                                            type: string
                                          searches:
                                            type: integer
                                        required:
                                          - month
                                          - searches
                                        type: object
                                      type: array
                                    data_through:
                                      description: >-
                                        The last month of the numbers,
                                        `YYYY-MM`.
                                      type: string
                                    history:
                                      anyOf:
                                        - additionalProperties: false
                                          properties:
                                            by_year:
                                              description: Searches of each year, oldest first.
                                              items:
                                                additionalProperties: false
                                                properties:
                                                  complete:
                                                    description: >-
                                                      False when the year has fewer than 12
                                                      months of data.
                                                    type: boolean
                                                  searches:
                                                    type: integer
                                                  year:
                                                    type: integer
                                                required:
                                                  - year
                                                  - searches
                                                  - complete
                                                type: object
                                              type: array
                                            change_12m:
                                              description: >-
                                                Searches of the last 12 months over the
                                                12 before, minus 1: `-0.28` is 28%
                                                fewer. Null without two full years.
                                              type:
                                                - number
                                                - 'null'
                                            terms:
                                              description: >-
                                                The most searched terms, which the
                                                history adds up.
                                              items:
                                                type: string
                                              type: array
                                          required:
                                            - terms
                                            - by_year
                                            - change_12m
                                          type: object
                                        - type: 'null'
                                      description: >-
                                        Several years of searches of the main
                                        terms, to tell a trend from a season.
                                        Null where no history is kept for the
                                        country.
                                    low_month:
                                      description: >-
                                        The month with the fewest searches,
                                        `YYYY-MM`.
                                      type: string
                                    peak_month:
                                      description: >-
                                        The month with the most searches,
                                        `YYYY-MM`.
                                      type: string
                                    peak_to_low:
                                      description: >-
                                        Searches of the peak month over those of
                                        the low month: 1 is no season, 3 is a
                                        strong one. Null when the low month had
                                        none.
                                      type:
                                        - number
                                        - 'null'
                                    searches_12m:
                                      description: >-
                                        Searches of the last 12 months, all
                                        terms together. A term that is a close
                                        variant of another is counted once.
                                      type: integer
                                    terms:
                                      description: >-
                                        The terms people searched, most searched
                                        first. Terms nobody searched are left
                                        out.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          searches_12m:
                                            type: integer
                                          share:
                                            description: Its part of `searches_12m`, 0 to 1.
                                            type: number
                                          term:
                                            type: string
                                          variants:
                                            description: >-
                                              Other terms asked that the search engine
                                              counts as this one, with the same
                                              numbers. They are not counted again.
                                            items:
                                              type: string
                                            type: array
                                        required:
                                          - term
                                          - searches_12m
                                          - share
                                          - variants
                                        type: object
                                      type: array
                                  required:
                                    - searches_12m
                                    - by_month
                                    - peak_month
                                    - low_month
                                    - peak_to_low
                                    - terms
                                    - history
                                    - data_through
                                  type: object
                                - type: 'null'
                              description: >-
                                What people search for. Null when not asked for,
                                or when nothing was found.
                            shipments:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    basis:
                                      description: >-
                                        `own`: records declared in the country.
                                        `partners`: the country declares none,
                                        so these are the export records of its
                                        partners that name it, and they are
                                        incomplete.
                                      enum:
                                        - own
                                        - partners
                                      type: string
                                    by_month:
                                      description: >-
                                        Each month of `period`. Where the
                                        records stop rather than the trade,
                                        `notice` says so.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          month:
                                            description: '`YYYY-MM`'
                                            type: string
                                          shipments:
                                            type: integer
                                        required:
                                          - month
                                          - shipments
                                        type: object
                                      type: array
                                    counts_only:
                                      description: >-
                                        True when the records are the country's
                                        own declarations, counted without being
                                        read, because our main records have few
                                        months of them: then there are no values
                                        and no origins.
                                      type: boolean
                                    period:
                                      additionalProperties: false
                                      description: >-
                                        The first and the last month the numbers
                                        cover.
                                      properties:
                                        since:
                                          description: '`YYYY-MM`'
                                          type: string
                                        until:
                                          description: '`YYYY-MM`'
                                          type: string
                                      required:
                                        - since
                                        - until
                                      type: object
                                    recorded_value_usd:
                                      description: >-
                                        Declared value of the records that have
                                        one, in US dollars.
                                      type:
                                        - number
                                        - 'null'
                                    shipments:
                                      description: >-
                                        Shipment records of the country's
                                        imports in `period`.
                                      type: integer
                                    top_origins:
                                      description: >-
                                        Up to 5 countries the recorded shipments
                                        come from, most first. Empty with
                                        `counts_only`.
                                      items:
                                        additionalProperties: false
                                        properties:
                                          country:
                                            description: ISO code.
                                            type: string
                                          shipments:
                                            type: integer
                                        required:
                                          - country
                                          - shipments
                                        type: object
                                      type: array
                                    value_share:
                                      description: >-
                                        Recorded value over the official imports
                                        of the same months: how much of the
                                        trade the records see. Null without
                                        both.
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - basis
                                    - period
                                    - shipments
                                    - recorded_value_usd
                                    - value_share
                                    - top_origins
                                    - by_month
                                    - counts_only
                                  type: object
                                - type: 'null'
                              description: >-
                                Shipment records of the country's imports of the
                                HS code in the 12 whole months before this one.
                                Null when not asked for, without an HS code, or
                                when there are none.
                          required:
                            - country
                            - official
                            - shipments
                            - search
                            - marketplace
                            - estimates
                          type: object
                        type: array
                      hs_code:
                        anyOf:
                          - additionalProperties: false
                            properties:
                              alternatives:
                                description: >-
                                  Other six-digit codes that match `product`
                                  nearly as well, best first: check them before
                                  reading the numbers, and pass one as `hs_code`
                                  when it fits better. Empty when `hs_code` was
                                  given.
                                items:
                                  additionalProperties: false
                                  properties:
                                    code:
                                      type: string
                                    description:
                                      type: string
                                  required:
                                    - code
                                    - description
                                  type: object
                                type: array
                              code:
                                type: string
                              description:
                                type: string
                              origin:
                                description: >-
                                  `given`: the `hs_code` asked for. `matched`:
                                  the HS code whose description best matches
                                  `product`; pass `hs_code` when it is not the
                                  right one.
                                enum:
                                  - given
                                  - matched
                                type: string
                            required:
                              - code
                              - description
                              - origin
                              - alternatives
                            type: object
                          - type: 'null'
                        description: >-
                          The HS code of `official` and `shipments`, and of the
                          trade `estimates` are held against. Null when none of
                          them is asked for, or no HS code matches `product`.
                      product:
                        type: string
                      terms:
                        description: >-
                          The search terms that were asked: `terms` as given, or
                          the ones suggested for the product.
                        items:
                          additionalProperties: false
                          properties:
                            language:
                              description: >-
                                ISO 639-1 code of the term's language, such as
                                `ar`, when known.
                              type:
                                - string
                                - 'null'
                            term:
                              type: string
                          required:
                            - term
                            - language
                          type: object
                        type: array
                    required:
                      - product
                      - hs_code
                      - terms
                      - countries
                    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 POST \
              --url https://api.aisa.one/apis/v1/trade/markets/brief \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "countries": [
                "US"
              ],
              "hs_code": "847130",
              "product": "laptop",
              "sections": [
                "official",
                "search",
                "marketplace"
              ]
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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