Business Contact Country Filter API
Retrieve country filter options for company and people search.
ENDPOINTS
POST /api/v1/businessContact/country
Request parameters
query
string
Keyword to filter countries by name.
- Required:
No - Example:
Chin
Request Example
{
"query": "Chin"
}
curl https://api.tradedata.io/api/v1/businessContact/country \
-H "Authorization: Bearer yourTokenHere" \
-H "Content-Type: application/json" \
-d '{"query": "Chin"}'
import requests
response = requests.post(
"https://api.tradedata.io/api/v1/businessContact/country",
headers={
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
json={
"query": "Chin",
},
)
print(response.json())
const response = await fetch("https://api.tradedata.io/api/v1/businessContact/country", {
method: "POST",
headers: {
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
body: JSON.stringify({
"query": "Chin"
}),
});
const data = await response.json();
<?php
$ch = curl_init("https://api.tradedata.io/api/v1/businessContact/country");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer yourTokenHere",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"query" => "Chin"
]),
]);
echo curl_exec($ch);
Response parameters
data
array
List of matching country name strings.
- Example:
China
Response Example
{
"code": 200,
"success": true,
"data": [
"China"
],
"msg": "success",
"total": 0,
"pageSize": 0,
"current": 0,
"sumResult": null
}