Reference example
# 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"
]
}'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"
],
"product": "laptop"
}
'import requests
url = "https://api.aisa.one/apis/v1/trade/markets/brief"
payload = {
"countries": ["US"],
"product": "laptop"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({countries: ['US'], product: 'laptop'})
};
fetch('https://api.aisa.one/apis/v1/trade/markets/brief', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/trade/markets/brief",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countries' => [
'US'
],
'product' => 'laptop'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/trade/markets/brief"
payload := strings.NewReader("{\n \"countries\": [\n \"US\"\n ],\n \"product\": \"laptop\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/trade/markets/brief")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"US\"\n ],\n \"product\": \"laptop\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trade/markets/brief")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countries\": [\n \"US\"\n ],\n \"product\": \"laptop\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"countries": [
{
"country": "<string>",
"estimates": {
"agreement": "close",
"exports_usd": 123,
"figures": [
{
"check": "consistent",
"figure": "<string>",
"market": "<string>",
"publisher": "<string>",
"scope": "same",
"times_imports": 123,
"url": "<string>",
"value_usd": 123,
"year": 123
}
],
"imports_usd": 123
},
"marketplace": {
"bought_last_month": {
"at_least": 123,
"listings": 123
},
"price": {
"currency": "<string>",
"left_out": 123,
"listings": 123,
"median": 123,
"median_usd": 123,
"p25": 123,
"p75": 123
},
"query": "<string>",
"read": 123,
"results": 123,
"store": "<string>",
"top": [
{
"bought_last_month": 123,
"currency": "<string>",
"price": 123,
"ratings": 123,
"title": "<string>",
"url": "<string>"
}
]
},
"official": {
"basis": "own",
"by_month": [
{
"month": "<string>",
"value_usd": 123,
"partial": true
}
],
"change_12m": 123,
"imports_12m_usd": 123,
"partial_months": 123,
"period": {
"since": "<string>",
"until": "<string>"
},
"prior_12m_usd": 123,
"top_origins": [
{
"country": "<string>",
"share": 123,
"value_usd": 123
}
],
"value_basis": "customs",
"comparable_change_12m": 123,
"missing_months": [
"<string>"
],
"stopped_reporting": [
{
"country": "<string>",
"last_month": "<string>",
"share": 123
}
]
},
"search": {
"by_month": [
{
"month": "<string>",
"searches": 123
}
],
"data_through": "<string>",
"history": {
"by_year": [
{
"complete": true,
"searches": 123,
"year": 123
}
],
"change_12m": 123,
"terms": [
"<string>"
]
},
"low_month": "<string>",
"peak_month": "<string>",
"peak_to_low": 123,
"searches_12m": 123,
"terms": [
{
"searches_12m": 123,
"share": 123,
"term": "<string>",
"variants": [
"<string>"
]
}
]
},
"shipments": {
"basis": "own",
"by_month": [
{
"month": "<string>",
"shipments": 123
}
],
"counts_only": true,
"period": {
"since": "<string>",
"until": "<string>"
},
"recorded_value_usd": 123,
"shipments": 123,
"top_origins": [
{
"country": "<string>",
"shipments": 123
}
],
"value_share": 123
}
}
],
"hs_code": {
"alternatives": [
{
"code": "<string>",
"description": "<string>"
}
],
"code": "<string>",
"description": "<string>",
"origin": "given"
},
"product": "<string>",
"terms": [
{
"language": "<string>",
"term": "<string>"
}
]
},
"notice": "<string>",
"query": {}
}Global Trade & Customs
Brief product import demand, search interest, and market sizing across countries
Global Trade & Customs API (trade.markets.brief)
POST
https://api.aisa.one
/
apis
/
v1
/
trade
/
markets
/
brief
Reference example
# 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"
]
}'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"
],
"product": "laptop"
}
'import requests
url = "https://api.aisa.one/apis/v1/trade/markets/brief"
payload = {
"countries": ["US"],
"product": "laptop"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({countries: ['US'], product: 'laptop'})
};
fetch('https://api.aisa.one/apis/v1/trade/markets/brief', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/trade/markets/brief",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countries' => [
'US'
],
'product' => 'laptop'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/trade/markets/brief"
payload := strings.NewReader("{\n \"countries\": [\n \"US\"\n ],\n \"product\": \"laptop\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/trade/markets/brief")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"US\"\n ],\n \"product\": \"laptop\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trade/markets/brief")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countries\": [\n \"US\"\n ],\n \"product\": \"laptop\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"countries": [
{
"country": "<string>",
"estimates": {
"agreement": "close",
"exports_usd": 123,
"figures": [
{
"check": "consistent",
"figure": "<string>",
"market": "<string>",
"publisher": "<string>",
"scope": "same",
"times_imports": 123,
"url": "<string>",
"value_usd": 123,
"year": 123
}
],
"imports_usd": 123
},
"marketplace": {
"bought_last_month": {
"at_least": 123,
"listings": 123
},
"price": {
"currency": "<string>",
"left_out": 123,
"listings": 123,
"median": 123,
"median_usd": 123,
"p25": 123,
"p75": 123
},
"query": "<string>",
"read": 123,
"results": 123,
"store": "<string>",
"top": [
{
"bought_last_month": 123,
"currency": "<string>",
"price": 123,
"ratings": 123,
"title": "<string>",
"url": "<string>"
}
]
},
"official": {
"basis": "own",
"by_month": [
{
"month": "<string>",
"value_usd": 123,
"partial": true
}
],
"change_12m": 123,
"imports_12m_usd": 123,
"partial_months": 123,
"period": {
"since": "<string>",
"until": "<string>"
},
"prior_12m_usd": 123,
"top_origins": [
{
"country": "<string>",
"share": 123,
"value_usd": 123
}
],
"value_basis": "customs",
"comparable_change_12m": 123,
"missing_months": [
"<string>"
],
"stopped_reporting": [
{
"country": "<string>",
"last_month": "<string>",
"share": 123
}
]
},
"search": {
"by_month": [
{
"month": "<string>",
"searches": 123
}
],
"data_through": "<string>",
"history": {
"by_year": [
{
"complete": true,
"searches": 123,
"year": 123
}
],
"change_12m": 123,
"terms": [
"<string>"
]
},
"low_month": "<string>",
"peak_month": "<string>",
"peak_to_low": 123,
"searches_12m": 123,
"terms": [
{
"searches_12m": 123,
"share": 123,
"term": "<string>",
"variants": [
"<string>"
]
}
]
},
"shipments": {
"basis": "own",
"by_month": [
{
"month": "<string>",
"shipments": 123
}
],
"counts_only": true,
"period": {
"since": "<string>",
"until": "<string>"
},
"recorded_value_usd": 123,
"shipments": 123,
"top_origins": [
{
"country": "<string>",
"shipments": 123
}
],
"value_share": 123
}
}
],
"hs_code": {
"alternatives": [
{
"code": "<string>",
"description": "<string>"
}
],
"code": "<string>",
"description": "<string>",
"origin": "given"
},
"product": "<string>",
"terms": [
{
"language": "<string>",
"term": "<string>"
}
]
},
"notice": "<string>",
"query": {}
}请求规范
- 方法与路径: POST /apis/v1/trade/markets/brief
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/trade/markets/brief
{
"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"
}
}
}
}
费用与请求规则
按实际用量收费。 公开参考价格:每计费单位 $0.2 USD。 默认请求预估费用:$0.2 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
响应
Normalized successful response