Contact Filters
Locations
Search for locations by text for contact filtering
POST
/
prospecting
/
filters
/
contacts
/
locations
Locations
curl --request POST \
--url https://api.lusha.com/prospecting/filters/contacts/locations \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"text": "un"
}'import requests
url = "https://api.lusha.com/prospecting/filters/contacts/locations"
payload = { "text": "un" }
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'un'})
};
fetch('https://api.lusha.com/prospecting/filters/contacts/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.lusha.com/prospecting/filters/contacts/locations")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"un\"\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/prospecting/filters/contacts/locations"
payload := strings.NewReader("{\n \"text\": \"un\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"continent": "North America",
"country": "United States",
"city": "New York",
"state": "New York",
"country_grouping": "na"
}
]{
"statusCode": 401,
"message": "Invalid API key"
}Authorizations
Your Lusha API key. You can find this in your Lusha dashboard under API settings.
Include this key in the api_key header for all requests.
Body
application/json
Search text for location
Example:
"un"
Was this page helpful?
⌘I
Locations
curl --request POST \
--url https://api.lusha.com/prospecting/filters/contacts/locations \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"text": "un"
}'import requests
url = "https://api.lusha.com/prospecting/filters/contacts/locations"
payload = { "text": "un" }
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'un'})
};
fetch('https://api.lusha.com/prospecting/filters/contacts/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.lusha.com/prospecting/filters/contacts/locations")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"un\"\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/prospecting/filters/contacts/locations"
payload := strings.NewReader("{\n \"text\": \"un\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"continent": "North America",
"country": "United States",
"city": "New York",
"state": "New York",
"country_grouping": "na"
}
]{
"statusCode": 401,
"message": "Invalid API key"
}