Sales Pointer - Dynamic Filters
This API returns the necessary data for the Sales Pointer filter types. The response includes the id and text fields (or displayValue if text is not available), along with other relevant details.
cURL 'https://api.enrich.so/v1/api/sales-pointer/filters?query=software engineer&page=1&filter_type=CURRENT_TITLE' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
const axios = require('axios');
axios.get('https://api.enrich.so/v1/api/sales-pointer/filters?query=software engineer&page=1&filter_type=CURRENT_TITLE', {
headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});// Some code
import requests
payload = {'query': 'software engineer', 'page': 1, 'filter_type': "CURRENT_TITLE"}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.enrich.so/v1/api/sales-pointer/filters', params=payload, headers=headers)
print (resp.text)
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.enrich.so/v1/api/sales-pointer/filters?query=software engineer&page=1&filter_type=CURRENT_TITLE")
.get()
.addHeader("accept", "application/json")
.addHeader("authorization", "Bearer <token>")
.build();
Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'
url = URI("https://api.enrich.so/v1/api/sales-pointer/filters?query=software engineer&page=1&filter_type=CURRENT_TITLE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enrich.so/v1/api/sales-pointer/filters?query=software engineer&page=1&filter_type=CURRENT_TITLEsales-pointer/filters?query=software engineer&page=1&filter_type=CURRENT_TITLE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: application/json",
"authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Filter types are :
CURRENT_TITLE
PAST_TITLE
REGION
COMPANY_HEADQUATERS
INDUSTRY
SCHOOL
POSTAL_CODE
FUNCTION
CURRENT_COMPANY
PAST_COMPANY
Example ussage
"filters": [
{
"type": "CURRENT_TITLE",
"values": [
{
"id": "9", (response.data[0].id)
"text": "Software Engineer", (response.data[0].text)
"selectionType": "INCLUDED" | "EXCLUDED"
}
],
"selectedSubFilter": <Number | null>
}
]
Example response
Status Code: 200 OK
{
"success": true,
"message": "Filters found.",
"data": [
{
"displayValue": "Software Engineer",
"id": "9",
"headline": "Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 0,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 9,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Software Engineer"
}
},
{
"displayValue": "Senior Software Engineer",
"id": "39",
"headline": "Senior Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 7,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 16,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Senior Software Engineer"
}
},
{
"displayValue": "Java Software Engineer",
"id": "10738",
"headline": "Java Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 5,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 14,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Java Software Engineer"
}
},
{
"displayValue": "Lead Software Engineer",
"id": "1176",
"headline": "Lead Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 5,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 14,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Lead Software Engineer"
}
},
{
"displayValue": "Associate Software Engineer",
"id": "1845",
"headline": "Associate Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 10,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 19,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Associate Software Engineer"
}
},
{
"displayValue": "Software Test Engineer",
"id": "661",
"headline": "Software Test Engineer",
"headlineV2": {
"attributes": [
{
"start": 0,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 14,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Software Test Engineer"
}
},
{
"displayValue": "Junior Software Engineer",
"id": "3549",
"headline": "Junior Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 7,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 16,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Junior Software Engineer"
}
},
{
"displayValue": "Principal Software Engineer",
"id": "556",
"headline": "Principal Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 10,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 19,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Principal Software Engineer"
}
},
{
"displayValue": "Senior Java Software Engineer",
"id": "23347",
"headline": "Senior Java Software Engineer",
"headlineV2": {
"attributes": [
{
"start": 12,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 21,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Senior Java Software Engineer"
}
},
{
"displayValue": "Software Engineering Manager",
"id": "1685",
"headline": "Software Engineering Manager",
"headlineV2": {
"attributes": [
{
"start": 0,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
},
{
"start": 9,
"length": 8,
"type": {
"com.linkedin.pemberly.text.Bold": {}
},
"attributeKindUnion": {
"bold": {}
}
}
],
"text": "Software Engineering Manager"
}
}
]
}
Status code: 404 NOT FOUND
{
"error": true,
"message": "No Filters found for the given query"
}
Last updated