Business Contact Industry Filter API
Retrieve industry filter options for company search.
ENDPOINTS
POST /api/v1/businessContact/industry
Request parameters
query
string
Keyword to filter industries by name.
- Required:
No - Example:
agriculture
Request Example
{
"query": "agriculture"
}
curl https://api.tradedata.io/api/v1/businessContact/industry \
-H "Authorization: Bearer yourTokenHere" \
-H "Content-Type: application/json" \
-d '{"query": "agriculture"}'
import requests
response = requests.post(
"https://api.tradedata.io/api/v1/businessContact/industry",
headers={
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
json={
"query": "agriculture",
},
)
print(response.json())
const response = await fetch("https://api.tradedata.io/api/v1/businessContact/industry", {
method: "POST",
headers: {
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
body: JSON.stringify({
"query": "agriculture"
}),
});
const data = await response.json();
<?php
$ch = curl_init("https://api.tradedata.io/api/v1/businessContact/industry");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer yourTokenHere",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"query" => "agriculture"
]),
]);
echo curl_exec($ch);
Response parameters
data.name
string
Industry name.
- Example:
information technology & services
data.id
string
Industry ID. Use as industryIds in company/page.
- Example:
5d1b2c3d4e5f000000000001
Response Example
{
"code": 200,
"success": true,
"data": [
{
"name": "information technology & services",
"id": "5d1b2c3d4e5f000000000001"
}
],
"msg": "success",
"total": 0,
"pageSize": 0,
"current": 0,
"sumResult": null
}