curl --request POST \
--url https://api.linkedcamp.com/v2/search_url_build \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"keywords": "<string>",
"titles": [
"<string>"
],
"excludeTitles": [
"<string>"
],
"company": "<string>",
"school": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"extraFilters": [
{
"type": "<string>",
"values": [
{
"text": "<string>",
"id": "<string>",
"exclude": true
}
]
}
]
}
'import requests
url = "https://api.linkedcamp.com/v2/search_url_build"
payload = {
"keywords": "<string>",
"titles": ["<string>"],
"excludeTitles": ["<string>"],
"company": "<string>",
"school": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"extraFilters": [
{
"type": "<string>",
"values": [
{
"text": "<string>",
"id": "<string>",
"exclude": True
}
]
}
]
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keywords: '<string>',
titles: ['<string>'],
excludeTitles: ['<string>'],
company: '<string>',
school: '<string>',
firstName: '<string>',
lastName: '<string>',
extraFilters: [
{type: '<string>', values: [{text: '<string>', id: '<string>', exclude: true}]}
]
})
};
fetch('https://api.linkedcamp.com/v2/search_url_build', 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.linkedcamp.com/v2/search_url_build",
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([
'keywords' => '<string>',
'titles' => [
'<string>'
],
'excludeTitles' => [
'<string>'
],
'company' => '<string>',
'school' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'extraFilters' => [
[
'type' => '<string>',
'values' => [
[
'text' => '<string>',
'id' => '<string>',
'exclude' => true
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkedcamp.com/v2/search_url_build"
payload := strings.NewReader("{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-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))
}HttpResponse<String> response = Unirest.post("https://api.linkedcamp.com/v2/search_url_build")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/search_url_build")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/search_url_build");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}Build a LinkedIn search URL
Read-only. It changes nothing.
Turn an audience description into a LinkedIn or Sales Navigator people-search URL, so a campaign source can be described rather than pasted. Returns the url plus what it managed to express — hand it to campaign_set_source.
What it can build: job titles (included and excluded) and free-text keywords with boolean operators. What it CANNOT build: geography, industry, company size, seniority and years-in-role. Sales Navigator only accepts those as numeric ids from its own typeahead (id:103644278 is United States), they cannot be derived from a name, and a wrong id silently searches the wrong audience. For those, either ask the user to paste a Sales Navigator URL with the filters already set, or pass the ids through extraFilters if the user supplies them. Never guess one.
Recruiter (/talent/) URLs cannot be built at all — ask the user for one.
curl --request POST \
--url https://api.linkedcamp.com/v2/search_url_build \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"keywords": "<string>",
"titles": [
"<string>"
],
"excludeTitles": [
"<string>"
],
"company": "<string>",
"school": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"extraFilters": [
{
"type": "<string>",
"values": [
{
"text": "<string>",
"id": "<string>",
"exclude": true
}
]
}
]
}
'import requests
url = "https://api.linkedcamp.com/v2/search_url_build"
payload = {
"keywords": "<string>",
"titles": ["<string>"],
"excludeTitles": ["<string>"],
"company": "<string>",
"school": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"extraFilters": [
{
"type": "<string>",
"values": [
{
"text": "<string>",
"id": "<string>",
"exclude": True
}
]
}
]
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keywords: '<string>',
titles: ['<string>'],
excludeTitles: ['<string>'],
company: '<string>',
school: '<string>',
firstName: '<string>',
lastName: '<string>',
extraFilters: [
{type: '<string>', values: [{text: '<string>', id: '<string>', exclude: true}]}
]
})
};
fetch('https://api.linkedcamp.com/v2/search_url_build', 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.linkedcamp.com/v2/search_url_build",
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([
'keywords' => '<string>',
'titles' => [
'<string>'
],
'excludeTitles' => [
'<string>'
],
'company' => '<string>',
'school' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'extraFilters' => [
[
'type' => '<string>',
'values' => [
[
'text' => '<string>',
'id' => '<string>',
'exclude' => true
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkedcamp.com/v2/search_url_build"
payload := strings.NewReader("{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-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))
}HttpResponse<String> response = Unirest.post("https://api.linkedcamp.com/v2/search_url_build")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/search_url_build")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/search_url_build");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"keywords\": \"<string>\",\n \"titles\": [\n \"<string>\"\n ],\n \"excludeTitles\": [\n \"<string>\"\n ],\n \"company\": \"<string>\",\n \"school\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"extraFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"text\": \"<string>\",\n \"id\": \"<string>\",\n \"exclude\": true\n }\n ]\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}Body
Response
The result, as JSON. Writes answer { "ok": true, "message": ..., "data": ... }.
The response is of type object.
