Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/trade/companies/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"hs_code": "847130",
"importer_country": "US",
"limit": 1,
"role": "importer"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/trade/companies/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hs_code": "847130",
"role": "importer"
}
'import requests
url = "https://api.aisa.one/apis/v1/trade/companies/search"
payload = {
"hs_code": "847130",
"role": "importer"
}
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({hs_code: '847130', role: 'importer'})
};
fetch('https://api.aisa.one/apis/v1/trade/companies/search', 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/companies/search",
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([
'hs_code' => '847130',
'role' => 'importer'
]),
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/companies/search"
payload := strings.NewReader("{\n \"hs_code\": \"847130\",\n \"role\": \"importer\"\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/companies/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"hs_code\": \"847130\",\n \"role\": \"importer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trade/companies/search")
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 \"hs_code\": \"847130\",\n \"role\": \"importer\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"country": "<string>",
"id": "<string>",
"name": "<string>",
"recorded_value_usd": 123,
"role": "importer",
"sample_product": "<string>",
"shipments": 123,
"website": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"notice": "<string>",
"query": {
"data_through": "<string>"
},
"total": 123
}Global Trade & Customs
Search importing or exporting companies
Global Trade & Customs API (trade.companies.search)
POST
https://api.aisa.one
/
apis
/
v1
/
trade
/
companies
/
search
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/trade/companies/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"hs_code": "847130",
"importer_country": "US",
"limit": 1,
"role": "importer"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/trade/companies/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hs_code": "847130",
"role": "importer"
}
'import requests
url = "https://api.aisa.one/apis/v1/trade/companies/search"
payload = {
"hs_code": "847130",
"role": "importer"
}
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({hs_code: '847130', role: 'importer'})
};
fetch('https://api.aisa.one/apis/v1/trade/companies/search', 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/companies/search",
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([
'hs_code' => '847130',
'role' => 'importer'
]),
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/companies/search"
payload := strings.NewReader("{\n \"hs_code\": \"847130\",\n \"role\": \"importer\"\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/companies/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"hs_code\": \"847130\",\n \"role\": \"importer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trade/companies/search")
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 \"hs_code\": \"847130\",\n \"role\": \"importer\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"country": "<string>",
"id": "<string>",
"name": "<string>",
"recorded_value_usd": 123,
"role": "importer",
"sample_product": "<string>",
"shipments": 123,
"website": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"notice": "<string>",
"query": {
"data_through": "<string>"
},
"total": 123
}Request contract
- Method and path: POST /apis/v1/trade/companies/search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/trade/companies/search
{
"operationId": "trade.companies.search",
"method": "POST",
"path": "/apis/v1/trade/companies/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"default": {
"value": {
"hs_code": "847130",
"importer_country": "US",
"limit": 1,
"role": "importer"
}
},
"minimal": {
"value": {
"hs_code": "847130",
"importer_country": "US",
"limit": 1,
"role": "importer"
}
}
},
"schema": {
"additionalProperties": false,
"allOf": [
{
"anyOf": [
{
"properties": {
"hs_code": {}
},
"required": [
"hs_code"
]
},
{
"properties": {
"product": {}
},
"required": [
"product"
]
},
{
"properties": {
"trading_with": {}
},
"required": [
"trading_with"
]
}
]
}
],
"properties": {
"cursor": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"exclude_forwarders": {
"default": true,
"type": "boolean"
},
"exporter_country": {
"maxLength": 80,
"minLength": 2,
"type": "string"
},
"hs_code": {
"maxLength": 10,
"minLength": 6,
"pattern": "^[0-9]{6,10}$",
"type": "string"
},
"importer_country": {
"maxLength": 80,
"minLength": 2,
"type": "string"
},
"limit": {
"default": 10,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"product": {
"maxLength": 100,
"minLength": 2,
"type": "string"
},
"role": {
"enum": [
"exporter",
"importer"
],
"type": "string"
},
"since": {
"maxLength": 10,
"minLength": 10,
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"type": "string"
},
"sort": {
"default": "shipments",
"enum": [
"recorded_value",
"shipments"
],
"type": "string"
},
"trading_with": {
"maxLength": 200,
"minLength": 2,
"type": "string"
},
"until": {
"maxLength": 10,
"minLength": 10,
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"type": "string"
}
},
"required": [
"role"
],
"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.01 USD per billable unit. Default request estimate: $0.01 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
- Option 1
- Option 2
- Option 3
Response
Normalized successful response