Get a List of Geo Targets
curl --request GET \
--url https://api.hakumedia.ai/v2/geo-targets \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/geo-targets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/geo-targets"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/geo-targets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/geo-targets",
"data": [
{
"name": "Toronto Area",
"range": 3,
"unit": "kilometers",
"inclusive": false,
"object": "geo_target",
"id": 1796,
"self": "/v2/geo-targets/1796",
"areas": [
{
"continent": "North America",
"country": "CA",
"region": "Ontario",
"city": "Toronto",
"manually_selected": true
}
]
}
]
}Geo Targets
Get a List of Geo Targets
You can use the fields query parameter to restrict the fields to be retrieved.
GET
/
geo-targets
Get a List of Geo Targets
curl --request GET \
--url https://api.hakumedia.ai/v2/geo-targets \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/geo-targets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/geo-targets"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/geo-targets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/geo-targets",
"data": [
{
"name": "Toronto Area",
"range": 3,
"unit": "kilometers",
"inclusive": false,
"object": "geo_target",
"id": 1796,
"self": "/v2/geo-targets/1796",
"areas": [
{
"continent": "North America",
"country": "CA",
"region": "Ontario",
"city": "Toronto",
"manually_selected": true
}
]
}
]
}Autorizaciones
Parámetros de consulta
Respuesta
default - application/json
successful operation