curl --request POST \
--url https://api.agntdata.dev/v1/data/agnt/companies/discover \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Series A B2B SaaS companies in Europe under 50 employees",
"limit": 25
}
'import requests
url = "https://api.agntdata.dev/v1/data/agnt/companies/discover"
payload = {
"query": "Series A B2B SaaS companies in Europe under 50 employees",
"limit": 25
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'Series A B2B SaaS companies in Europe under 50 employees', limit: 25})
};
fetch('https://api.agntdata.dev/v1/data/agnt/companies/discover', 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.agntdata.dev/v1/data/agnt/companies/discover",
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([
'query' => 'Series A B2B SaaS companies in Europe under 50 employees',
'limit' => 25
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.agntdata.dev/v1/data/agnt/companies/discover"
payload := strings.NewReader("{\n \"query\": \"Series A B2B SaaS companies in Europe under 50 employees\",\n \"limit\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.agntdata.dev/v1/data/agnt/companies/discover")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Series A B2B SaaS companies in Europe under 50 employees\",\n \"limit\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/agnt/companies/discover")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Series A B2B SaaS companies in Europe under 50 employees\",\n \"limit\": 25\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {},
"meta": {
"costCents": 123,
"purchasedBalanceCents": 123,
"subscriptionRemainingCents": 123,
"cached": true,
"latencyMs": 123,
"priceRange": {
"minCents": 123,
"maxCents": 123
},
"budgetCents": 123,
"budgetCentsPerRecord": 123,
"providersAttempted": 123,
"fieldsReturned": [
"<string>"
],
"fieldsMissing": [
"<string>"
],
"records": 123
}
}Discover companies
Find companies matching a set of criteria. Pass either a natural-language query or structured filters (industry, headcount, location, technology, funding, keywords, …). Returns paginated company summaries.
curl --request POST \
--url https://api.agntdata.dev/v1/data/agnt/companies/discover \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Series A B2B SaaS companies in Europe under 50 employees",
"limit": 25
}
'import requests
url = "https://api.agntdata.dev/v1/data/agnt/companies/discover"
payload = {
"query": "Series A B2B SaaS companies in Europe under 50 employees",
"limit": 25
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'Series A B2B SaaS companies in Europe under 50 employees', limit: 25})
};
fetch('https://api.agntdata.dev/v1/data/agnt/companies/discover', 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.agntdata.dev/v1/data/agnt/companies/discover",
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([
'query' => 'Series A B2B SaaS companies in Europe under 50 employees',
'limit' => 25
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.agntdata.dev/v1/data/agnt/companies/discover"
payload := strings.NewReader("{\n \"query\": \"Series A B2B SaaS companies in Europe under 50 employees\",\n \"limit\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.agntdata.dev/v1/data/agnt/companies/discover")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Series A B2B SaaS companies in Europe under 50 employees\",\n \"limit\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/agnt/companies/discover")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Series A B2B SaaS companies in Europe under 50 employees\",\n \"limit\": 25\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {},
"meta": {
"costCents": 123,
"purchasedBalanceCents": 123,
"subscriptionRemainingCents": 123,
"cached": true,
"latencyMs": 123,
"priceRange": {
"minCents": 123,
"maxCents": 123
},
"budgetCents": 123,
"budgetCentsPerRecord": 123,
"providersAttempted": 123,
"fieldsReturned": [
"<string>"
],
"fieldsMissing": [
"<string>"
],
"records": 123
}
}Authorizations
Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...
Body
Free-text query (e.g. "AI startups in healthcare"). Combine with filters or use alone.
1Filter object. Supported keys (each is an array unless noted): industries (array of industry strings — e.g. ["Computer Software", "Internet"]); headcount (string range bucket — one of "1-10", "11-50", "51-200", "201-500", "501-1000", "1001-5000", "5001-10000", "10001+"); company_type (array — e.g. ["educational", "government", "nonprofit", "private", "public", "self_employed"]); technology (array of technology slugs — e.g. ["stripe", "salesforce"]); country (array of ISO-3166 alpha-2 codes — e.g. ["US", "GB"]). Use the keys above exactly as written; flat aliases like industry (singular), headcount_min, or headcount_max are ignored and yield empty results. Example: { "industries": ["Computer Software"], "headcount": "1001-5000", "country": ["US"] }.
Show child attributes
Show child attributes