Search for accounts
curl --request POST \
--url https://api.getpg.ai/public-api/v1/accounts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"company_name": "<string>",
"page": 0,
"per_page": 25,
"public_company": true,
"offset": 0
}
'import requests
url = "https://api.getpg.ai/public-api/v1/accounts"
payload = {
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"company_name": "<string>",
"page": 0,
"per_page": 25,
"public_company": True,
"offset": 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({
industry: '<string>',
employee_size_category: '<string>',
revenue_category: '<string>',
country: '<string>',
company_name: '<string>',
page: 0,
per_page: 25,
public_company: true,
offset: 0
})
};
fetch('https://api.getpg.ai/public-api/v1/accounts', 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.getpg.ai/public-api/v1/accounts",
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([
'industry' => '<string>',
'employee_size_category' => '<string>',
'revenue_category' => '<string>',
'country' => '<string>',
'company_name' => '<string>',
'page' => 0,
'per_page' => 25,
'public_company' => true,
'offset' => 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.getpg.ai/public-api/v1/accounts"
payload := strings.NewReader("{\n \"industry\": \"<string>\",\n \"employee_size_category\": \"<string>\",\n \"revenue_category\": \"<string>\",\n \"country\": \"<string>\",\n \"company_name\": \"<string>\",\n \"page\": 0,\n \"per_page\": 25,\n \"public_company\": true,\n \"offset\": 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.getpg.ai/public-api/v1/accounts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"industry\": \"<string>\",\n \"employee_size_category\": \"<string>\",\n \"revenue_category\": \"<string>\",\n \"country\": \"<string>\",\n \"company_name\": \"<string>\",\n \"page\": 0,\n \"per_page\": 25,\n \"public_company\": true,\n \"offset\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getpg.ai/public-api/v1/accounts")
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 \"industry\": \"<string>\",\n \"employee_size_category\": \"<string>\",\n \"revenue_category\": \"<string>\",\n \"country\": \"<string>\",\n \"company_name\": \"<string>\",\n \"page\": 0,\n \"per_page\": 25,\n \"public_company\": true,\n \"offset\": 0\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"domain": "<string>",
"website": "<string>",
"public_company": true,
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"website_domain": "<string>",
"country_code": "<string>",
"linkedin_url": "<string>",
"hq_city": "<string>",
"hq_state": "<string>",
"hq_address": "<string>",
"hq_postcode": "<string>",
"hq_country_name": "<string>",
"region": "<string>",
"ceo": "<string>",
"sector": "<string>",
"revenue_range": "<string>",
"employee_count_range": "<string>",
"full_time_employees": 123,
"alternative_domains": [
"<string>"
],
"alternative_names": [
"<string>"
],
"tags": [
"<string>"
],
"description": "<string>",
"stock_ticker": "<string>",
"market_cap": 123,
"stock_currency": "<string>",
"stock_exchange_name": "<string>",
"stock_exchange_symbol": "<string>"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"total_items": 123,
"total_pages": 123,
"has_next": true,
"has_previous": true
},
"request": {
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"public_company": true,
"company_name": "<string>",
"page": 123,
"per_page": 123
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Accounts
Search for accounts
Search for accounts using various filters. No search filters required - empty body returns all results.
POST
/
accounts
Search for accounts
curl --request POST \
--url https://api.getpg.ai/public-api/v1/accounts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"company_name": "<string>",
"page": 0,
"per_page": 25,
"public_company": true,
"offset": 0
}
'import requests
url = "https://api.getpg.ai/public-api/v1/accounts"
payload = {
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"company_name": "<string>",
"page": 0,
"per_page": 25,
"public_company": True,
"offset": 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({
industry: '<string>',
employee_size_category: '<string>',
revenue_category: '<string>',
country: '<string>',
company_name: '<string>',
page: 0,
per_page: 25,
public_company: true,
offset: 0
})
};
fetch('https://api.getpg.ai/public-api/v1/accounts', 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.getpg.ai/public-api/v1/accounts",
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([
'industry' => '<string>',
'employee_size_category' => '<string>',
'revenue_category' => '<string>',
'country' => '<string>',
'company_name' => '<string>',
'page' => 0,
'per_page' => 25,
'public_company' => true,
'offset' => 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.getpg.ai/public-api/v1/accounts"
payload := strings.NewReader("{\n \"industry\": \"<string>\",\n \"employee_size_category\": \"<string>\",\n \"revenue_category\": \"<string>\",\n \"country\": \"<string>\",\n \"company_name\": \"<string>\",\n \"page\": 0,\n \"per_page\": 25,\n \"public_company\": true,\n \"offset\": 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.getpg.ai/public-api/v1/accounts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"industry\": \"<string>\",\n \"employee_size_category\": \"<string>\",\n \"revenue_category\": \"<string>\",\n \"country\": \"<string>\",\n \"company_name\": \"<string>\",\n \"page\": 0,\n \"per_page\": 25,\n \"public_company\": true,\n \"offset\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getpg.ai/public-api/v1/accounts")
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 \"industry\": \"<string>\",\n \"employee_size_category\": \"<string>\",\n \"revenue_category\": \"<string>\",\n \"country\": \"<string>\",\n \"company_name\": \"<string>\",\n \"page\": 0,\n \"per_page\": 25,\n \"public_company\": true,\n \"offset\": 0\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"domain": "<string>",
"website": "<string>",
"public_company": true,
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"website_domain": "<string>",
"country_code": "<string>",
"linkedin_url": "<string>",
"hq_city": "<string>",
"hq_state": "<string>",
"hq_address": "<string>",
"hq_postcode": "<string>",
"hq_country_name": "<string>",
"region": "<string>",
"ceo": "<string>",
"sector": "<string>",
"revenue_range": "<string>",
"employee_count_range": "<string>",
"full_time_employees": 123,
"alternative_domains": [
"<string>"
],
"alternative_names": [
"<string>"
],
"tags": [
"<string>"
],
"description": "<string>",
"stock_ticker": "<string>",
"market_cap": 123,
"stock_currency": "<string>",
"stock_exchange_name": "<string>",
"stock_exchange_symbol": "<string>"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"total_items": 123,
"total_pages": 123,
"has_next": true,
"has_previous": true
},
"request": {
"industry": "<string>",
"employee_size_category": "<string>",
"revenue_category": "<string>",
"country": "<string>",
"public_company": true,
"company_name": "<string>",
"page": 123,
"per_page": 123
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
Your API key for authentication. Get your API key from the PG:AI dashboard under Settings > API Keys.
Body
application/json
Filter by industry
Filter by employee size category
Filter by revenue category
Filter by country
Filter by company name
Page number
Page size. Default 25, maximum 50 on all list endpoints. Omit to use the default; increase up to 50 only if you need larger pages.
Filter by public company status
Offset for pagination
⌘I
