curl --request POST \
--url https://api.pubrio.com/companies/advertisements/search \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"target_locations": [
"TW",
"AE",
"NO"
],
"exclude_target_locations": [
"IS",
"GB",
"FR",
"IE",
"ES"
],
"search_terms": [
"pubrio"
],
"headlines": [
"ASUS",
"iPhone"
],
"filter_conditions": [
{
"key": "exclude_target_locations",
"operator": "or"
}
],
"start_dates": [
"2025-12-01",
"2025-12-01"
],
"end_dates": [
"2025-12-25",
"2025-12-25"
],
"active_dates": [
"2026-08-01",
"2026-08-31"
],
"created_at": "2026-09-02T12:00:00Z",
"company_locations": [
"US",
"SG",
"CN"
],
"companies": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"advertisement_search_id": "a92643e8-9033-4029-aa65-ef929327cebb",
"domains": [
"pubrio.com"
],
"linkedin_urls": [
"https://www.linkedin.com/company/pubrio"
],
"is_realtime_enrichment": true,
"advertisement_formats": [
"image",
"video"
],
"reach_tiers": [
"100k_500k",
"500k_1m",
"1m_plus"
],
"advertisement_active_ads": [
1,
null
],
"advertisement_running_ads": [
1,
null
],
"advertisement_total_ads": [
10,
null
],
"advertisement_platform_count": [
2,
null
],
"advertisement_format_count": [
2,
null
],
"advertisement_impressions_estimate": [
1000,
null
],
"advertisement_country_activity": {
"country": "US",
"rank": [
null,
500
]
},
"source_types": [
"linkedin",
"facebook"
],
"exclude_source_types": [
"apple"
],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"is_ascending_order": false,
"publisher_platforms": [
"facebook",
"instagram"
],
"exclude_publisher_platforms": [
"audience_network"
],
"is_include_unlinked_companies": true
}
'import requests
url = "https://api.pubrio.com/companies/advertisements/search"
payload = {
"target_locations": ["TW", "AE", "NO"],
"exclude_target_locations": ["IS", "GB", "FR", "IE", "ES"],
"search_terms": ["pubrio"],
"headlines": ["ASUS", "iPhone"],
"filter_conditions": [
{
"key": "exclude_target_locations",
"operator": "or"
}
],
"start_dates": ["2025-12-01", "2025-12-01"],
"end_dates": ["2025-12-25", "2025-12-25"],
"active_dates": ["2026-08-01", "2026-08-31"],
"created_at": "2026-09-02T12:00:00Z",
"company_locations": ["US", "SG", "CN"],
"companies": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"advertisement_search_id": "a92643e8-9033-4029-aa65-ef929327cebb",
"domains": ["pubrio.com"],
"linkedin_urls": ["https://www.linkedin.com/company/pubrio"],
"is_realtime_enrichment": True,
"advertisement_formats": ["image", "video"],
"reach_tiers": ["100k_500k", "500k_1m", "1m_plus"],
"advertisement_active_ads": [1, None],
"advertisement_running_ads": [1, None],
"advertisement_total_ads": [10, None],
"advertisement_platform_count": [2, None],
"advertisement_format_count": [2, None],
"advertisement_impressions_estimate": [1000, None],
"advertisement_country_activity": {
"country": "US",
"rank": [None, 500]
},
"source_types": ["linkedin", "facebook"],
"exclude_source_types": ["apple"],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"is_ascending_order": False,
"publisher_platforms": ["facebook", "instagram"],
"exclude_publisher_platforms": ["audience_network"],
"is_include_unlinked_companies": True
}
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
target_locations: ['TW', 'AE', 'NO'],
exclude_target_locations: ['IS', 'GB', 'FR', 'IE', 'ES'],
search_terms: ['pubrio'],
headlines: ['ASUS', 'iPhone'],
filter_conditions: [{key: 'exclude_target_locations', operator: 'or'}],
start_dates: ['2025-12-01', '2025-12-01'],
end_dates: ['2025-12-25', '2025-12-25'],
active_dates: ['2026-08-01', '2026-08-31'],
created_at: '2026-09-02T12:00:00Z',
company_locations: ['US', 'SG', 'CN'],
companies: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
advertisement_search_id: 'a92643e8-9033-4029-aa65-ef929327cebb',
domains: ['pubrio.com'],
linkedin_urls: ['https://www.linkedin.com/company/pubrio'],
is_realtime_enrichment: true,
advertisement_formats: ['image', 'video'],
reach_tiers: ['100k_500k', '500k_1m', '1m_plus'],
advertisement_active_ads: [1, null],
advertisement_running_ads: [1, null],
advertisement_total_ads: [10, null],
advertisement_platform_count: [2, null],
advertisement_format_count: [2, null],
advertisement_impressions_estimate: [1000, null],
advertisement_country_activity: {country: 'US', rank: [null, 500]},
source_types: ['linkedin', 'facebook'],
exclude_source_types: ['apple'],
enrichment_mode: 'latest',
per_page: 25,
page: 1,
is_ascending_order: false,
publisher_platforms: ['facebook', 'instagram'],
exclude_publisher_platforms: ['audience_network'],
is_include_unlinked_companies: true
})
};
fetch('https://api.pubrio.com/companies/advertisements/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.pubrio.com/companies/advertisements/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([
'target_locations' => [
'TW',
'AE',
'NO'
],
'exclude_target_locations' => [
'IS',
'GB',
'FR',
'IE',
'ES'
],
'search_terms' => [
'pubrio'
],
'headlines' => [
'ASUS',
'iPhone'
],
'filter_conditions' => [
[
'key' => 'exclude_target_locations',
'operator' => 'or'
]
],
'start_dates' => [
'2025-12-01',
'2025-12-01'
],
'end_dates' => [
'2025-12-25',
'2025-12-25'
],
'active_dates' => [
'2026-08-01',
'2026-08-31'
],
'created_at' => '2026-09-02T12:00:00Z',
'company_locations' => [
'US',
'SG',
'CN'
],
'companies' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'advertisement_search_id' => 'a92643e8-9033-4029-aa65-ef929327cebb',
'domains' => [
'pubrio.com'
],
'linkedin_urls' => [
'https://www.linkedin.com/company/pubrio'
],
'is_realtime_enrichment' => true,
'advertisement_formats' => [
'image',
'video'
],
'reach_tiers' => [
'100k_500k',
'500k_1m',
'1m_plus'
],
'advertisement_active_ads' => [
1,
null
],
'advertisement_running_ads' => [
1,
null
],
'advertisement_total_ads' => [
10,
null
],
'advertisement_platform_count' => [
2,
null
],
'advertisement_format_count' => [
2,
null
],
'advertisement_impressions_estimate' => [
1000,
null
],
'advertisement_country_activity' => [
'country' => 'US',
'rank' => [
null,
500
]
],
'source_types' => [
'linkedin',
'facebook'
],
'exclude_source_types' => [
'apple'
],
'enrichment_mode' => 'latest',
'per_page' => 25,
'page' => 1,
'is_ascending_order' => false,
'publisher_platforms' => [
'facebook',
'instagram'
],
'exclude_publisher_platforms' => [
'audience_network'
],
'is_include_unlinked_companies' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-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.pubrio.com/companies/advertisements/search"
payload := strings.NewReader("{\n \"target_locations\": [\n \"TW\",\n \"AE\",\n \"NO\"\n ],\n \"exclude_target_locations\": [\n \"IS\",\n \"GB\",\n \"FR\",\n \"IE\",\n \"ES\"\n ],\n \"search_terms\": [\n \"pubrio\"\n ],\n \"headlines\": [\n \"ASUS\",\n \"iPhone\"\n ],\n \"filter_conditions\": [\n {\n \"key\": \"exclude_target_locations\",\n \"operator\": \"or\"\n }\n ],\n \"start_dates\": [\n \"2025-12-01\",\n \"2025-12-01\"\n ],\n \"end_dates\": [\n \"2025-12-25\",\n \"2025-12-25\"\n ],\n \"active_dates\": [\n \"2026-08-01\",\n \"2026-08-31\"\n ],\n \"created_at\": \"2026-09-02T12:00:00Z\",\n \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"advertisement_search_id\": \"a92643e8-9033-4029-aa65-ef929327cebb\",\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"advertisement_formats\": [\n \"image\",\n \"video\"\n ],\n \"reach_tiers\": [\n \"100k_500k\",\n \"500k_1m\",\n \"1m_plus\"\n ],\n \"advertisement_active_ads\": [\n 1,\n null\n ],\n \"advertisement_running_ads\": [\n 1,\n null\n ],\n \"advertisement_total_ads\": [\n 10,\n null\n ],\n \"advertisement_platform_count\": [\n 2,\n null\n ],\n \"advertisement_format_count\": [\n 2,\n null\n ],\n \"advertisement_impressions_estimate\": [\n 1000,\n null\n ],\n \"advertisement_country_activity\": {\n \"country\": \"US\",\n \"rank\": [\n null,\n 500\n ]\n },\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"exclude_source_types\": [\n \"apple\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"is_ascending_order\": false,\n \"publisher_platforms\": [\n \"facebook\",\n \"instagram\"\n ],\n \"exclude_publisher_platforms\": [\n \"audience_network\"\n ],\n \"is_include_unlinked_companies\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-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.pubrio.com/companies/advertisements/search")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"target_locations\": [\n \"TW\",\n \"AE\",\n \"NO\"\n ],\n \"exclude_target_locations\": [\n \"IS\",\n \"GB\",\n \"FR\",\n \"IE\",\n \"ES\"\n ],\n \"search_terms\": [\n \"pubrio\"\n ],\n \"headlines\": [\n \"ASUS\",\n \"iPhone\"\n ],\n \"filter_conditions\": [\n {\n \"key\": \"exclude_target_locations\",\n \"operator\": \"or\"\n }\n ],\n \"start_dates\": [\n \"2025-12-01\",\n \"2025-12-01\"\n ],\n \"end_dates\": [\n \"2025-12-25\",\n \"2025-12-25\"\n ],\n \"active_dates\": [\n \"2026-08-01\",\n \"2026-08-31\"\n ],\n \"created_at\": \"2026-09-02T12:00:00Z\",\n \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"advertisement_search_id\": \"a92643e8-9033-4029-aa65-ef929327cebb\",\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"advertisement_formats\": [\n \"image\",\n \"video\"\n ],\n \"reach_tiers\": [\n \"100k_500k\",\n \"500k_1m\",\n \"1m_plus\"\n ],\n \"advertisement_active_ads\": [\n 1,\n null\n ],\n \"advertisement_running_ads\": [\n 1,\n null\n ],\n \"advertisement_total_ads\": [\n 10,\n null\n ],\n \"advertisement_platform_count\": [\n 2,\n null\n ],\n \"advertisement_format_count\": [\n 2,\n null\n ],\n \"advertisement_impressions_estimate\": [\n 1000,\n null\n ],\n \"advertisement_country_activity\": {\n \"country\": \"US\",\n \"rank\": [\n null,\n 500\n ]\n },\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"exclude_source_types\": [\n \"apple\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"is_ascending_order\": false,\n \"publisher_platforms\": [\n \"facebook\",\n \"instagram\"\n ],\n \"exclude_publisher_platforms\": [\n \"audience_network\"\n ],\n \"is_include_unlinked_companies\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/companies/advertisements/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"target_locations\": [\n \"TW\",\n \"AE\",\n \"NO\"\n ],\n \"exclude_target_locations\": [\n \"IS\",\n \"GB\",\n \"FR\",\n \"IE\",\n \"ES\"\n ],\n \"search_terms\": [\n \"pubrio\"\n ],\n \"headlines\": [\n \"ASUS\",\n \"iPhone\"\n ],\n \"filter_conditions\": [\n {\n \"key\": \"exclude_target_locations\",\n \"operator\": \"or\"\n }\n ],\n \"start_dates\": [\n \"2025-12-01\",\n \"2025-12-01\"\n ],\n \"end_dates\": [\n \"2025-12-25\",\n \"2025-12-25\"\n ],\n \"active_dates\": [\n \"2026-08-01\",\n \"2026-08-31\"\n ],\n \"created_at\": \"2026-09-02T12:00:00Z\",\n \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"advertisement_search_id\": \"a92643e8-9033-4029-aa65-ef929327cebb\",\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"advertisement_formats\": [\n \"image\",\n \"video\"\n ],\n \"reach_tiers\": [\n \"100k_500k\",\n \"500k_1m\",\n \"1m_plus\"\n ],\n \"advertisement_active_ads\": [\n 1,\n null\n ],\n \"advertisement_running_ads\": [\n 1,\n null\n ],\n \"advertisement_total_ads\": [\n 10,\n null\n ],\n \"advertisement_platform_count\": [\n 2,\n null\n ],\n \"advertisement_format_count\": [\n 2,\n null\n ],\n \"advertisement_impressions_estimate\": [\n 1000,\n null\n ],\n \"advertisement_country_activity\": {\n \"country\": \"US\",\n \"rank\": [\n null,\n 500\n ]\n },\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"exclude_source_types\": [\n \"apple\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"is_ascending_order\": false,\n \"publisher_platforms\": [\n \"facebook\",\n \"instagram\"\n ],\n \"exclude_publisher_platforms\": [\n \"audience_network\"\n ],\n \"is_include_unlinked_companies\": true\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"profile": null,
"filters": {
"source_types": [
"linkedin"
],
"per_page": 25,
"language": "en"
},
"ignored_fields": [],
"applied_source_types": [
"linkedin"
]
},
"data": {
"pagination": {
"page": 1,
"per_page": 25,
"total_entries": 694356,
"total_pages": 27775,
"total_display_pages": 250,
"is_timeout": false
},
"advertisements": [
{
"target_country_codes": [
"US",
"GB",
"SG"
],
"advertisement_id": "3af8cb80-9a04-49a8-832d-333961d5f77a",
"advertisement_search_id": "3af8cb80-9a04-49a8-832d-333961d5f77a",
"created_at": "2026-03-03T01:46:35.909Z",
"last_modified": "2026-03-03T12:46:25.289Z",
"started_at": "2026-02-25T00:00:00.000Z",
"ended_at": "2026-03-02T00:00:00.000Z",
"title": "Thuraya-4 Satellite Solutions for Energy",
"source_type": "linkedin",
"advertisement_format": "Single Image Ad",
"video_url": null,
"image_url": "https://buckets.pubrio.com/images/public/cL1U5ghYPAy65qc4cu5wtmgzv8P9xJgrofNTwohPWsyT3S5ob2zNp6Jov1nM9aaDRy.jpg",
"carousel_images": null,
"destination_url": "https://www.thuraya.com/en/thuraya-4-ngs/home/index.html?trk=ad_library_ad_preview_headline_content",
"companies": {
"logo_url": "https://buckets.pubrio.com/company-logo/MjA3NTQ4NjQyM2lsajlzc25qMXNwYWNlNDIuYWlsaW5rZWRpbl82NDIyMjM3NA==.jpg",
"domain_search_id": "fe3963dc-87a4-4016-8c95-217ea68cd57a",
"company_name": "Space42",
"linkedin_name": "space42ai",
"country_code": "AE",
"domain": "space42.ai"
},
"raw_link_url": null,
"publisher_platforms": null,
"advertisement_format_normalized": "image",
"is_company_matched": true,
"advertiser": "Thuraya",
"advertiser_url": "https://www.linkedin.com/company/thuraya",
"advertisement_url": "https://www.linkedin.com/ad-library/detail/1518455034",
"total_impressions": "< 1k",
"total_impressions_lower": null,
"total_impressions_upper": 1000
},
{
"target_country_codes": [
"US",
"GB",
"SG"
],
"advertisement_id": "47eb6229-e7aa-427f-bcd3-76e154fd5022",
"advertisement_search_id": "47eb6229-e7aa-427f-bcd3-76e154fd5022",
"created_at": "2026-06-03T22:00:33.035Z",
"last_modified": "2026-06-05T18:15:51.823Z",
"started_at": "2026-05-25T07:00:00.000Z",
"ended_at": "2026-06-03T07:00:00.000Z",
"title": "Dubai Opportunities. One Exclusive Event",
"source_type": "facebook",
"advertisement_format": "DCO",
"video_url": null,
"image_url": "https://buckets.pubrio.com/images/public/4snZgJwKCWEYwAUwxrkkK1ooEFEAMF92Xet6Bm16oAyqwUSoqekDjX8S9DmfixutuH.jpg",
"carousel_images": null,
"destination_url": "https://promotions.damacproperties.com/en/event-in-egypt-social-specific/",
"raw_link_url": "http://fb.me/",
"publisher_platforms": [
"facebook",
"instagram"
],
"companies": {
"logo_url": "https://buckets.pubrio.com/company-logo/MjYwODA0MjRkYW1hY3Byb3BlcnRpZXMuY29tbGlua2VkaW5fcF9sb2dvMTU=.jpg",
"domain_search_id": "9da7386c-5bdc-42b2-8fee-456e91024a3a",
"company_name": "Damac Properties",
"linkedin_name": "damac-properties",
"country_code": "AE",
"domain": "damacproperties.com"
},
"advertisement_format_normalized": "image",
"is_company_matched": true,
"advertiser": "Thuraya",
"advertiser_url": "https://www.linkedin.com/company/thuraya",
"advertisement_url": "https://www.linkedin.com/ad-library/detail/1518455034",
"total_impressions": "< 1k",
"total_impressions_lower": null,
"total_impressions_upper": 1000
},
"..."
]
}
}{
"code": 40001,
"message": "Errors and codes will vary depending on the scenario, please see the documentation for information.",
"details": {}
}{
"error": "Request rate limit exceeded. Please wait and try again later."
}{
"error": "An unexpected error occurred on the server."
}Company Advertisement Search
Search advertisements run by companies. See the Advertisement Search guide.
curl --request POST \
--url https://api.pubrio.com/companies/advertisements/search \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"target_locations": [
"TW",
"AE",
"NO"
],
"exclude_target_locations": [
"IS",
"GB",
"FR",
"IE",
"ES"
],
"search_terms": [
"pubrio"
],
"headlines": [
"ASUS",
"iPhone"
],
"filter_conditions": [
{
"key": "exclude_target_locations",
"operator": "or"
}
],
"start_dates": [
"2025-12-01",
"2025-12-01"
],
"end_dates": [
"2025-12-25",
"2025-12-25"
],
"active_dates": [
"2026-08-01",
"2026-08-31"
],
"created_at": "2026-09-02T12:00:00Z",
"company_locations": [
"US",
"SG",
"CN"
],
"companies": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"advertisement_search_id": "a92643e8-9033-4029-aa65-ef929327cebb",
"domains": [
"pubrio.com"
],
"linkedin_urls": [
"https://www.linkedin.com/company/pubrio"
],
"is_realtime_enrichment": true,
"advertisement_formats": [
"image",
"video"
],
"reach_tiers": [
"100k_500k",
"500k_1m",
"1m_plus"
],
"advertisement_active_ads": [
1,
null
],
"advertisement_running_ads": [
1,
null
],
"advertisement_total_ads": [
10,
null
],
"advertisement_platform_count": [
2,
null
],
"advertisement_format_count": [
2,
null
],
"advertisement_impressions_estimate": [
1000,
null
],
"advertisement_country_activity": {
"country": "US",
"rank": [
null,
500
]
},
"source_types": [
"linkedin",
"facebook"
],
"exclude_source_types": [
"apple"
],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"is_ascending_order": false,
"publisher_platforms": [
"facebook",
"instagram"
],
"exclude_publisher_platforms": [
"audience_network"
],
"is_include_unlinked_companies": true
}
'import requests
url = "https://api.pubrio.com/companies/advertisements/search"
payload = {
"target_locations": ["TW", "AE", "NO"],
"exclude_target_locations": ["IS", "GB", "FR", "IE", "ES"],
"search_terms": ["pubrio"],
"headlines": ["ASUS", "iPhone"],
"filter_conditions": [
{
"key": "exclude_target_locations",
"operator": "or"
}
],
"start_dates": ["2025-12-01", "2025-12-01"],
"end_dates": ["2025-12-25", "2025-12-25"],
"active_dates": ["2026-08-01", "2026-08-31"],
"created_at": "2026-09-02T12:00:00Z",
"company_locations": ["US", "SG", "CN"],
"companies": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"advertisement_search_id": "a92643e8-9033-4029-aa65-ef929327cebb",
"domains": ["pubrio.com"],
"linkedin_urls": ["https://www.linkedin.com/company/pubrio"],
"is_realtime_enrichment": True,
"advertisement_formats": ["image", "video"],
"reach_tiers": ["100k_500k", "500k_1m", "1m_plus"],
"advertisement_active_ads": [1, None],
"advertisement_running_ads": [1, None],
"advertisement_total_ads": [10, None],
"advertisement_platform_count": [2, None],
"advertisement_format_count": [2, None],
"advertisement_impressions_estimate": [1000, None],
"advertisement_country_activity": {
"country": "US",
"rank": [None, 500]
},
"source_types": ["linkedin", "facebook"],
"exclude_source_types": ["apple"],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"is_ascending_order": False,
"publisher_platforms": ["facebook", "instagram"],
"exclude_publisher_platforms": ["audience_network"],
"is_include_unlinked_companies": True
}
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
target_locations: ['TW', 'AE', 'NO'],
exclude_target_locations: ['IS', 'GB', 'FR', 'IE', 'ES'],
search_terms: ['pubrio'],
headlines: ['ASUS', 'iPhone'],
filter_conditions: [{key: 'exclude_target_locations', operator: 'or'}],
start_dates: ['2025-12-01', '2025-12-01'],
end_dates: ['2025-12-25', '2025-12-25'],
active_dates: ['2026-08-01', '2026-08-31'],
created_at: '2026-09-02T12:00:00Z',
company_locations: ['US', 'SG', 'CN'],
companies: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
advertisement_search_id: 'a92643e8-9033-4029-aa65-ef929327cebb',
domains: ['pubrio.com'],
linkedin_urls: ['https://www.linkedin.com/company/pubrio'],
is_realtime_enrichment: true,
advertisement_formats: ['image', 'video'],
reach_tiers: ['100k_500k', '500k_1m', '1m_plus'],
advertisement_active_ads: [1, null],
advertisement_running_ads: [1, null],
advertisement_total_ads: [10, null],
advertisement_platform_count: [2, null],
advertisement_format_count: [2, null],
advertisement_impressions_estimate: [1000, null],
advertisement_country_activity: {country: 'US', rank: [null, 500]},
source_types: ['linkedin', 'facebook'],
exclude_source_types: ['apple'],
enrichment_mode: 'latest',
per_page: 25,
page: 1,
is_ascending_order: false,
publisher_platforms: ['facebook', 'instagram'],
exclude_publisher_platforms: ['audience_network'],
is_include_unlinked_companies: true
})
};
fetch('https://api.pubrio.com/companies/advertisements/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.pubrio.com/companies/advertisements/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([
'target_locations' => [
'TW',
'AE',
'NO'
],
'exclude_target_locations' => [
'IS',
'GB',
'FR',
'IE',
'ES'
],
'search_terms' => [
'pubrio'
],
'headlines' => [
'ASUS',
'iPhone'
],
'filter_conditions' => [
[
'key' => 'exclude_target_locations',
'operator' => 'or'
]
],
'start_dates' => [
'2025-12-01',
'2025-12-01'
],
'end_dates' => [
'2025-12-25',
'2025-12-25'
],
'active_dates' => [
'2026-08-01',
'2026-08-31'
],
'created_at' => '2026-09-02T12:00:00Z',
'company_locations' => [
'US',
'SG',
'CN'
],
'companies' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'advertisement_search_id' => 'a92643e8-9033-4029-aa65-ef929327cebb',
'domains' => [
'pubrio.com'
],
'linkedin_urls' => [
'https://www.linkedin.com/company/pubrio'
],
'is_realtime_enrichment' => true,
'advertisement_formats' => [
'image',
'video'
],
'reach_tiers' => [
'100k_500k',
'500k_1m',
'1m_plus'
],
'advertisement_active_ads' => [
1,
null
],
'advertisement_running_ads' => [
1,
null
],
'advertisement_total_ads' => [
10,
null
],
'advertisement_platform_count' => [
2,
null
],
'advertisement_format_count' => [
2,
null
],
'advertisement_impressions_estimate' => [
1000,
null
],
'advertisement_country_activity' => [
'country' => 'US',
'rank' => [
null,
500
]
],
'source_types' => [
'linkedin',
'facebook'
],
'exclude_source_types' => [
'apple'
],
'enrichment_mode' => 'latest',
'per_page' => 25,
'page' => 1,
'is_ascending_order' => false,
'publisher_platforms' => [
'facebook',
'instagram'
],
'exclude_publisher_platforms' => [
'audience_network'
],
'is_include_unlinked_companies' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-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.pubrio.com/companies/advertisements/search"
payload := strings.NewReader("{\n \"target_locations\": [\n \"TW\",\n \"AE\",\n \"NO\"\n ],\n \"exclude_target_locations\": [\n \"IS\",\n \"GB\",\n \"FR\",\n \"IE\",\n \"ES\"\n ],\n \"search_terms\": [\n \"pubrio\"\n ],\n \"headlines\": [\n \"ASUS\",\n \"iPhone\"\n ],\n \"filter_conditions\": [\n {\n \"key\": \"exclude_target_locations\",\n \"operator\": \"or\"\n }\n ],\n \"start_dates\": [\n \"2025-12-01\",\n \"2025-12-01\"\n ],\n \"end_dates\": [\n \"2025-12-25\",\n \"2025-12-25\"\n ],\n \"active_dates\": [\n \"2026-08-01\",\n \"2026-08-31\"\n ],\n \"created_at\": \"2026-09-02T12:00:00Z\",\n \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"advertisement_search_id\": \"a92643e8-9033-4029-aa65-ef929327cebb\",\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"advertisement_formats\": [\n \"image\",\n \"video\"\n ],\n \"reach_tiers\": [\n \"100k_500k\",\n \"500k_1m\",\n \"1m_plus\"\n ],\n \"advertisement_active_ads\": [\n 1,\n null\n ],\n \"advertisement_running_ads\": [\n 1,\n null\n ],\n \"advertisement_total_ads\": [\n 10,\n null\n ],\n \"advertisement_platform_count\": [\n 2,\n null\n ],\n \"advertisement_format_count\": [\n 2,\n null\n ],\n \"advertisement_impressions_estimate\": [\n 1000,\n null\n ],\n \"advertisement_country_activity\": {\n \"country\": \"US\",\n \"rank\": [\n null,\n 500\n ]\n },\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"exclude_source_types\": [\n \"apple\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"is_ascending_order\": false,\n \"publisher_platforms\": [\n \"facebook\",\n \"instagram\"\n ],\n \"exclude_publisher_platforms\": [\n \"audience_network\"\n ],\n \"is_include_unlinked_companies\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-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.pubrio.com/companies/advertisements/search")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"target_locations\": [\n \"TW\",\n \"AE\",\n \"NO\"\n ],\n \"exclude_target_locations\": [\n \"IS\",\n \"GB\",\n \"FR\",\n \"IE\",\n \"ES\"\n ],\n \"search_terms\": [\n \"pubrio\"\n ],\n \"headlines\": [\n \"ASUS\",\n \"iPhone\"\n ],\n \"filter_conditions\": [\n {\n \"key\": \"exclude_target_locations\",\n \"operator\": \"or\"\n }\n ],\n \"start_dates\": [\n \"2025-12-01\",\n \"2025-12-01\"\n ],\n \"end_dates\": [\n \"2025-12-25\",\n \"2025-12-25\"\n ],\n \"active_dates\": [\n \"2026-08-01\",\n \"2026-08-31\"\n ],\n \"created_at\": \"2026-09-02T12:00:00Z\",\n \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"advertisement_search_id\": \"a92643e8-9033-4029-aa65-ef929327cebb\",\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"advertisement_formats\": [\n \"image\",\n \"video\"\n ],\n \"reach_tiers\": [\n \"100k_500k\",\n \"500k_1m\",\n \"1m_plus\"\n ],\n \"advertisement_active_ads\": [\n 1,\n null\n ],\n \"advertisement_running_ads\": [\n 1,\n null\n ],\n \"advertisement_total_ads\": [\n 10,\n null\n ],\n \"advertisement_platform_count\": [\n 2,\n null\n ],\n \"advertisement_format_count\": [\n 2,\n null\n ],\n \"advertisement_impressions_estimate\": [\n 1000,\n null\n ],\n \"advertisement_country_activity\": {\n \"country\": \"US\",\n \"rank\": [\n null,\n 500\n ]\n },\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"exclude_source_types\": [\n \"apple\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"is_ascending_order\": false,\n \"publisher_platforms\": [\n \"facebook\",\n \"instagram\"\n ],\n \"exclude_publisher_platforms\": [\n \"audience_network\"\n ],\n \"is_include_unlinked_companies\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/companies/advertisements/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"target_locations\": [\n \"TW\",\n \"AE\",\n \"NO\"\n ],\n \"exclude_target_locations\": [\n \"IS\",\n \"GB\",\n \"FR\",\n \"IE\",\n \"ES\"\n ],\n \"search_terms\": [\n \"pubrio\"\n ],\n \"headlines\": [\n \"ASUS\",\n \"iPhone\"\n ],\n \"filter_conditions\": [\n {\n \"key\": \"exclude_target_locations\",\n \"operator\": \"or\"\n }\n ],\n \"start_dates\": [\n \"2025-12-01\",\n \"2025-12-01\"\n ],\n \"end_dates\": [\n \"2025-12-25\",\n \"2025-12-25\"\n ],\n \"active_dates\": [\n \"2026-08-01\",\n \"2026-08-31\"\n ],\n \"created_at\": \"2026-09-02T12:00:00Z\",\n \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"advertisement_search_id\": \"a92643e8-9033-4029-aa65-ef929327cebb\",\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"advertisement_formats\": [\n \"image\",\n \"video\"\n ],\n \"reach_tiers\": [\n \"100k_500k\",\n \"500k_1m\",\n \"1m_plus\"\n ],\n \"advertisement_active_ads\": [\n 1,\n null\n ],\n \"advertisement_running_ads\": [\n 1,\n null\n ],\n \"advertisement_total_ads\": [\n 10,\n null\n ],\n \"advertisement_platform_count\": [\n 2,\n null\n ],\n \"advertisement_format_count\": [\n 2,\n null\n ],\n \"advertisement_impressions_estimate\": [\n 1000,\n null\n ],\n \"advertisement_country_activity\": {\n \"country\": \"US\",\n \"rank\": [\n null,\n 500\n ]\n },\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"exclude_source_types\": [\n \"apple\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"is_ascending_order\": false,\n \"publisher_platforms\": [\n \"facebook\",\n \"instagram\"\n ],\n \"exclude_publisher_platforms\": [\n \"audience_network\"\n ],\n \"is_include_unlinked_companies\": true\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"profile": null,
"filters": {
"source_types": [
"linkedin"
],
"per_page": 25,
"language": "en"
},
"ignored_fields": [],
"applied_source_types": [
"linkedin"
]
},
"data": {
"pagination": {
"page": 1,
"per_page": 25,
"total_entries": 694356,
"total_pages": 27775,
"total_display_pages": 250,
"is_timeout": false
},
"advertisements": [
{
"target_country_codes": [
"US",
"GB",
"SG"
],
"advertisement_id": "3af8cb80-9a04-49a8-832d-333961d5f77a",
"advertisement_search_id": "3af8cb80-9a04-49a8-832d-333961d5f77a",
"created_at": "2026-03-03T01:46:35.909Z",
"last_modified": "2026-03-03T12:46:25.289Z",
"started_at": "2026-02-25T00:00:00.000Z",
"ended_at": "2026-03-02T00:00:00.000Z",
"title": "Thuraya-4 Satellite Solutions for Energy",
"source_type": "linkedin",
"advertisement_format": "Single Image Ad",
"video_url": null,
"image_url": "https://buckets.pubrio.com/images/public/cL1U5ghYPAy65qc4cu5wtmgzv8P9xJgrofNTwohPWsyT3S5ob2zNp6Jov1nM9aaDRy.jpg",
"carousel_images": null,
"destination_url": "https://www.thuraya.com/en/thuraya-4-ngs/home/index.html?trk=ad_library_ad_preview_headline_content",
"companies": {
"logo_url": "https://buckets.pubrio.com/company-logo/MjA3NTQ4NjQyM2lsajlzc25qMXNwYWNlNDIuYWlsaW5rZWRpbl82NDIyMjM3NA==.jpg",
"domain_search_id": "fe3963dc-87a4-4016-8c95-217ea68cd57a",
"company_name": "Space42",
"linkedin_name": "space42ai",
"country_code": "AE",
"domain": "space42.ai"
},
"raw_link_url": null,
"publisher_platforms": null,
"advertisement_format_normalized": "image",
"is_company_matched": true,
"advertiser": "Thuraya",
"advertiser_url": "https://www.linkedin.com/company/thuraya",
"advertisement_url": "https://www.linkedin.com/ad-library/detail/1518455034",
"total_impressions": "< 1k",
"total_impressions_lower": null,
"total_impressions_upper": 1000
},
{
"target_country_codes": [
"US",
"GB",
"SG"
],
"advertisement_id": "47eb6229-e7aa-427f-bcd3-76e154fd5022",
"advertisement_search_id": "47eb6229-e7aa-427f-bcd3-76e154fd5022",
"created_at": "2026-06-03T22:00:33.035Z",
"last_modified": "2026-06-05T18:15:51.823Z",
"started_at": "2026-05-25T07:00:00.000Z",
"ended_at": "2026-06-03T07:00:00.000Z",
"title": "Dubai Opportunities. One Exclusive Event",
"source_type": "facebook",
"advertisement_format": "DCO",
"video_url": null,
"image_url": "https://buckets.pubrio.com/images/public/4snZgJwKCWEYwAUwxrkkK1ooEFEAMF92Xet6Bm16oAyqwUSoqekDjX8S9DmfixutuH.jpg",
"carousel_images": null,
"destination_url": "https://promotions.damacproperties.com/en/event-in-egypt-social-specific/",
"raw_link_url": "http://fb.me/",
"publisher_platforms": [
"facebook",
"instagram"
],
"companies": {
"logo_url": "https://buckets.pubrio.com/company-logo/MjYwODA0MjRkYW1hY3Byb3BlcnRpZXMuY29tbGlua2VkaW5fcF9sb2dvMTU=.jpg",
"domain_search_id": "9da7386c-5bdc-42b2-8fee-456e91024a3a",
"company_name": "Damac Properties",
"linkedin_name": "damac-properties",
"country_code": "AE",
"domain": "damacproperties.com"
},
"advertisement_format_normalized": "image",
"is_company_matched": true,
"advertiser": "Thuraya",
"advertiser_url": "https://www.linkedin.com/company/thuraya",
"advertisement_url": "https://www.linkedin.com/ad-library/detail/1518455034",
"total_impressions": "< 1k",
"total_impressions_lower": null,
"total_impressions_upper": 1000
},
"..."
]
}
}{
"code": 40001,
"message": "Errors and codes will vary depending on the scenario, please see the documentation for information.",
"details": {}
}{
"error": "Request rate limit exceeded. Please wait and try again later."
}{
"error": "An unexpected error occurred on the server."
}Authorizations
Body
Country codes the results must target. Combines with filter_conditions as OR by default — a result matches if it targets any of them.
["TW", "AE", "NO"]
Country codes the results must not target. Combines with filter_conditions as OR by default — a result matches if it targets any of them.
["IS", "GB", "FR", "IE", "ES"]
A list of strings over which we want to filter the results.
["pubrio"]
A list of headlines to filter search results.
["ASUS", "iPhone"]
Advanced filtering options for advertisement searches. Specify conditions to refine your search results for the ads search endpoint.
Show child attributes
Show child attributes
A list of start dates to filter search results.
["2025-12-01", "2025-12-01"]
A list of end dates to filter search results.
["2025-12-25", "2025-12-25"]
Inclusive [from, to] window (UTC). Returns ads running at any point in it, including ones that started earlier, so it reconciles with Advertisement Insights. Undated ads count from created_at. Both dates required, from ≤ to.
2 elements["2026-08-01", "2026-08-31"]
Ingested at or after this instant (UTC). Date or ISO timestamp. For incremental syncs pass the created_at of your newest stored row.
"2026-09-02T12:00:00Z"
The location of the company headquarters. Check out location endpoints under the Filters tab for more information.
["US", "SG", "CN"]
A list of unique identifiers (domain_search_id) used for company and people search operations.
Return only this one record. Handy for re-fetching a row you stored earlier without paging.
"a92643e8-9033-4029-aa65-ef929327cebb"
List of company domains used for company and people search operations. If we receive a URL such as www.pubrio.com or https://docs.pubrio.com/, the system will convert it to pubrio.com for processing.
["pubrio.com"]
The fully formed URL of the LinkedIn company profile. URL begin with http and contain linkedin.com/company/
["https://www.linkedin.com/company/pubrio"]
Opt into realtime enrichment for a single, company-scoped query (filtered by domain_search_id, domains, or linkedin_urls). When the initial search returns zero results, the endpoint scrapes the source, persists the records, and re-runs the search before responding. Subject to a per-route deadline.
true
Find companies with at least one advertisement in any of these creative formats.
image, video, text, carousel, dynamic_product, document, message, event, article, spotlight, follow, job, engagement ["image", "video"]
Impression band of the ad: lt_1k, 1k_10k, 10k_50k, 50k_100k, 100k_500k, 500k_1m, 1m_plus. Ads without a total_impressions value never match; unknown slugs match nothing.
lt_1k, 1k_10k, 10k_50k, 50k_100k, 100k_500k, 500k_1m, 1m_plus ["100k_500k", "500k_1m", "1m_plus"]
Minimum and maximum count of the company's currently active advertisements, across all countries. Use null for an open-ended bound, e.g. [1, null] for "at least one active ad".
2 elements[1, null]
Minimum and maximum count of the company's advertisements that are still running (no end date, or an end date in the future). Currently populated for LinkedIn ads only.
2 elements[1, null]
Minimum and maximum count of the company's total advertisements ever recorded, across all countries.
2 elements[10, null]
Minimum and maximum number of distinct ad platforms (linkedin, facebook, google, tiktok, apple) the company is actively advertising on.
2 elements[2, null]
Minimum and maximum number of distinct advertisement creative formats the company is actively running.
2 elements[2, null]
Minimum and maximum estimated advertisement impressions, summed across all countries. Only advertisements with a reported impression range are counted.
2 elements[1000, null]
Advertising activity for one specific country. country is required, and at least one other field must be set (a country by itself matches nothing). For an all-country total instead, use the top-level advertisement_active_ads / advertisement_total_ads / advertisement_impressions_estimate filters.
Show child attributes
Show child attributes
{ "country": "US", "rank": [null, 500] }
Sources to include: linkedin, facebook (meta accepted), google, tiktok, apple. Unknown values match nothing and are echoed in metadata.unsupported_source_types.
linkedin, facebook, google, tiktok, apple ["linkedin", "facebook"]
Exclude ads captured from these sources. Same vocabulary as source_types (linkedin, facebook, google, tiktok, apple; meta is an alias of facebook). Unknown values are ignored.
linkedin, facebook, google, tiktok, apple ["apple"]
Controls realtime enrichment behavior. default returns whatever is already in the database, and triggers enrichment only when the result set is empty and is_realtime_enrichment is set. latest bypasses the cache and forces a re-enrichment pass against the freshest source records on every call — it triggers enrichment on its own without needing any other flag.
default, latest "latest"
Records per page. Defaults to 25, which is also the ceiling on most plans — the limit is your subscription's max_search_per_page, returned by Profile. Exceeding it returns HTTP 416 with code 41676 (or 41613 on company and people search), not a clamped result set.
x <= 2525
Sort direction. Results are returned newest-first by default; set true for oldest-first. There is no sort_by on this endpoint — the sort key is fixed and stated in the endpoint description.
false
Filter Facebook/Meta ads by the platform surface they were delivered on. Lowercase and case-insensitive. Only applies to the facebook source (other sources are single-platform).
facebook, instagram, messenger, threads, audience_network ["facebook", "instagram"]
Exclude Facebook/Meta ads delivered on these platform surfaces.
facebook, instagram, messenger, threads, audience_network ["audience_network"]
Include ads not yet linked to a resolved company (raw-layer ads, e.g. scam or burner-page ads). Defaults to false, which returns only company-attributed ads.
true

