Search Companies
curl --request POST \
--url https://api.sixtyfour.ai/v1/companies/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"filters": {
"query": {
"match_phrase": {
"company_name": "Sixtyfour"
}
}
},
"max_results": 1,
"wait_seconds": 0
}
'import requests
url = "https://api.sixtyfour.ai/v1/companies/search"
payload = {
"filters": { "query": { "match_phrase": { "company_name": "Sixtyfour" } } },
"max_results": 1,
"wait_seconds": 0
}
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({
filters: {query: {match_phrase: {company_name: 'Sixtyfour'}}},
max_results: 1,
wait_seconds: 0
})
};
fetch('https://api.sixtyfour.ai/v1/companies/search', 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/v1/companies/search",
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([
'filters' => [
'query' => [
'match_phrase' => [
'company_name' => 'Sixtyfour'
]
]
],
'max_results' => 1,
'wait_seconds' => 0
]),
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.sixtyfour.ai/v1/companies/search"
payload := strings.NewReader("{\n \"filters\": {\n \"query\": {\n \"match_phrase\": {\n \"company_name\": \"Sixtyfour\"\n }\n }\n },\n \"max_results\": 1,\n \"wait_seconds\": 0\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.sixtyfour.ai/v1/companies/search")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"query\": {\n \"match_phrase\": {\n \"company_name\": \"Sixtyfour\"\n }\n }\n },\n \"max_results\": 1,\n \"wait_seconds\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/v1/companies/search")
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 \"filters\": {\n \"query\": {\n \"match_phrase\": {\n \"company_name\": \"Sixtyfour\"\n }\n }\n },\n \"max_results\": 1,\n \"wait_seconds\": 0\n}"
response = http.request(request)
puts response.read_body{
"job_id": "job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"status": "succeeded",
"created_at": "2026-11-13T10:00:00Z",
"next_poll_after": null,
"operation": "companies.search",
"result": {
"search_id": "11111111-1111-4111-8111-111111111111",
"count": 1,
"output_file_id": "file_22222222-2222-4222-8222-222222222222"
},
"counts": {
"total": 1,
"succeeded": 1,
"failed": 0,
"pending": 0
}
}{
"job_id": "job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"status": "running",
"created_at": "2026-11-13T10:00:00Z",
"next_poll_after": 5,
"operation": "companies.search"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "This Idempotency-Key is already in use. Use a new key for a new request.",
"error_code": "idempotency_key_reused",
"request_id": "enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"retryable": false,
"param": null
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"errors": [
{}
],
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}Search
Search Companies
Finds companies using filters, a natural language query or a saved search.
POST
/
v1
/
companies
/
search
Search Companies
curl --request POST \
--url https://api.sixtyfour.ai/v1/companies/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"filters": {
"query": {
"match_phrase": {
"company_name": "Sixtyfour"
}
}
},
"max_results": 1,
"wait_seconds": 0
}
'import requests
url = "https://api.sixtyfour.ai/v1/companies/search"
payload = {
"filters": { "query": { "match_phrase": { "company_name": "Sixtyfour" } } },
"max_results": 1,
"wait_seconds": 0
}
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({
filters: {query: {match_phrase: {company_name: 'Sixtyfour'}}},
max_results: 1,
wait_seconds: 0
})
};
fetch('https://api.sixtyfour.ai/v1/companies/search', 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/v1/companies/search",
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([
'filters' => [
'query' => [
'match_phrase' => [
'company_name' => 'Sixtyfour'
]
]
],
'max_results' => 1,
'wait_seconds' => 0
]),
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.sixtyfour.ai/v1/companies/search"
payload := strings.NewReader("{\n \"filters\": {\n \"query\": {\n \"match_phrase\": {\n \"company_name\": \"Sixtyfour\"\n }\n }\n },\n \"max_results\": 1,\n \"wait_seconds\": 0\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.sixtyfour.ai/v1/companies/search")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"query\": {\n \"match_phrase\": {\n \"company_name\": \"Sixtyfour\"\n }\n }\n },\n \"max_results\": 1,\n \"wait_seconds\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/v1/companies/search")
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 \"filters\": {\n \"query\": {\n \"match_phrase\": {\n \"company_name\": \"Sixtyfour\"\n }\n }\n },\n \"max_results\": 1,\n \"wait_seconds\": 0\n}"
response = http.request(request)
puts response.read_body{
"job_id": "job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"status": "succeeded",
"created_at": "2026-11-13T10:00:00Z",
"next_poll_after": null,
"operation": "companies.search",
"result": {
"search_id": "11111111-1111-4111-8111-111111111111",
"count": 1,
"output_file_id": "file_22222222-2222-4222-8222-222222222222"
},
"counts": {
"total": 1,
"succeeded": 1,
"failed": 0,
"pending": 0
}
}{
"job_id": "job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"status": "running",
"created_at": "2026-11-13T10:00:00Z",
"next_poll_after": 5,
"operation": "companies.search"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "This Idempotency-Key is already in use. Use a new key for a new request.",
"error_code": "idempotency_key_reused",
"request_id": "enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"retryable": false,
"param": null
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"errors": [
{}
],
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}Body
application/json
Response
Job finished within the wait window.
Was this page helpful?