Search LinkedIn typeahead
curl --request GET \
--url https://api.harvestapi.io/linkedin/typeahead-search \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/typeahead-search"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.harvestapi.io/linkedin/typeahead-search', 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.harvestapi.io/linkedin/typeahead-search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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.harvestapi.io/linkedin/typeahead-search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.harvestapi.io/linkedin/typeahead-search")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/typeahead-search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"elements": [
{
"type": "company",
"title": "google",
"subtitle": "Company • Software Development",
"id": "1441",
"urn": "urn:li:company:1441",
"linkedinUrl": "https://www.linkedin.com/company/1441/",
"image": "https://media.licdn.com/dms/image/v2/D4E0BAQexample/company-logo_100_100/0/1759350753990/google_logo"
},
{
"type": "query",
"title": "google",
"subtitle": "in Jobs",
"id": null,
"urn": null,
"linkedinUrl": null,
"image": null
},
{
"type": "query",
"title": "google recruiter",
"subtitle": null,
"id": null,
"urn": null,
"linkedinUrl": null,
"image": null
},
{
"type": "company",
"title": "google deepmind",
"subtitle": "Company • Research Services",
"id": "1594050",
"urn": "urn:li:company:1594050",
"linkedinUrl": "https://www.linkedin.com/company/1594050/",
"image": "https://media.licdn.com/dms/image/v2/D4E0BAQexample/company-logo_200_200/0/1692960425188/googledeepmind_logo"
}
],
"status": 200,
"query": {
"search": "google"
}
}{
"error": 123,
"message": "<string>"
}LinkedIn Typeahead
Search Typeahead
Get the suggestions LinkedIn’s search bar gives for a text: companies, schools, members and suggested searches, usually up to 8, in LinkedIn’s order, with names in lower case. With type, the suggestions of companies, schools or profiles only: 100 a page, up to 20 pages, with names as written.
GET
/
linkedin
/
typeahead-search
Search LinkedIn typeahead
curl --request GET \
--url https://api.harvestapi.io/linkedin/typeahead-search \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/typeahead-search"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.harvestapi.io/linkedin/typeahead-search', 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.harvestapi.io/linkedin/typeahead-search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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.harvestapi.io/linkedin/typeahead-search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.harvestapi.io/linkedin/typeahead-search")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/typeahead-search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"elements": [
{
"type": "company",
"title": "google",
"subtitle": "Company • Software Development",
"id": "1441",
"urn": "urn:li:company:1441",
"linkedinUrl": "https://www.linkedin.com/company/1441/",
"image": "https://media.licdn.com/dms/image/v2/D4E0BAQexample/company-logo_100_100/0/1759350753990/google_logo"
},
{
"type": "query",
"title": "google",
"subtitle": "in Jobs",
"id": null,
"urn": null,
"linkedinUrl": null,
"image": null
},
{
"type": "query",
"title": "google recruiter",
"subtitle": null,
"id": null,
"urn": null,
"linkedinUrl": null,
"image": null
},
{
"type": "company",
"title": "google deepmind",
"subtitle": "Company • Research Services",
"id": "1594050",
"urn": "urn:li:company:1594050",
"linkedinUrl": "https://www.linkedin.com/company/1594050/",
"image": "https://media.licdn.com/dms/image/v2/D4E0BAQexample/company-logo_200_200/0/1692960425188/googledeepmind_logo"
}
],
"status": 200,
"query": {
"search": "google"
}
}{
"error": 123,
"message": "<string>"
}Get the suggestions LinkedIn’s search bar gives for a text: companies, schools, members and suggested searches,
usually up to 8, in LinkedIn’s order. Names come in lower case, as LinkedIn suggests them. A suggested search has the
type query and only a title; its subtitle in Jobs marks a suggested job search. Pass a company’s id to
Get company or a member’s to Get profile
for the full details.
Set type to company, school or profile for the suggestions of one type only: 100 a page, with names as
written, e.g. ?search=google&type=company&page=2. Page through them with page, up to page 20 (2,000
suggestions); a page with fewer than 100 suggestions is the last, as LinkedIn gives no total. Profiles found this way
are linked by profile ID. Without type the suggestions come in one page.
const params = new URLSearchParams({
search: 'google',
});
fetch(`https://api.harvestapi.io/linkedin/typeahead-search?${params.toString()}`, {
headers: { 'X-API-Key': '<api-key>' },
})
.then((response) => response.json())
.then((data) => console.log(data));
curl --request GET \
--url 'https://api.harvestapi.io/linkedin/typeahead-search?search=google' \
--header 'X-API-Key: <api-key>'
import requests
url = "https://api.harvestapi.io/linkedin/typeahead-search?search=google"
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers)
print(response.text)
Authorizations
Query Parameters
The text typed into the search bar, up to 100 characters
Suggestions of one type only, 100 a page. Without it, the search bar's own suggestions: up to 8 of every type, suggested searches included, in one page
Available options:
company, school, profile Page number of one type's suggestions, from 1 to 20; only 1 without type. A page with fewer than 100 suggestions is the last
Required range:
1 <= x <= 20Response
The suggestions for the text, in LinkedIn's order

