API Reference
Analyze Candidate Search Facets
Analyze Candidate Search Facets
curl --request POST \
--url https://developer-api.seekout.io/v1/candidates/search/facets \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"search_result_set_id": "<string>",
"fields": [
"current_title",
"current_company",
"location",
"source"
],
"bucket_limit": 20
}
'import requests
url = "https://developer-api.seekout.io/v1/candidates/search/facets"
payload = {
"search_result_set_id": "<string>",
"fields": ["current_title", "current_company", "location", "source"],
"bucket_limit": 20
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search_result_set_id: '<string>',
fields: ['current_title', 'current_company', 'location', 'source'],
bucket_limit: 20
})
};
fetch('https://developer-api.seekout.io/v1/candidates/search/facets', 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://developer-api.seekout.io/v1/candidates/search/facets",
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([
'search_result_set_id' => '<string>',
'fields' => [
'current_title',
'current_company',
'location',
'source'
],
'bucket_limit' => 20
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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://developer-api.seekout.io/v1/candidates/search/facets"
payload := strings.NewReader("{\n \"search_result_set_id\": \"<string>\",\n \"fields\": [\n \"current_title\",\n \"current_company\",\n \"location\",\n \"source\"\n ],\n \"bucket_limit\": 20\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-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://developer-api.seekout.io/v1/candidates/search/facets")
.header("Idempotency-Key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_result_set_id\": \"<string>\",\n \"fields\": [\n \"current_title\",\n \"current_company\",\n \"location\",\n \"source\"\n ],\n \"bucket_limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/candidates/search/facets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_result_set_id\": \"<string>\",\n \"fields\": [\n \"current_title\",\n \"current_company\",\n \"location\",\n \"source\"\n ],\n \"bucket_limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"analysis_id": "<string>",
"search_result_set_id": "<string>",
"total_count": 1,
"facets": [
{
"field": "current_title",
"buckets": [
{
"value": "<string>",
"count": 6
}
],
"total_suppressed": true,
"suppressed_bucket_count": 25,
"truncated": true,
"total_count": 6,
"suppression_threshold": 5
}
],
"schema_version": "result_set_facet_analysis.v1",
"exact_counts": true,
"source_totals_additive": false,
"policy_ref": "analysis_privacy_policy.v1"
}{
"type": "urn:seekout:developer-api:problem:malformed_json",
"title": "Malformed JSON",
"status": 400,
"detail": "The request body is not valid JSON.",
"code": "malformed_json"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>"
}{
"type": "urn:seekout:developer-api:problem:validation_failed",
"title": "Request validation failed",
"status": 422,
"detail": "The request does not match the operation contract.",
"code": "validation_failed"
}Headers
Body
application/json
Deeper paid facets over one immutable DAPI result set.
Response
Successful Response
Was this page helpful?
⌘I
Analyze Candidate Search Facets
curl --request POST \
--url https://developer-api.seekout.io/v1/candidates/search/facets \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"search_result_set_id": "<string>",
"fields": [
"current_title",
"current_company",
"location",
"source"
],
"bucket_limit": 20
}
'import requests
url = "https://developer-api.seekout.io/v1/candidates/search/facets"
payload = {
"search_result_set_id": "<string>",
"fields": ["current_title", "current_company", "location", "source"],
"bucket_limit": 20
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search_result_set_id: '<string>',
fields: ['current_title', 'current_company', 'location', 'source'],
bucket_limit: 20
})
};
fetch('https://developer-api.seekout.io/v1/candidates/search/facets', 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://developer-api.seekout.io/v1/candidates/search/facets",
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([
'search_result_set_id' => '<string>',
'fields' => [
'current_title',
'current_company',
'location',
'source'
],
'bucket_limit' => 20
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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://developer-api.seekout.io/v1/candidates/search/facets"
payload := strings.NewReader("{\n \"search_result_set_id\": \"<string>\",\n \"fields\": [\n \"current_title\",\n \"current_company\",\n \"location\",\n \"source\"\n ],\n \"bucket_limit\": 20\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-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://developer-api.seekout.io/v1/candidates/search/facets")
.header("Idempotency-Key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_result_set_id\": \"<string>\",\n \"fields\": [\n \"current_title\",\n \"current_company\",\n \"location\",\n \"source\"\n ],\n \"bucket_limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/candidates/search/facets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_result_set_id\": \"<string>\",\n \"fields\": [\n \"current_title\",\n \"current_company\",\n \"location\",\n \"source\"\n ],\n \"bucket_limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"analysis_id": "<string>",
"search_result_set_id": "<string>",
"total_count": 1,
"facets": [
{
"field": "current_title",
"buckets": [
{
"value": "<string>",
"count": 6
}
],
"total_suppressed": true,
"suppressed_bucket_count": 25,
"truncated": true,
"total_count": 6,
"suppression_threshold": 5
}
],
"schema_version": "result_set_facet_analysis.v1",
"exact_counts": true,
"source_totals_additive": false,
"policy_ref": "analysis_privacy_policy.v1"
}{
"type": "urn:seekout:developer-api:problem:malformed_json",
"title": "Malformed JSON",
"status": 400,
"detail": "The request body is not valid JSON.",
"code": "malformed_json"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>"
}{
"type": "urn:seekout:developer-api:problem:validation_failed",
"title": "Request validation failed",
"status": 422,
"detail": "The request does not match the operation contract.",
"code": "validation_failed"
}