ICP Search — Suggest
curl --request GET \
--url https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}', 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.datamagnet.co/api/v1/people-search/suggest/{suggest_type}",
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: Bearer <token>"
],
]);
$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.datamagnet.co/api/v1/people-search/suggest/{suggest_type}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.datamagnet.co/api/v1/people-search/suggest/{suggest_type}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"results": [
{
"label": "Stripe",
"value": "Stripe",
"id": "15285098",
"meta": {
"employees": "1001-5000",
"industry": "Financial Services",
"location": "US",
"logo": "https://media.licdn.com/dms/image/..."
}
},
{
"label": "Stripe Japan",
"value": "Stripe Japan",
"id": "67890123",
"meta": {
"employees": "51-200",
"industry": "Financial Services",
"location": "JP",
"logo": null
}
}
],
"cached": false
}
ICP Search — Suggest
Autocomplete suggestions for ICP Search filter fields including company name, job title, industry, and location for building typeahead UIs.
GET
/
api
/
v1
/
people-search
/
suggest
/
{suggest_type}
ICP Search — Suggest
curl --request GET \
--url https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}', 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.datamagnet.co/api/v1/people-search/suggest/{suggest_type}",
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: Bearer <token>"
],
]);
$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.datamagnet.co/api/v1/people-search/suggest/{suggest_type}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.datamagnet.co/api/v1/people-search/suggest/{suggest_type}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"results": [
{
"label": "Stripe",
"value": "Stripe",
"id": "15285098",
"meta": {
"employees": "1001-5000",
"industry": "Financial Services",
"location": "US",
"logo": "https://media.licdn.com/dms/image/..."
}
},
{
"label": "Stripe Japan",
"value": "Stripe Japan",
"id": "67890123",
"meta": {
"employees": "51-200",
"industry": "Financial Services",
"location": "JP",
"logo": null
}
}
],
"cached": false
}
ICP Search Suggest
Cost:1 credit.
Returns typeahead suggestions for filter fields such as company name, job title, location, school, and technology. Useful for building autocomplete dropdowns in your UI.
Results are cached server-side for fast repeated lookups.
Path parameters
string
required
The type of suggestion to retrieve. Must be one of:
| Value | Used for |
|---|---|
company | company_name filter |
job_title | job_title filter |
location | location filter |
school | school filter |
technology | technology filter |
function | function filter |
Query parameters
string
required
The search query string.Example:
?q=StripeExample
curl "https://api.datamagnet.co/api/v1/people-search/suggest/company?q=Stripe" \
-H "Authorization: Bearer <your_api_key>"
{
"success": true,
"results": [
{
"label": "Stripe",
"value": "Stripe",
"id": "15285098",
"meta": {
"employees": "1001-5000",
"industry": "Financial Services",
"location": "US",
"logo": "https://media.licdn.com/dms/image/..."
}
},
{
"label": "Stripe Japan",
"value": "Stripe Japan",
"id": "67890123",
"meta": {
"employees": "51-200",
"industry": "Financial Services",
"location": "JP",
"logo": null
}
}
],
"cached": false
}
Response fields
boolean
true on success.array
List of matching suggestions. The top result is the best match.
boolean
true if the result was served from the server-side cache.Was this page helpful?
⌘I