Company Map Info API
Retrieve map data (coordinates, address, country) for a single company.
ENDPOINTS
POST /api/v1/company/companyMapInfo
Request parameters
com_id
string
Internal company ID
- Required:
Yes
curl https://api.tradedata.io/api/v1/company/companyMapInfo \
-H "Authorization: Bearer yourTokenHere" \
-H "Content-Type: application/json" \
-d '{}'
import requests
response = requests.post(
"https://api.tradedata.io/api/v1/company/companyMapInfo",
headers={
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
json={},
)
print(response.json())
const response = await fetch("https://api.tradedata.io/api/v1/company/companyMapInfo", {
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/company/companyMapInfo");
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
data.comId
string
Internal company ID
- Example:
C000123
data.comName
string
Company name
- Example:
Acme Singapore Pte. Ltd.
data.address
string
Full address string. May be null if unavailable
- Example:
123 Example Street, Example City
data.coordinate
object
Geographic coordinates { lat, lng }. null if the geocoding lookup returned no result
data.country
string
Standardised country name
- Example:
Singapore
data.iso3Code
string
ISO 3166-1 alpha-3 country code
- Example:
SGP
Response Example
{
"code": 200,
"data": {
"comId": "C000123",
"comName": "Acme Singapore Pte. Ltd.",
"address": "123 Example Street, Example City",
"coordinate": { "lat": 1.2655, "lng": 103.8207 },
"country": "Singapore",
"iso3Code": "SGP"
},
"msg": "OK"
}