curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"idempotency_key": "<string>",
"people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"company": "<string>",
"school": "<string>",
"network": [],
"locations": [
{
"id": "<string>",
"text": "<string>"
}
],
"industries": [
{
"id": "<string>",
"text": "<string>"
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"service_categories": [
{
"id": "<string>",
"text": "<string>"
}
],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"followers_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"profile_languages": [
"<string>"
],
"open_to_volunteer": true
},
"sales_nav_people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"current_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"past_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"locations": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"groups": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"schools": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"seniority_levels": [],
"functions": [],
"years_in_current_company": [],
"years_in_current_position": [],
"years_of_experience": [],
"company_headcounts": [],
"company_types": [],
"profile_languages": [],
"network": [],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
]
},
"companies": {
"keywords": "<string>",
"geo_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"industry_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"company_sizes": [],
"network": [
"1st"
],
"has_jobs": true
},
"sales_nav_companies": {
"keywords": "<string>",
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"account_lists": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"company_headcounts": [],
"num_of_followers": [],
"fortune": [],
"account_activities": [],
"annual_revenue": {
"min": 50000000,
"max": 50000000,
"currency": "<string>"
},
"company_headcount_growth": {
"min": 450,
"max": 450
},
"department_headcount": {
"min": 500000,
"max": 500000
},
"department_headcount_growth": {
"min": 450,
"max": 450
},
"hiring_on_linkedin": true,
"first_degree_connection": true,
"saved_accounts_only": true
}
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url"
payload = {
"linkedin_account_sid": "<string>",
"idempotency_key": "<string>",
"people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"company": "<string>",
"school": "<string>",
"network": [],
"locations": [
{
"id": "<string>",
"text": "<string>"
}
],
"industries": [
{
"id": "<string>",
"text": "<string>"
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"service_categories": [
{
"id": "<string>",
"text": "<string>"
}
],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"followers_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"profile_languages": ["<string>"],
"open_to_volunteer": True
},
"sales_nav_people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"current_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"past_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"locations": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"groups": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"schools": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"seniority_levels": [],
"functions": [],
"years_in_current_company": [],
"years_in_current_position": [],
"years_of_experience": [],
"company_headcounts": [],
"company_types": [],
"profile_languages": [],
"network": [],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
]
},
"companies": {
"keywords": "<string>",
"geo_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"industry_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"company_sizes": [],
"network": ["1st"],
"has_jobs": True
},
"sales_nav_companies": {
"keywords": "<string>",
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"account_lists": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"company_headcounts": [],
"num_of_followers": [],
"fortune": [],
"account_activities": [],
"annual_revenue": {
"min": 50000000,
"max": 50000000,
"currency": "<string>"
},
"company_headcount_growth": {
"min": 450,
"max": 450
},
"department_headcount": {
"min": 500000,
"max": 500000
},
"department_headcount_growth": {
"min": 450,
"max": 450
},
"hiring_on_linkedin": True,
"first_degree_connection": True,
"saved_accounts_only": True
}
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
linkedin_account_sid: '<string>',
idempotency_key: '<string>',
people: {
keywords: '<string>',
first_name: '<string>',
last_name: '<string>',
title: '<string>',
company: '<string>',
school: '<string>',
network: [],
locations: [{id: '<string>', text: '<string>'}],
industries: [{id: '<string>', text: '<string>'}],
current_companies: [{id: '<string>', text: '<string>'}],
past_companies: [{id: '<string>', text: '<string>'}],
service_categories: [{id: '<string>', text: '<string>'}],
connections_of: [{id: '<string>', text: '<string>'}],
followers_of: [{id: '<string>', text: '<string>'}],
profile_languages: ['<string>'],
open_to_volunteer: true
},
sales_nav_people: {
keywords: '<string>',
first_name: '<string>',
last_name: '<string>',
current_titles: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
past_titles: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
locations: [{id: '<string>', text: '<string>', exclude: true}],
company_headquarters: [{id: '<string>', text: '<string>', exclude: true}],
industries: [{id: '<string>', text: '<string>', exclude: true}],
current_companies: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
past_companies: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
groups: [{id: '<string>', text: '<string>', exclude: true}],
schools: [{id: '<string>', text: '<string>', exclude: true}],
seniority_levels: [],
functions: [],
years_in_current_company: [],
years_in_current_position: [],
years_of_experience: [],
company_headcounts: [],
company_types: [],
profile_languages: [],
network: [],
connections_of: [{id: '<string>', text: '<string>'}]
},
companies: {
keywords: '<string>',
geo_ids: [{id: '<string>', text: '<string>'}],
industry_ids: [{id: '<string>', text: '<string>'}],
company_sizes: [],
network: ['1st'],
has_jobs: true
},
sales_nav_companies: {
keywords: '<string>',
company_headquarters: [{id: '<string>', text: '<string>', exclude: true}],
industries: [{id: '<string>', text: '<string>', exclude: true}],
account_lists: [{id: '<string>', text: '<string>', exclude: true}],
company_headcounts: [],
num_of_followers: [],
fortune: [],
account_activities: [],
annual_revenue: {min: 50000000, max: 50000000, currency: '<string>'},
company_headcount_growth: {min: 450, max: 450},
department_headcount: {min: 500000, max: 500000},
department_headcount_growth: {min: 450, max: 450},
hiring_on_linkedin: true,
first_degree_connection: true,
saved_accounts_only: true
}
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url', 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://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_account_sid' => '<string>',
'idempotency_key' => '<string>',
'people' => [
'keywords' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'title' => '<string>',
'company' => '<string>',
'school' => '<string>',
'network' => [
],
'locations' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'industries' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'current_companies' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'past_companies' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'service_categories' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'connections_of' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'followers_of' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'profile_languages' => [
'<string>'
],
'open_to_volunteer' => true
],
'sales_nav_people' => [
'keywords' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'current_titles' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'past_titles' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'locations' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'company_headquarters' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'industries' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'current_companies' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'past_companies' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'groups' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'schools' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'seniority_levels' => [
],
'functions' => [
],
'years_in_current_company' => [
],
'years_in_current_position' => [
],
'years_of_experience' => [
],
'company_headcounts' => [
],
'company_types' => [
],
'profile_languages' => [
],
'network' => [
],
'connections_of' => [
[
'id' => '<string>',
'text' => '<string>'
]
]
],
'companies' => [
'keywords' => '<string>',
'geo_ids' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'industry_ids' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'company_sizes' => [
],
'network' => [
'1st'
],
'has_jobs' => true
],
'sales_nav_companies' => [
'keywords' => '<string>',
'company_headquarters' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'industries' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'account_lists' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'company_headcounts' => [
],
'num_of_followers' => [
],
'fortune' => [
],
'account_activities' => [
],
'annual_revenue' => [
'min' => 50000000,
'max' => 50000000,
'currency' => '<string>'
],
'company_headcount_growth' => [
'min' => 450,
'max' => 450
],
'department_headcount' => [
'min' => 500000,
'max' => 500000
],
'department_headcount_growth' => [
'min' => 450,
'max' => 450
],
'hiring_on_linkedin' => true,
'first_degree_connection' => true,
'saved_accounts_only' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"network\": [],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"service_categories\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"followers_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"profile_languages\": [\n \"<string>\"\n ],\n \"open_to_volunteer\": true\n },\n \"sales_nav_people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"current_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"groups\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"schools\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"seniority_levels\": [],\n \"functions\": [],\n \"years_in_current_company\": [],\n \"years_in_current_position\": [],\n \"years_of_experience\": [],\n \"company_headcounts\": [],\n \"company_types\": [],\n \"profile_languages\": [],\n \"network\": [],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n },\n \"companies\": {\n \"keywords\": \"<string>\",\n \"geo_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industry_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"company_sizes\": [],\n \"network\": [\n \"1st\"\n ],\n \"has_jobs\": true\n },\n \"sales_nav_companies\": {\n \"keywords\": \"<string>\",\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"account_lists\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headcounts\": [],\n \"num_of_followers\": [],\n \"fortune\": [],\n \"account_activities\": [],\n \"annual_revenue\": {\n \"min\": 50000000,\n \"max\": 50000000,\n \"currency\": \"<string>\"\n },\n \"company_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"department_headcount\": {\n \"min\": 500000,\n \"max\": 500000\n },\n \"department_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"hiring_on_linkedin\": true,\n \"first_degree_connection\": true,\n \"saved_accounts_only\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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))
}HttpResponse<String> response = Unirest.post("https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"network\": [],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"service_categories\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"followers_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"profile_languages\": [\n \"<string>\"\n ],\n \"open_to_volunteer\": true\n },\n \"sales_nav_people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"current_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"groups\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"schools\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"seniority_levels\": [],\n \"functions\": [],\n \"years_in_current_company\": [],\n \"years_in_current_position\": [],\n \"years_of_experience\": [],\n \"company_headcounts\": [],\n \"company_types\": [],\n \"profile_languages\": [],\n \"network\": [],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n },\n \"companies\": {\n \"keywords\": \"<string>\",\n \"geo_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industry_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"company_sizes\": [],\n \"network\": [\n \"1st\"\n ],\n \"has_jobs\": true\n },\n \"sales_nav_companies\": {\n \"keywords\": \"<string>\",\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"account_lists\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headcounts\": [],\n \"num_of_followers\": [],\n \"fortune\": [],\n \"account_activities\": [],\n \"annual_revenue\": {\n \"min\": 50000000,\n \"max\": 50000000,\n \"currency\": \"<string>\"\n },\n \"company_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"department_headcount\": {\n \"min\": 500000,\n \"max\": 500000\n },\n \"department_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"hiring_on_linkedin\": true,\n \"first_degree_connection\": true,\n \"saved_accounts_only\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_account_sid\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"network\": [],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"service_categories\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"followers_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"profile_languages\": [\n \"<string>\"\n ],\n \"open_to_volunteer\": true\n },\n \"sales_nav_people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"current_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"groups\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"schools\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"seniority_levels\": [],\n \"functions\": [],\n \"years_in_current_company\": [],\n \"years_in_current_position\": [],\n \"years_of_experience\": [],\n \"company_headcounts\": [],\n \"company_types\": [],\n \"profile_languages\": [],\n \"network\": [],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n },\n \"companies\": {\n \"keywords\": \"<string>\",\n \"geo_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industry_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"company_sizes\": [],\n \"network\": [\n \"1st\"\n ],\n \"has_jobs\": true\n },\n \"sales_nav_companies\": {\n \"keywords\": \"<string>\",\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"account_lists\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headcounts\": [],\n \"num_of_followers\": [],\n \"fortune\": [],\n \"account_activities\": [],\n \"annual_revenue\": {\n \"min\": 50000000,\n \"max\": 50000000,\n \"currency\": \"<string>\"\n },\n \"company_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"department_headcount\": {\n \"min\": 500000,\n \"max\": 500000\n },\n \"department_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"hiring_on_linkedin\": true,\n \"first_degree_connection\": true,\n \"saved_accounts_only\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"url": "<string>",
"filters": {},
"resolved": [
{
"member": "<string>",
"query": "<string>",
"lookup_type": "<string>",
"id": "<string>",
"display_name": "<string>",
"alternatives": [
{
"id": "<string>",
"display_name": "<string>"
}
]
}
],
"data_requests": [
{}
]
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
},
"pacing": {
"linkedin_account_sid": "<string>",
"limit_type": "<string>",
"next_call_after": "<string>",
"remaining_today": 1
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Build LinkedIn search URL
Build the LinkedIn URL of a people or company search, regular or Sales Navigator, from that search’s filters: send exactly ONE of people / sales_nav_people / companies / sales_nav_companies. Facet values take an id or plain text; each text is resolved by the search’s own typeahead (the option labelled exactly so, else the first; a multi-word miss is retried by its first word), at most 10 lookups per call, each a paced scraping read (Sales Navigator ones need an SN seat). A text nothing matches is a 422 naming the closest options, except on Sales Navigator titles and companies, where it stays free text. Returns url (Sales Navigator in its ?query= form, the one imports read), filters in the exact shape the matching search tool takes, and resolved: per text, the id picked and the alternatives. All ids given: no LinkedIn call at all. Recruiter has no build: its URL comes from running scrape_linkedin_search_recruiter_people.
Contract:
- MCP tool
scrape_linkedin_build_search_url, registry packagemcp.linkedin/linkedin_scraping, mountlinkedin.scraping. - Operation
action, response envelopeaction. - Flags: paced: a call spends the
scrapingsmart-limit bucket of the account it runs on, and calls of one bucket are spaced per account. A short wait is slept by the server; a longer one answers 429rate_limitedwithcontext.retry_after, and the same call succeeds from that moment. Parallel calls on one account queue behind each other.
curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"idempotency_key": "<string>",
"people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"company": "<string>",
"school": "<string>",
"network": [],
"locations": [
{
"id": "<string>",
"text": "<string>"
}
],
"industries": [
{
"id": "<string>",
"text": "<string>"
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"service_categories": [
{
"id": "<string>",
"text": "<string>"
}
],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"followers_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"profile_languages": [
"<string>"
],
"open_to_volunteer": true
},
"sales_nav_people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"current_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"past_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"locations": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": true,
"free_text": true
}
],
"groups": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"schools": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"seniority_levels": [],
"functions": [],
"years_in_current_company": [],
"years_in_current_position": [],
"years_of_experience": [],
"company_headcounts": [],
"company_types": [],
"profile_languages": [],
"network": [],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
]
},
"companies": {
"keywords": "<string>",
"geo_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"industry_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"company_sizes": [],
"network": [
"1st"
],
"has_jobs": true
},
"sales_nav_companies": {
"keywords": "<string>",
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"account_lists": [
{
"id": "<string>",
"text": "<string>",
"exclude": true
}
],
"company_headcounts": [],
"num_of_followers": [],
"fortune": [],
"account_activities": [],
"annual_revenue": {
"min": 50000000,
"max": 50000000,
"currency": "<string>"
},
"company_headcount_growth": {
"min": 450,
"max": 450
},
"department_headcount": {
"min": 500000,
"max": 500000
},
"department_headcount_growth": {
"min": 450,
"max": 450
},
"hiring_on_linkedin": true,
"first_degree_connection": true,
"saved_accounts_only": true
}
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url"
payload = {
"linkedin_account_sid": "<string>",
"idempotency_key": "<string>",
"people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"company": "<string>",
"school": "<string>",
"network": [],
"locations": [
{
"id": "<string>",
"text": "<string>"
}
],
"industries": [
{
"id": "<string>",
"text": "<string>"
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>"
}
],
"service_categories": [
{
"id": "<string>",
"text": "<string>"
}
],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"followers_of": [
{
"id": "<string>",
"text": "<string>"
}
],
"profile_languages": ["<string>"],
"open_to_volunteer": True
},
"sales_nav_people": {
"keywords": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"current_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"past_titles": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"locations": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"current_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"past_companies": [
{
"id": "<string>",
"text": "<string>",
"exclude": True,
"free_text": True
}
],
"groups": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"schools": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"seniority_levels": [],
"functions": [],
"years_in_current_company": [],
"years_in_current_position": [],
"years_of_experience": [],
"company_headcounts": [],
"company_types": [],
"profile_languages": [],
"network": [],
"connections_of": [
{
"id": "<string>",
"text": "<string>"
}
]
},
"companies": {
"keywords": "<string>",
"geo_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"industry_ids": [
{
"id": "<string>",
"text": "<string>"
}
],
"company_sizes": [],
"network": ["1st"],
"has_jobs": True
},
"sales_nav_companies": {
"keywords": "<string>",
"company_headquarters": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"industries": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"account_lists": [
{
"id": "<string>",
"text": "<string>",
"exclude": True
}
],
"company_headcounts": [],
"num_of_followers": [],
"fortune": [],
"account_activities": [],
"annual_revenue": {
"min": 50000000,
"max": 50000000,
"currency": "<string>"
},
"company_headcount_growth": {
"min": 450,
"max": 450
},
"department_headcount": {
"min": 500000,
"max": 500000
},
"department_headcount_growth": {
"min": 450,
"max": 450
},
"hiring_on_linkedin": True,
"first_degree_connection": True,
"saved_accounts_only": True
}
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
linkedin_account_sid: '<string>',
idempotency_key: '<string>',
people: {
keywords: '<string>',
first_name: '<string>',
last_name: '<string>',
title: '<string>',
company: '<string>',
school: '<string>',
network: [],
locations: [{id: '<string>', text: '<string>'}],
industries: [{id: '<string>', text: '<string>'}],
current_companies: [{id: '<string>', text: '<string>'}],
past_companies: [{id: '<string>', text: '<string>'}],
service_categories: [{id: '<string>', text: '<string>'}],
connections_of: [{id: '<string>', text: '<string>'}],
followers_of: [{id: '<string>', text: '<string>'}],
profile_languages: ['<string>'],
open_to_volunteer: true
},
sales_nav_people: {
keywords: '<string>',
first_name: '<string>',
last_name: '<string>',
current_titles: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
past_titles: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
locations: [{id: '<string>', text: '<string>', exclude: true}],
company_headquarters: [{id: '<string>', text: '<string>', exclude: true}],
industries: [{id: '<string>', text: '<string>', exclude: true}],
current_companies: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
past_companies: [{id: '<string>', text: '<string>', exclude: true, free_text: true}],
groups: [{id: '<string>', text: '<string>', exclude: true}],
schools: [{id: '<string>', text: '<string>', exclude: true}],
seniority_levels: [],
functions: [],
years_in_current_company: [],
years_in_current_position: [],
years_of_experience: [],
company_headcounts: [],
company_types: [],
profile_languages: [],
network: [],
connections_of: [{id: '<string>', text: '<string>'}]
},
companies: {
keywords: '<string>',
geo_ids: [{id: '<string>', text: '<string>'}],
industry_ids: [{id: '<string>', text: '<string>'}],
company_sizes: [],
network: ['1st'],
has_jobs: true
},
sales_nav_companies: {
keywords: '<string>',
company_headquarters: [{id: '<string>', text: '<string>', exclude: true}],
industries: [{id: '<string>', text: '<string>', exclude: true}],
account_lists: [{id: '<string>', text: '<string>', exclude: true}],
company_headcounts: [],
num_of_followers: [],
fortune: [],
account_activities: [],
annual_revenue: {min: 50000000, max: 50000000, currency: '<string>'},
company_headcount_growth: {min: 450, max: 450},
department_headcount: {min: 500000, max: 500000},
department_headcount_growth: {min: 450, max: 450},
hiring_on_linkedin: true,
first_degree_connection: true,
saved_accounts_only: true
}
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url', 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://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_account_sid' => '<string>',
'idempotency_key' => '<string>',
'people' => [
'keywords' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'title' => '<string>',
'company' => '<string>',
'school' => '<string>',
'network' => [
],
'locations' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'industries' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'current_companies' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'past_companies' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'service_categories' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'connections_of' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'followers_of' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'profile_languages' => [
'<string>'
],
'open_to_volunteer' => true
],
'sales_nav_people' => [
'keywords' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'current_titles' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'past_titles' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'locations' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'company_headquarters' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'industries' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'current_companies' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'past_companies' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true,
'free_text' => true
]
],
'groups' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'schools' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'seniority_levels' => [
],
'functions' => [
],
'years_in_current_company' => [
],
'years_in_current_position' => [
],
'years_of_experience' => [
],
'company_headcounts' => [
],
'company_types' => [
],
'profile_languages' => [
],
'network' => [
],
'connections_of' => [
[
'id' => '<string>',
'text' => '<string>'
]
]
],
'companies' => [
'keywords' => '<string>',
'geo_ids' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'industry_ids' => [
[
'id' => '<string>',
'text' => '<string>'
]
],
'company_sizes' => [
],
'network' => [
'1st'
],
'has_jobs' => true
],
'sales_nav_companies' => [
'keywords' => '<string>',
'company_headquarters' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'industries' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'account_lists' => [
[
'id' => '<string>',
'text' => '<string>',
'exclude' => true
]
],
'company_headcounts' => [
],
'num_of_followers' => [
],
'fortune' => [
],
'account_activities' => [
],
'annual_revenue' => [
'min' => 50000000,
'max' => 50000000,
'currency' => '<string>'
],
'company_headcount_growth' => [
'min' => 450,
'max' => 450
],
'department_headcount' => [
'min' => 500000,
'max' => 500000
],
'department_headcount_growth' => [
'min' => 450,
'max' => 450
],
'hiring_on_linkedin' => true,
'first_degree_connection' => true,
'saved_accounts_only' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"network\": [],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"service_categories\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"followers_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"profile_languages\": [\n \"<string>\"\n ],\n \"open_to_volunteer\": true\n },\n \"sales_nav_people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"current_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"groups\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"schools\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"seniority_levels\": [],\n \"functions\": [],\n \"years_in_current_company\": [],\n \"years_in_current_position\": [],\n \"years_of_experience\": [],\n \"company_headcounts\": [],\n \"company_types\": [],\n \"profile_languages\": [],\n \"network\": [],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n },\n \"companies\": {\n \"keywords\": \"<string>\",\n \"geo_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industry_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"company_sizes\": [],\n \"network\": [\n \"1st\"\n ],\n \"has_jobs\": true\n },\n \"sales_nav_companies\": {\n \"keywords\": \"<string>\",\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"account_lists\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headcounts\": [],\n \"num_of_followers\": [],\n \"fortune\": [],\n \"account_activities\": [],\n \"annual_revenue\": {\n \"min\": 50000000,\n \"max\": 50000000,\n \"currency\": \"<string>\"\n },\n \"company_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"department_headcount\": {\n \"min\": 500000,\n \"max\": 500000\n },\n \"department_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"hiring_on_linkedin\": true,\n \"first_degree_connection\": true,\n \"saved_accounts_only\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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))
}HttpResponse<String> response = Unirest.post("https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"network\": [],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"service_categories\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"followers_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"profile_languages\": [\n \"<string>\"\n ],\n \"open_to_volunteer\": true\n },\n \"sales_nav_people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"current_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"groups\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"schools\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"seniority_levels\": [],\n \"functions\": [],\n \"years_in_current_company\": [],\n \"years_in_current_position\": [],\n \"years_of_experience\": [],\n \"company_headcounts\": [],\n \"company_types\": [],\n \"profile_languages\": [],\n \"network\": [],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n },\n \"companies\": {\n \"keywords\": \"<string>\",\n \"geo_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industry_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"company_sizes\": [],\n \"network\": [\n \"1st\"\n ],\n \"has_jobs\": true\n },\n \"sales_nav_companies\": {\n \"keywords\": \"<string>\",\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"account_lists\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headcounts\": [],\n \"num_of_followers\": [],\n \"fortune\": [],\n \"account_activities\": [],\n \"annual_revenue\": {\n \"min\": 50000000,\n \"max\": 50000000,\n \"currency\": \"<string>\"\n },\n \"company_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"department_headcount\": {\n \"min\": 500000,\n \"max\": 500000\n },\n \"department_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"hiring_on_linkedin\": true,\n \"first_degree_connection\": true,\n \"saved_accounts_only\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-scraping/build-search-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_account_sid\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"network\": [],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"service_categories\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"followers_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"profile_languages\": [\n \"<string>\"\n ],\n \"open_to_volunteer\": true\n },\n \"sales_nav_people\": {\n \"keywords\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"current_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_titles\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"locations\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"current_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"past_companies\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true,\n \"free_text\": true\n }\n ],\n \"groups\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"schools\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"seniority_levels\": [],\n \"functions\": [],\n \"years_in_current_company\": [],\n \"years_in_current_position\": [],\n \"years_of_experience\": [],\n \"company_headcounts\": [],\n \"company_types\": [],\n \"profile_languages\": [],\n \"network\": [],\n \"connections_of\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n },\n \"companies\": {\n \"keywords\": \"<string>\",\n \"geo_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"industry_ids\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"company_sizes\": [],\n \"network\": [\n \"1st\"\n ],\n \"has_jobs\": true\n },\n \"sales_nav_companies\": {\n \"keywords\": \"<string>\",\n \"company_headquarters\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"industries\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"account_lists\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"exclude\": true\n }\n ],\n \"company_headcounts\": [],\n \"num_of_followers\": [],\n \"fortune\": [],\n \"account_activities\": [],\n \"annual_revenue\": {\n \"min\": 50000000,\n \"max\": 50000000,\n \"currency\": \"<string>\"\n },\n \"company_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"department_headcount\": {\n \"min\": 500000,\n \"max\": 500000\n },\n \"department_headcount_growth\": {\n \"min\": 450,\n \"max\": 450\n },\n \"hiring_on_linkedin\": true,\n \"first_degree_connection\": true,\n \"saved_accounts_only\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"url": "<string>",
"filters": {},
"resolved": [
{
"member": "<string>",
"query": "<string>",
"lookup_type": "<string>",
"id": "<string>",
"display_name": "<string>",
"alternatives": [
{
"id": "<string>",
"display_name": "<string>"
}
]
}
],
"data_requests": [
{}
]
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
},
"pacing": {
"linkedin_account_sid": "<string>",
"limit_type": "<string>",
"next_call_after": "<string>",
"remaining_today": 1
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.
Team scope for tokens that do not carry one. Ignored when the token already names a team.
Body
Request body of scrape_linkedin_build_search_url.
Executor account (ln_ac_...). OPTIONAL everywhere on this surface. Given: the call runs on that account ONLY; a saturated or held scraping bucket refuses 429 bucket_saturated (with retry_after). Omitted: the service auto-picks one of your connected accounts with remaining capacity (SN verbs pick only Sales-Navigator seats; 422 no_connected_accounts when none is ready, 429 when all are at capacity).
18^ln_ac_Ledger replay guard: a repeat call with the same (team, key) returns the stored outcome; no re-execution. Recommended on every search run. The KEY ALONE decides: the probe does not compare arguments, so reusing one key after changing the arguments hands back the FIRST result. On the twelve search verbs that matters twice over, because switching a call from filters to url (or back) under one key replays instead of running the new search. New search, new key.
128The scrape_linkedin_search_people filters. A text the typeahead offers nothing for is a 422 naming it: these members take ids only.
Show child attributes
Show child attributes
The scrape_linkedin_search_sales_nav_people filters; resolution through the Sales Navigator typeahead, which needs an SN seat.
Show child attributes
Show child attributes
The scrape_linkedin_search_companies filters. A text the typeahead offers nothing for is a 422 naming it.
Show child attributes
Show child attributes
The scrape_linkedin_search_sales_nav_companies filters; resolution through the Sales Navigator typeahead, which needs an SN seat.
Show child attributes
Show child attributes
Response
action success envelope.
true action kebab-case verb; matches the route segment.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes