Search Locations
curl --request GET \
--url https://api.agntdata.dev/v1/data/linkedin/search-locations \
--header 'Authorization: <api-key>'import requests
url = "https://api.agntdata.dev/v1/data/linkedin/search-locations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.agntdata.dev/v1/data/linkedin/search-locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.agntdata.dev/v1/data/linkedin/search-locations",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.agntdata.dev/v1/data/linkedin/search-locations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.agntdata.dev/v1/data/linkedin/search-locations")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/linkedin/search-locations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {
"items": [
{
"id": "urn:li:geo:103035651",
"name": "Berlin, Germany"
},
{
"id": "urn:li:geo:106967730",
"name": "Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:90009712",
"name": "Berlin Metropolitan Area"
},
{
"id": "urn:li:geo:101283667",
"name": "Stadt Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:105506608",
"name": "Berlin, Connecticut, United States"
},
{
"id": "urn:li:geo:107184029",
"name": "Berlin, Maryland, United States"
},
{
"id": "urn:li:geo:107096287",
"name": "Berlin, New Jersey, United States"
},
{
"id": "urn:li:geo:105606863",
"name": "Berlin, New Hampshire, United States"
},
{
"id": "urn:li:geo:101301095",
"name": "10115, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:110428803",
"name": "Berlin, Wisconsin, United States"
},
{
"id": "urn:li:geo:104944500",
"name": "10178, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:101862986",
"name": "10117, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:102207106",
"name": "14057, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:101246887",
"name": "Berlin, Massachusetts, United States"
},
{
"id": "urn:li:geo:100522964",
"name": "Berlin, Pennsylvania, United States"
},
{
"id": "urn:li:geo:103161081",
"name": "10405, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:106872105",
"name": "10179, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:101638445",
"name": "New Berlin, Wisconsin, United States"
},
{
"id": "urn:li:geo:102483684",
"name": "10119, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:105259835",
"name": "10437, Berlin, Berlin, Germany"
}
]
}
}Location
Search Locations
Search locations by keyword
GET
/
v1
/
data
/
linkedin
/
search-locations
Search Locations
curl --request GET \
--url https://api.agntdata.dev/v1/data/linkedin/search-locations \
--header 'Authorization: <api-key>'import requests
url = "https://api.agntdata.dev/v1/data/linkedin/search-locations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.agntdata.dev/v1/data/linkedin/search-locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.agntdata.dev/v1/data/linkedin/search-locations",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.agntdata.dev/v1/data/linkedin/search-locations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.agntdata.dev/v1/data/linkedin/search-locations")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/linkedin/search-locations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {
"items": [
{
"id": "urn:li:geo:103035651",
"name": "Berlin, Germany"
},
{
"id": "urn:li:geo:106967730",
"name": "Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:90009712",
"name": "Berlin Metropolitan Area"
},
{
"id": "urn:li:geo:101283667",
"name": "Stadt Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:105506608",
"name": "Berlin, Connecticut, United States"
},
{
"id": "urn:li:geo:107184029",
"name": "Berlin, Maryland, United States"
},
{
"id": "urn:li:geo:107096287",
"name": "Berlin, New Jersey, United States"
},
{
"id": "urn:li:geo:105606863",
"name": "Berlin, New Hampshire, United States"
},
{
"id": "urn:li:geo:101301095",
"name": "10115, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:110428803",
"name": "Berlin, Wisconsin, United States"
},
{
"id": "urn:li:geo:104944500",
"name": "10178, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:101862986",
"name": "10117, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:102207106",
"name": "14057, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:101246887",
"name": "Berlin, Massachusetts, United States"
},
{
"id": "urn:li:geo:100522964",
"name": "Berlin, Pennsylvania, United States"
},
{
"id": "urn:li:geo:103161081",
"name": "10405, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:106872105",
"name": "10179, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:101638445",
"name": "New Berlin, Wisconsin, United States"
},
{
"id": "urn:li:geo:102483684",
"name": "10119, Berlin, Berlin, Germany"
},
{
"id": "urn:li:geo:105259835",
"name": "10437, Berlin, Berlin, Germany"
}
]
}
}⌘I