Organization
Retrieve a list of available organizations.
ENDPOINTS
POST /api/v1/tradeAnalytics/organization
Request parameters
None
curl https://api.tradedata.io/api/v1/tradeAnalytics/organization \
-H "Authorization: Bearer yourTokenHere" \
-H "Content-Type: application/json" \
-d '{}'
import requests
response = requests.post(
"https://api.tradedata.io/api/v1/tradeAnalytics/organization",
headers={
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
json={},
)
print(response.json())
const response = await fetch("https://api.tradedata.io/api/v1/tradeAnalytics/organization", {
method: "POST",
headers: {
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await response.json();
<?php
$ch = curl_init("https://api.tradedata.io/api/v1/tradeAnalytics/organization");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer yourTokenHere",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([]),
]);
echo curl_exec($ch);
Response parameters
code
int
Status code
- Example:
200
data
array
Result container
data.orgName
string
Organization name
- Example:
African Union
data.orgCode
string
Organization code
- Example:
AU
data.orgNameZh
string
Organization name (Chinese)
- Example:
非洲联盟
data.countryList
array
List of countries under the organization
- Example:
-
data.countryList.name
string
Country name
- Example:
Algeria
data.countryList.iso3Code
string
Country ISO3 code
- Example:
DZA
data.countryList.countryName
string
Standard country name
- Example:
ALGERIA
data.countryList.countryNameZh
string
Country name (Chinese)
- Example:
阿尔及利亚
Response Example
{
"code": 200,
"success": true,
"data": [
{
"orgName": "African Union",
"orgCode": "AU",
"orgNameZh": "非洲联盟",
"countryList": [
{
"name": "Algeria",
"iso3Code": "DZA",
"countryName": "ALGERIA",
"countryNameZh": "阿尔及利亚"
}
]
}
],
"msg": "success",
"total": 0,
"pageSize": 0,
"current": 0,
"sumResult": null
}