curl --request POST \
--url https://api.sixtyfour.ai/search/export \
--header 'Content-Type: application/json' \
--data '
{
"search_id": "<string>",
"parsed_query": {},
"mode": "company",
"max_results": 1000,
"exclude_public_ids": [
"<string>"
],
"exclude_entity_ids": [
"<string>"
],
"exclude_list_ids": [
"<string>"
]
}
'import requests
url = "https://api.sixtyfour.ai/search/export"
payload = {
"search_id": "<string>",
"parsed_query": {},
"mode": "company",
"max_results": 1000,
"exclude_public_ids": ["<string>"],
"exclude_entity_ids": ["<string>"],
"exclude_list_ids": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
search_id: '<string>',
parsed_query: {},
mode: 'company',
max_results: 1000,
exclude_public_ids: ['<string>'],
exclude_entity_ids: ['<string>'],
exclude_list_ids: ['<string>']
})
};
fetch('https://api.sixtyfour.ai/search/export', 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.sixtyfour.ai/search/export",
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_id' => '<string>',
'parsed_query' => [
],
'mode' => 'company',
'max_results' => 1000,
'exclude_public_ids' => [
'<string>'
],
'exclude_entity_ids' => [
'<string>'
],
'exclude_list_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.sixtyfour.ai/search/export"
payload := strings.NewReader("{\n \"search_id\": \"<string>\",\n \"parsed_query\": {},\n \"mode\": \"company\",\n \"max_results\": 1000,\n \"exclude_public_ids\": [\n \"<string>\"\n ],\n \"exclude_entity_ids\": [\n \"<string>\"\n ],\n \"exclude_list_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.sixtyfour.ai/search/export")
.header("Content-Type", "application/json")
.body("{\n \"search_id\": \"<string>\",\n \"parsed_query\": {},\n \"mode\": \"company\",\n \"max_results\": 1000,\n \"exclude_public_ids\": [\n \"<string>\"\n ],\n \"exclude_entity_ids\": [\n \"<string>\"\n ],\n \"exclude_list_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/search/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_id\": \"<string>\",\n \"parsed_query\": {},\n \"mode\": \"company\",\n \"max_results\": 1000,\n \"exclude_public_ids\": [\n \"<string>\"\n ],\n \"exclude_entity_ids\": [\n \"<string>\"\n ],\n \"exclude_list_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>",
"status": "<string>",
"message": "<string>"
}{
"detail": "Invalid request body"
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient API credits"
}{
"detail": "Forwarded user_id does not belong to your organization."
}{
"detail": "Search not found or has no parsed_query."
}{
"detail": "Export workflow is already running for this search."
}{
"detail": [
{
"loc": [
"body",
"target_company",
"domain"
],
"msg": "Field required",
"type": "missing",
"input": null,
"ctx": {}
}
]
}{
"detail": "Rate limit exceeded"
}{
"detail": "Internal server error"
}{
"detail": "NL upstream transport error: connection reset by peer"
}{
"detail": "Company search backend endpoint is not configured"
}{
"detail": "Field values request timed out"
}Search Export
Export search results as a CSV file. Poll /search/status/ for a presigned download URL when complete.
curl --request POST \
--url https://api.sixtyfour.ai/search/export \
--header 'Content-Type: application/json' \
--data '
{
"search_id": "<string>",
"parsed_query": {},
"mode": "company",
"max_results": 1000,
"exclude_public_ids": [
"<string>"
],
"exclude_entity_ids": [
"<string>"
],
"exclude_list_ids": [
"<string>"
]
}
'import requests
url = "https://api.sixtyfour.ai/search/export"
payload = {
"search_id": "<string>",
"parsed_query": {},
"mode": "company",
"max_results": 1000,
"exclude_public_ids": ["<string>"],
"exclude_entity_ids": ["<string>"],
"exclude_list_ids": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
search_id: '<string>',
parsed_query: {},
mode: 'company',
max_results: 1000,
exclude_public_ids: ['<string>'],
exclude_entity_ids: ['<string>'],
exclude_list_ids: ['<string>']
})
};
fetch('https://api.sixtyfour.ai/search/export', 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.sixtyfour.ai/search/export",
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_id' => '<string>',
'parsed_query' => [
],
'mode' => 'company',
'max_results' => 1000,
'exclude_public_ids' => [
'<string>'
],
'exclude_entity_ids' => [
'<string>'
],
'exclude_list_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.sixtyfour.ai/search/export"
payload := strings.NewReader("{\n \"search_id\": \"<string>\",\n \"parsed_query\": {},\n \"mode\": \"company\",\n \"max_results\": 1000,\n \"exclude_public_ids\": [\n \"<string>\"\n ],\n \"exclude_entity_ids\": [\n \"<string>\"\n ],\n \"exclude_list_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.sixtyfour.ai/search/export")
.header("Content-Type", "application/json")
.body("{\n \"search_id\": \"<string>\",\n \"parsed_query\": {},\n \"mode\": \"company\",\n \"max_results\": 1000,\n \"exclude_public_ids\": [\n \"<string>\"\n ],\n \"exclude_entity_ids\": [\n \"<string>\"\n ],\n \"exclude_list_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/search/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_id\": \"<string>\",\n \"parsed_query\": {},\n \"mode\": \"company\",\n \"max_results\": 1000,\n \"exclude_public_ids\": [\n \"<string>\"\n ],\n \"exclude_entity_ids\": [\n \"<string>\"\n ],\n \"exclude_list_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>",
"status": "<string>",
"message": "<string>"
}{
"detail": "Invalid request body"
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient API credits"
}{
"detail": "Forwarded user_id does not belong to your organization."
}{
"detail": "Search not found or has no parsed_query."
}{
"detail": "Export workflow is already running for this search."
}{
"detail": [
{
"loc": [
"body",
"target_company",
"domain"
],
"msg": "Field required",
"type": "missing",
"input": null,
"ctx": {}
}
]
}{
"detail": "Rate limit exceeded"
}{
"detail": "Internal server error"
}{
"detail": "NL upstream transport error: connection reset by peer"
}{
"detail": "Company search backend endpoint is not configured"
}{
"detail": "Field values request timed out"
}Headers
Body
Request to export search results as CSV.
Search history ID returned by a previous search. Replays only the query shape; pass exclusions again on this request if they should apply.
Structured filter set returned by a previous search.
Search mode; inferred from DB when not set.
people, company Maximum number of results to return across pages.
People-mode inline identifiers to exclude from results, applied as a post-filter. Accepts LinkedIn public IDs or profile URLs. For company searches, use exclude_entity_ids. Max 1000.
1000Inline identifiers to exclude from results, applied as a post-filter. People mode: LinkedIn public IDs or profile URLs. Company mode: numeric LinkedIn company IDs, company URLs/slugs, or exact website domains (values that resolve to no or multiple companies are ignored). Max 1000.
1000Saved exclusion-list IDs to apply as a post-filter. Each list's entity type must match the search mode (person lists for people searches, company lists for company searches). Max 5.
5Was this page helpful?