curl --request POST \
--url https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"page": 123,
"organization_ids": [
123
],
"description": "<string>",
"locations": [
123
],
"industries": [
123
],
"industries_exclude": [
123
],
"keywords": [
123
],
"employees_start": 123,
"employees_end": 123,
"founded_date_start": "2023-12-25",
"founded_date_end": "2023-12-25",
"revenue_start": 123,
"revenue_end": 123,
"domains": [
"<string>"
],
"domain_rank_start": 123,
"domain_rank_end": 123,
"domain_traffic_start": 123,
"domain_traffic_end": 123,
"web_technologies": [
123
],
"linkedin_public_identifiers": [
"<string>"
],
"funding_types": [],
"funding_total_start": 123,
"funding_total_end": 123,
"funding_event_date_featured_start": "2023-12-25",
"funding_event_date_featured_end": "2023-12-25",
"job_post_title": "<string>",
"job_post_description": "<string>",
"job_post_is_remote": true,
"job_post_is_active": true,
"job_post_date_featured_start": "2023-12-25",
"job_post_date_featured_end": "2023-12-25",
"job_post_locations": [
123
],
"job_post_locations_exclude": [
123
],
"simple_event_date_featured_start": "2023-12-25",
"simple_event_date_featured_end": "2023-12-25"
}
'import requests
url = "https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/"
payload = {
"page": 123,
"organization_ids": [123],
"description": "<string>",
"locations": [123],
"industries": [123],
"industries_exclude": [123],
"keywords": [123],
"employees_start": 123,
"employees_end": 123,
"founded_date_start": "2023-12-25",
"founded_date_end": "2023-12-25",
"revenue_start": 123,
"revenue_end": 123,
"domains": ["<string>"],
"domain_rank_start": 123,
"domain_rank_end": 123,
"domain_traffic_start": 123,
"domain_traffic_end": 123,
"web_technologies": [123],
"linkedin_public_identifiers": ["<string>"],
"funding_types": [],
"funding_total_start": 123,
"funding_total_end": 123,
"funding_event_date_featured_start": "2023-12-25",
"funding_event_date_featured_end": "2023-12-25",
"job_post_title": "<string>",
"job_post_description": "<string>",
"job_post_is_remote": True,
"job_post_is_active": True,
"job_post_date_featured_start": "2023-12-25",
"job_post_date_featured_end": "2023-12-25",
"job_post_locations": [123],
"job_post_locations_exclude": [123],
"simple_event_date_featured_start": "2023-12-25",
"simple_event_date_featured_end": "2023-12-25"
}
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({
page: 123,
organization_ids: [123],
description: '<string>',
locations: [123],
industries: [123],
industries_exclude: [123],
keywords: [123],
employees_start: 123,
employees_end: 123,
founded_date_start: '2023-12-25',
founded_date_end: '2023-12-25',
revenue_start: 123,
revenue_end: 123,
domains: ['<string>'],
domain_rank_start: 123,
domain_rank_end: 123,
domain_traffic_start: 123,
domain_traffic_end: 123,
web_technologies: [123],
linkedin_public_identifiers: ['<string>'],
funding_types: [],
funding_total_start: 123,
funding_total_end: 123,
funding_event_date_featured_start: '2023-12-25',
funding_event_date_featured_end: '2023-12-25',
job_post_title: '<string>',
job_post_description: '<string>',
job_post_is_remote: true,
job_post_is_active: true,
job_post_date_featured_start: '2023-12-25',
job_post_date_featured_end: '2023-12-25',
job_post_locations: [123],
job_post_locations_exclude: [123],
simple_event_date_featured_start: '2023-12-25',
simple_event_date_featured_end: '2023-12-25'
})
};
fetch('https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page: 123,
organization_ids: [123],
description: '<string>',
locations: [123],
industries: [123],
industries_exclude: [123],
keywords: [123],
employees_start: 123,
employees_end: 123,
founded_date_start: '2023-12-25',
founded_date_end: '2023-12-25',
revenue_start: 123,
revenue_end: 123,
domains: ['<string>'],
domain_rank_start: 123,
domain_rank_end: 123,
domain_traffic_start: 123,
domain_traffic_end: 123,
web_technologies: [123],
linkedin_public_identifiers: ['<string>'],
funding_types: [],
funding_total_start: 123,
funding_total_end: 123,
funding_event_date_featured_start: '2023-12-25',
funding_event_date_featured_end: '2023-12-25',
job_post_title: '<string>',
job_post_description: '<string>',
job_post_is_remote: true,
job_post_is_active: true,
job_post_date_featured_start: '2023-12-25',
job_post_date_featured_end: '2023-12-25',
job_post_locations: [123],
job_post_locations_exclude: [123],
simple_event_date_featured_start: '2023-12-25',
simple_event_date_featured_end: '2023-12-25'
})
};
fetch('https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/"
payload := strings.NewReader("{\n \"page\": 123,\n \"organization_ids\": [\n 123\n ],\n \"description\": \"<string>\",\n \"locations\": [\n 123\n ],\n \"industries\": [\n 123\n ],\n \"industries_exclude\": [\n 123\n ],\n \"keywords\": [\n 123\n ],\n \"employees_start\": 123,\n \"employees_end\": 123,\n \"founded_date_start\": \"2023-12-25\",\n \"founded_date_end\": \"2023-12-25\",\n \"revenue_start\": 123,\n \"revenue_end\": 123,\n \"domains\": [\n \"<string>\"\n ],\n \"domain_rank_start\": 123,\n \"domain_rank_end\": 123,\n \"domain_traffic_start\": 123,\n \"domain_traffic_end\": 123,\n \"web_technologies\": [\n 123\n ],\n \"linkedin_public_identifiers\": [\n \"<string>\"\n ],\n \"funding_types\": [],\n \"funding_total_start\": 123,\n \"funding_total_end\": 123,\n \"funding_event_date_featured_start\": \"2023-12-25\",\n \"funding_event_date_featured_end\": \"2023-12-25\",\n \"job_post_title\": \"<string>\",\n \"job_post_description\": \"<string>\",\n \"job_post_is_remote\": true,\n \"job_post_is_active\": true,\n \"job_post_date_featured_start\": \"2023-12-25\",\n \"job_post_date_featured_end\": \"2023-12-25\",\n \"job_post_locations\": [\n 123\n ],\n \"job_post_locations_exclude\": [\n 123\n ],\n \"simple_event_date_featured_start\": \"2023-12-25\",\n \"simple_event_date_featured_end\": \"2023-12-25\"\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))
}require 'uri'
require 'net/http'
url = URI("https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/")
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 \"page\": 123,\n \"organization_ids\": [\n 123\n ],\n \"description\": \"<string>\",\n \"locations\": [\n 123\n ],\n \"industries\": [\n 123\n ],\n \"industries_exclude\": [\n 123\n ],\n \"keywords\": [\n 123\n ],\n \"employees_start\": 123,\n \"employees_end\": 123,\n \"founded_date_start\": \"2023-12-25\",\n \"founded_date_end\": \"2023-12-25\",\n \"revenue_start\": 123,\n \"revenue_end\": 123,\n \"domains\": [\n \"<string>\"\n ],\n \"domain_rank_start\": 123,\n \"domain_rank_end\": 123,\n \"domain_traffic_start\": 123,\n \"domain_traffic_end\": 123,\n \"web_technologies\": [\n 123\n ],\n \"linkedin_public_identifiers\": [\n \"<string>\"\n ],\n \"funding_types\": [],\n \"funding_total_start\": 123,\n \"funding_total_end\": 123,\n \"funding_event_date_featured_start\": \"2023-12-25\",\n \"funding_event_date_featured_end\": \"2023-12-25\",\n \"job_post_title\": \"<string>\",\n \"job_post_description\": \"<string>\",\n \"job_post_is_remote\": true,\n \"job_post_is_active\": true,\n \"job_post_date_featured_start\": \"2023-12-25\",\n \"job_post_date_featured_end\": \"2023-12-25\",\n \"job_post_locations\": [\n 123\n ],\n \"job_post_locations_exclude\": [\n 123\n ],\n \"simple_event_date_featured_start\": \"2023-12-25\",\n \"simple_event_date_featured_end\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/",
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([
'page' => 123,
'organization_ids' => [
123
],
'description' => '<string>',
'locations' => [
123
],
'industries' => [
123
],
'industries_exclude' => [
123
],
'keywords' => [
123
],
'employees_start' => 123,
'employees_end' => 123,
'founded_date_start' => '2023-12-25',
'founded_date_end' => '2023-12-25',
'revenue_start' => 123,
'revenue_end' => 123,
'domains' => [
'<string>'
],
'domain_rank_start' => 123,
'domain_rank_end' => 123,
'domain_traffic_start' => 123,
'domain_traffic_end' => 123,
'web_technologies' => [
123
],
'linkedin_public_identifiers' => [
'<string>'
],
'funding_types' => [
],
'funding_total_start' => 123,
'funding_total_end' => 123,
'funding_event_date_featured_start' => '2023-12-25',
'funding_event_date_featured_end' => '2023-12-25',
'job_post_title' => '<string>',
'job_post_description' => '<string>',
'job_post_is_remote' => true,
'job_post_is_active' => true,
'job_post_date_featured_start' => '2023-12-25',
'job_post_date_featured_end' => '2023-12-25',
'job_post_locations' => [
123
],
'job_post_locations_exclude' => [
123
],
'simple_event_date_featured_start' => '2023-12-25',
'simple_event_date_featured_end' => '2023-12-25'
]),
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;
}HttpResponse<String> response = Unirest.post("https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 123,\n \"organization_ids\": [\n 123\n ],\n \"description\": \"<string>\",\n \"locations\": [\n 123\n ],\n \"industries\": [\n 123\n ],\n \"industries_exclude\": [\n 123\n ],\n \"keywords\": [\n 123\n ],\n \"employees_start\": 123,\n \"employees_end\": 123,\n \"founded_date_start\": \"2023-12-25\",\n \"founded_date_end\": \"2023-12-25\",\n \"revenue_start\": 123,\n \"revenue_end\": 123,\n \"domains\": [\n \"<string>\"\n ],\n \"domain_rank_start\": 123,\n \"domain_rank_end\": 123,\n \"domain_traffic_start\": 123,\n \"domain_traffic_end\": 123,\n \"web_technologies\": [\n 123\n ],\n \"linkedin_public_identifiers\": [\n \"<string>\"\n ],\n \"funding_types\": [],\n \"funding_total_start\": 123,\n \"funding_total_end\": 123,\n \"funding_event_date_featured_start\": \"2023-12-25\",\n \"funding_event_date_featured_end\": \"2023-12-25\",\n \"job_post_title\": \"<string>\",\n \"job_post_description\": \"<string>\",\n \"job_post_is_remote\": true,\n \"job_post_is_active\": true,\n \"job_post_date_featured_start\": \"2023-12-25\",\n \"job_post_date_featured_end\": \"2023-12-25\",\n \"job_post_locations\": [\n 123\n ],\n \"job_post_locations_exclude\": [\n 123\n ],\n \"simple_event_date_featured_start\": \"2023-12-25\",\n \"simple_event_date_featured_end\": \"2023-12-25\"\n}")
.asString();{
"total_search_results": 1
}{
"detail": "Authentication credentials were not provided."
}Company search API: result totals
Get the total number of matches for an organization search.
curl --request POST \
--url https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"page": 123,
"organization_ids": [
123
],
"description": "<string>",
"locations": [
123
],
"industries": [
123
],
"industries_exclude": [
123
],
"keywords": [
123
],
"employees_start": 123,
"employees_end": 123,
"founded_date_start": "2023-12-25",
"founded_date_end": "2023-12-25",
"revenue_start": 123,
"revenue_end": 123,
"domains": [
"<string>"
],
"domain_rank_start": 123,
"domain_rank_end": 123,
"domain_traffic_start": 123,
"domain_traffic_end": 123,
"web_technologies": [
123
],
"linkedin_public_identifiers": [
"<string>"
],
"funding_types": [],
"funding_total_start": 123,
"funding_total_end": 123,
"funding_event_date_featured_start": "2023-12-25",
"funding_event_date_featured_end": "2023-12-25",
"job_post_title": "<string>",
"job_post_description": "<string>",
"job_post_is_remote": true,
"job_post_is_active": true,
"job_post_date_featured_start": "2023-12-25",
"job_post_date_featured_end": "2023-12-25",
"job_post_locations": [
123
],
"job_post_locations_exclude": [
123
],
"simple_event_date_featured_start": "2023-12-25",
"simple_event_date_featured_end": "2023-12-25"
}
'import requests
url = "https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/"
payload = {
"page": 123,
"organization_ids": [123],
"description": "<string>",
"locations": [123],
"industries": [123],
"industries_exclude": [123],
"keywords": [123],
"employees_start": 123,
"employees_end": 123,
"founded_date_start": "2023-12-25",
"founded_date_end": "2023-12-25",
"revenue_start": 123,
"revenue_end": 123,
"domains": ["<string>"],
"domain_rank_start": 123,
"domain_rank_end": 123,
"domain_traffic_start": 123,
"domain_traffic_end": 123,
"web_technologies": [123],
"linkedin_public_identifiers": ["<string>"],
"funding_types": [],
"funding_total_start": 123,
"funding_total_end": 123,
"funding_event_date_featured_start": "2023-12-25",
"funding_event_date_featured_end": "2023-12-25",
"job_post_title": "<string>",
"job_post_description": "<string>",
"job_post_is_remote": True,
"job_post_is_active": True,
"job_post_date_featured_start": "2023-12-25",
"job_post_date_featured_end": "2023-12-25",
"job_post_locations": [123],
"job_post_locations_exclude": [123],
"simple_event_date_featured_start": "2023-12-25",
"simple_event_date_featured_end": "2023-12-25"
}
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({
page: 123,
organization_ids: [123],
description: '<string>',
locations: [123],
industries: [123],
industries_exclude: [123],
keywords: [123],
employees_start: 123,
employees_end: 123,
founded_date_start: '2023-12-25',
founded_date_end: '2023-12-25',
revenue_start: 123,
revenue_end: 123,
domains: ['<string>'],
domain_rank_start: 123,
domain_rank_end: 123,
domain_traffic_start: 123,
domain_traffic_end: 123,
web_technologies: [123],
linkedin_public_identifiers: ['<string>'],
funding_types: [],
funding_total_start: 123,
funding_total_end: 123,
funding_event_date_featured_start: '2023-12-25',
funding_event_date_featured_end: '2023-12-25',
job_post_title: '<string>',
job_post_description: '<string>',
job_post_is_remote: true,
job_post_is_active: true,
job_post_date_featured_start: '2023-12-25',
job_post_date_featured_end: '2023-12-25',
job_post_locations: [123],
job_post_locations_exclude: [123],
simple_event_date_featured_start: '2023-12-25',
simple_event_date_featured_end: '2023-12-25'
})
};
fetch('https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page: 123,
organization_ids: [123],
description: '<string>',
locations: [123],
industries: [123],
industries_exclude: [123],
keywords: [123],
employees_start: 123,
employees_end: 123,
founded_date_start: '2023-12-25',
founded_date_end: '2023-12-25',
revenue_start: 123,
revenue_end: 123,
domains: ['<string>'],
domain_rank_start: 123,
domain_rank_end: 123,
domain_traffic_start: 123,
domain_traffic_end: 123,
web_technologies: [123],
linkedin_public_identifiers: ['<string>'],
funding_types: [],
funding_total_start: 123,
funding_total_end: 123,
funding_event_date_featured_start: '2023-12-25',
funding_event_date_featured_end: '2023-12-25',
job_post_title: '<string>',
job_post_description: '<string>',
job_post_is_remote: true,
job_post_is_active: true,
job_post_date_featured_start: '2023-12-25',
job_post_date_featured_end: '2023-12-25',
job_post_locations: [123],
job_post_locations_exclude: [123],
simple_event_date_featured_start: '2023-12-25',
simple_event_date_featured_end: '2023-12-25'
})
};
fetch('https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/"
payload := strings.NewReader("{\n \"page\": 123,\n \"organization_ids\": [\n 123\n ],\n \"description\": \"<string>\",\n \"locations\": [\n 123\n ],\n \"industries\": [\n 123\n ],\n \"industries_exclude\": [\n 123\n ],\n \"keywords\": [\n 123\n ],\n \"employees_start\": 123,\n \"employees_end\": 123,\n \"founded_date_start\": \"2023-12-25\",\n \"founded_date_end\": \"2023-12-25\",\n \"revenue_start\": 123,\n \"revenue_end\": 123,\n \"domains\": [\n \"<string>\"\n ],\n \"domain_rank_start\": 123,\n \"domain_rank_end\": 123,\n \"domain_traffic_start\": 123,\n \"domain_traffic_end\": 123,\n \"web_technologies\": [\n 123\n ],\n \"linkedin_public_identifiers\": [\n \"<string>\"\n ],\n \"funding_types\": [],\n \"funding_total_start\": 123,\n \"funding_total_end\": 123,\n \"funding_event_date_featured_start\": \"2023-12-25\",\n \"funding_event_date_featured_end\": \"2023-12-25\",\n \"job_post_title\": \"<string>\",\n \"job_post_description\": \"<string>\",\n \"job_post_is_remote\": true,\n \"job_post_is_active\": true,\n \"job_post_date_featured_start\": \"2023-12-25\",\n \"job_post_date_featured_end\": \"2023-12-25\",\n \"job_post_locations\": [\n 123\n ],\n \"job_post_locations_exclude\": [\n 123\n ],\n \"simple_event_date_featured_start\": \"2023-12-25\",\n \"simple_event_date_featured_end\": \"2023-12-25\"\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))
}require 'uri'
require 'net/http'
url = URI("https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/")
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 \"page\": 123,\n \"organization_ids\": [\n 123\n ],\n \"description\": \"<string>\",\n \"locations\": [\n 123\n ],\n \"industries\": [\n 123\n ],\n \"industries_exclude\": [\n 123\n ],\n \"keywords\": [\n 123\n ],\n \"employees_start\": 123,\n \"employees_end\": 123,\n \"founded_date_start\": \"2023-12-25\",\n \"founded_date_end\": \"2023-12-25\",\n \"revenue_start\": 123,\n \"revenue_end\": 123,\n \"domains\": [\n \"<string>\"\n ],\n \"domain_rank_start\": 123,\n \"domain_rank_end\": 123,\n \"domain_traffic_start\": 123,\n \"domain_traffic_end\": 123,\n \"web_technologies\": [\n 123\n ],\n \"linkedin_public_identifiers\": [\n \"<string>\"\n ],\n \"funding_types\": [],\n \"funding_total_start\": 123,\n \"funding_total_end\": 123,\n \"funding_event_date_featured_start\": \"2023-12-25\",\n \"funding_event_date_featured_end\": \"2023-12-25\",\n \"job_post_title\": \"<string>\",\n \"job_post_description\": \"<string>\",\n \"job_post_is_remote\": true,\n \"job_post_is_active\": true,\n \"job_post_date_featured_start\": \"2023-12-25\",\n \"job_post_date_featured_end\": \"2023-12-25\",\n \"job_post_locations\": [\n 123\n ],\n \"job_post_locations_exclude\": [\n 123\n ],\n \"simple_event_date_featured_start\": \"2023-12-25\",\n \"simple_event_date_featured_end\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/",
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([
'page' => 123,
'organization_ids' => [
123
],
'description' => '<string>',
'locations' => [
123
],
'industries' => [
123
],
'industries_exclude' => [
123
],
'keywords' => [
123
],
'employees_start' => 123,
'employees_end' => 123,
'founded_date_start' => '2023-12-25',
'founded_date_end' => '2023-12-25',
'revenue_start' => 123,
'revenue_end' => 123,
'domains' => [
'<string>'
],
'domain_rank_start' => 123,
'domain_rank_end' => 123,
'domain_traffic_start' => 123,
'domain_traffic_end' => 123,
'web_technologies' => [
123
],
'linkedin_public_identifiers' => [
'<string>'
],
'funding_types' => [
],
'funding_total_start' => 123,
'funding_total_end' => 123,
'funding_event_date_featured_start' => '2023-12-25',
'funding_event_date_featured_end' => '2023-12-25',
'job_post_title' => '<string>',
'job_post_description' => '<string>',
'job_post_is_remote' => true,
'job_post_is_active' => true,
'job_post_date_featured_start' => '2023-12-25',
'job_post_date_featured_end' => '2023-12-25',
'job_post_locations' => [
123
],
'job_post_locations_exclude' => [
123
],
'simple_event_date_featured_start' => '2023-12-25',
'simple_event_date_featured_end' => '2023-12-25'
]),
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;
}HttpResponse<String> response = Unirest.post("https://api-v2.forager.ai/api/{account_id}/datastorage/organization_search/totals/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 123,\n \"organization_ids\": [\n 123\n ],\n \"description\": \"<string>\",\n \"locations\": [\n 123\n ],\n \"industries\": [\n 123\n ],\n \"industries_exclude\": [\n 123\n ],\n \"keywords\": [\n 123\n ],\n \"employees_start\": 123,\n \"employees_end\": 123,\n \"founded_date_start\": \"2023-12-25\",\n \"founded_date_end\": \"2023-12-25\",\n \"revenue_start\": 123,\n \"revenue_end\": 123,\n \"domains\": [\n \"<string>\"\n ],\n \"domain_rank_start\": 123,\n \"domain_rank_end\": 123,\n \"domain_traffic_start\": 123,\n \"domain_traffic_end\": 123,\n \"web_technologies\": [\n 123\n ],\n \"linkedin_public_identifiers\": [\n \"<string>\"\n ],\n \"funding_types\": [],\n \"funding_total_start\": 123,\n \"funding_total_end\": 123,\n \"funding_event_date_featured_start\": \"2023-12-25\",\n \"funding_event_date_featured_end\": \"2023-12-25\",\n \"job_post_title\": \"<string>\",\n \"job_post_description\": \"<string>\",\n \"job_post_is_remote\": true,\n \"job_post_is_active\": true,\n \"job_post_date_featured_start\": \"2023-12-25\",\n \"job_post_date_featured_end\": \"2023-12-25\",\n \"job_post_locations\": [\n 123\n ],\n \"job_post_locations_exclude\": [\n 123\n ],\n \"simple_event_date_featured_start\": \"2023-12-25\",\n \"simple_event_date_featured_end\": \"2023-12-25\"\n}")
.asString();{
"total_search_results": 1
}{
"detail": "Authentication credentials were not provided."
}When to use this endpoint
You want to know how many companies a company search would return before paging through results. Thetotals endpoint takes the same body as the search and returns only the count, so count first and page only through the matches you need.
Example request
curl -X POST "https://api-v2.forager.ai/api/$FORAGER_ACCOUNT_ID/datastorage/organization_search/totals/" \
-H "X-API-KEY: $FORAGER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"industries": [
4
],
"employees_start": 50,
"employees_end": 200
}'
FORAGER_API_KEY and FORAGER_ACCOUNT_ID as in the quickstart.
Example response
{
"total_search_results": 1
}
Credits
The credit cost of this operation is not documented yet. See API credits and pricing.Authorizations
Path Parameters
Body
Organization search request serializer.
To get a list of IDs use Organizations lookup endpoint.
To get a list of IDs use Locations lookup endpoint.
To get a list of IDs use Industries lookup endpoint.
To get a list of IDs use Industries lookup endpoint.
To get a list of IDs use Organization keywords lookup endpoint.
To get a list of IDs use Web technologies lookup endpoint.
LinkedIn organization "Public identifier/Slug/ID" - "linkedin.com/company/!slug!/".
angel- Angelconvertible_note- Convertible Notecorporate_round- Corporate Rounddebt_financing- Debt Financingequity_crowdfunding- Equity Crowdfundinggrant- Grantinitial_coin_offering- Initial coin offering (ICO)non_equity_assistance- Non-Equity Assistancepost_ipo_debt- Post-IPO Debtpost_ipo_equity- Post-IPO Equitypost_ipo_secondary- Post-IPO Secondarypre_seed- Pre-Seedprivate_equity- Private Equityproduct_crowdfunding- Product Crowdfundingsecondary_market- Secondary Marketseed- Seedseries_a- Series Aseries_b- Series Bseries_c- Series Cseries_d- Series Dseries_e- Series Eseries_f- Series Fseries_g- Series Gseries_h- Series Hseries_i- Series Iseries_j- Series Jseries_unknown- Venture - Series Unknownundisclosed- Undisclosed
angel, convertible_note, corporate_round, debt_financing, equity_crowdfunding, grant, initial_coin_offering, non_equity_assistance, post_ipo_debt, post_ipo_equity, post_ipo_secondary, pre_seed, private_equity, product_crowdfunding, secondary_market, seed, series_a, series_b, series_c, series_d, series_e, series_f, series_g, series_h, series_i, series_j, series_unknown, undisclosed This field supports a boolean text search query.
This field supports a boolean text search query.
To get a list of IDs use Locations lookup endpoint.
To get a list of IDs use Locations lookup endpoint.
product_hunt- Product Huntform_c_sec_gov- Form C sec.govform_d_sec_gov- Form D sec.gov
product_hunt, form_c_sec_gov, form_d_sec_gov report_released- Report releasedpromoted_on_site- Promoted on site
report_released, promoted_on_site Response
Organization search totals response serializer.
x >= 0