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"
],
"company_locations": [
"US",
"SG",
"CN"
],
"companies": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"domains": [
"pubrio.com"
],
"linkedin_urls": [
"https://www.linkedin.com/company/pubrio"
],
"is_realtime_enrichment": true,
"source_types": [
"linkedin",
"facebook"
],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"profile_id": 123,
"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"],
"company_locations": ["US", "SG", "CN"],
"companies": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"domains": ["pubrio.com"],
"linkedin_urls": ["https://www.linkedin.com/company/pubrio"],
"is_realtime_enrichment": True,
"source_types": ["linkedin", "facebook"],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"profile_id": 123,
"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'],
company_locations: ['US', 'SG', 'CN'],
companies: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
domains: ['pubrio.com'],
linkedin_urls: ['https://www.linkedin.com/company/pubrio'],
is_realtime_enrichment: true,
source_types: ['linkedin', 'facebook'],
enrichment_mode: 'latest',
per_page: 25,
page: 1,
profile_id: 123,
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'
],
'company_locations' => [
'US',
'SG',
'CN'
],
'companies' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'domains' => [
'pubrio.com'
],
'linkedin_urls' => [
'https://www.linkedin.com/company/pubrio'
],
'is_realtime_enrichment' => true,
'source_types' => [
'linkedin',
'facebook'
],
'enrichment_mode' => 'latest',
'per_page' => 25,
'page' => 1,
'profile_id' => 123,
'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 \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"profile_id\": 123,\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 \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"profile_id\": 123,\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 \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"profile_id\": 123,\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{
"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
},
{
"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"
}
},
"..."
]
}
}{
"code": 40001,
"message": "错误及代码会根据不同场景有所不同,详情请参阅文档。",
"details": {}
}{
"error": "请求频率超出限制。请稍后再试。"
}{
"error": "服务器在处理请求时遇到了未预料的异常。"
}公司广告检索
搜索符合指定条件的公司投放的广告。 对于 facebook 来源的广告,source_type 涵盖整个 Meta 广告库——Facebook、Instagram、Messenger、Threads 和 Audience Network——可使用 publisher_platforms 按版位筛选。destination_url 返回解析后的落地页(fb.me 等 Facebook 跳转包装链接会被还原为真实的转化链接),而 raw_link_url 则保留原始捕获的链接。
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"
],
"company_locations": [
"US",
"SG",
"CN"
],
"companies": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"domains": [
"pubrio.com"
],
"linkedin_urls": [
"https://www.linkedin.com/company/pubrio"
],
"is_realtime_enrichment": true,
"source_types": [
"linkedin",
"facebook"
],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"profile_id": 123,
"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"],
"company_locations": ["US", "SG", "CN"],
"companies": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"domains": ["pubrio.com"],
"linkedin_urls": ["https://www.linkedin.com/company/pubrio"],
"is_realtime_enrichment": True,
"source_types": ["linkedin", "facebook"],
"enrichment_mode": "latest",
"per_page": 25,
"page": 1,
"profile_id": 123,
"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'],
company_locations: ['US', 'SG', 'CN'],
companies: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
domains: ['pubrio.com'],
linkedin_urls: ['https://www.linkedin.com/company/pubrio'],
is_realtime_enrichment: true,
source_types: ['linkedin', 'facebook'],
enrichment_mode: 'latest',
per_page: 25,
page: 1,
profile_id: 123,
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'
],
'company_locations' => [
'US',
'SG',
'CN'
],
'companies' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'domains' => [
'pubrio.com'
],
'linkedin_urls' => [
'https://www.linkedin.com/company/pubrio'
],
'is_realtime_enrichment' => true,
'source_types' => [
'linkedin',
'facebook'
],
'enrichment_mode' => 'latest',
'per_page' => 25,
'page' => 1,
'profile_id' => 123,
'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 \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"profile_id\": 123,\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 \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"profile_id\": 123,\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 \"company_locations\": [\n \"US\",\n \"SG\",\n \"CN\"\n ],\n \"companies\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"domains\": [\n \"pubrio.com\"\n ],\n \"linkedin_urls\": [\n \"https://www.linkedin.com/company/pubrio\"\n ],\n \"is_realtime_enrichment\": true,\n \"source_types\": [\n \"linkedin\",\n \"facebook\"\n ],\n \"enrichment_mode\": \"latest\",\n \"per_page\": 25,\n \"page\": 1,\n \"profile_id\": 123,\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{
"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
},
{
"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"
}
},
"..."
]
}
}{
"code": 40001,
"message": "错误及代码会根据不同场景有所不同,详情请参阅文档。",
"details": {}
}{
"error": "请求频率超出限制。请稍后再试。"
}{
"error": "服务器在处理请求时遇到了未预料的异常。"
}请求体
通过国家代码筛选到达特定地点的广告。用于查找在特定国家展示的广告。与 filter_conditions 配合使用,操作符为 OR - 广告必须至少定位到指定地点中的一个。
["TW", "AE", "NO"]
通过国家代码排除定位特定地点的广告。用于筛除在特定国家展示的广告。当在 filter_conditions 中与操作符 'or' 一起使用时,广告必须不定位到任何被排除的地点。
["IS", "GB", "FR", "IE", "ES"]
用于筛选结果的关键词字符串列表。
["pubrio"]
用于筛选搜索结果的标题列表。
["ASUS", "iPhone"]
广告搜索的高级筛选选项。指定条件以优化广告搜索端点的搜索结果。
Show child attributes
Show child attributes
用于筛选搜索结果的开始日期列表。
["2025-12-01", "2025-12-01"]
用于筛选搜索结果的结束日期列表。
["2025-12-25", "2025-12-25"]
公司总部所在地。更多信息请参见筛选器标签下的 location 端点。
["US", "SG", "CN"]
用于公司和人员检索操作的一组唯一标识符(domain_search_id)列表。
用于公司和人员检索操作的公司域名列表。如果收到的地址为 www.pubrio.com 或 https://docs.pubrio.com/,系统会自动转换为 pubrio.com 进行处理。
["pubrio.com"]
LinkedIn 公司主页的完整 URL。URL 需以 http 开头且包含 linkedin.com/company/。
["https://www.linkedin.com/company/pubrio"]
为单一公司范围的查询(通过 domain_search_id、domains 或 linkedin_urls 过滤)启用实时数据增强。当初次搜索返回 0 条结果时,系统会抓取来源数据、写入记录后重新执行搜索再返回。受每条路由的超时限制约束。
true
限制哪些广告来源类型可参与实时数据增强。省略时默认包含全部来源。仅在实时增强实际触发时生效——即当设置了 is_realtime_enrichment 或 enrichment_mode: latest 时。
linkedin, facebook, google ["linkedin", "facebook"]
控制实时数据增强行为。default 返回数据库中已有的数据,仅当结果为空且设置了 is_realtime_enrichment 时才触发增强。latest 会绕过缓存,并在每次调用时针对最新的源记录强制执行重新增强——即使未设置其他任何标志,它本身也会触发增强。
default, latest "latest"
每页应返回的搜索结果数量。限制每页结果数量可提升接口性能。
25
要检索的数据页码。
1
可选。发起请求的团队标识符。由于 API 密钥已包含您的工作区信息,此参数不再是必填项。如果提供,该 ID 有助于将查找与特定团队(工作区)关联,实现数据检索和额度追踪。
更多信息请参见团队标签下的 user details 端点。
按投放的平台版位筛选 Facebook/Meta 广告。使用小写,且不区分大小写。仅适用于 facebook 来源(其他来源为单一平台)。
facebook, instagram, messenger, threads, audience_network ["facebook", "instagram"]
排除在这些平台版位投放的 Facebook/Meta 广告。
facebook, instagram, messenger, threads, audience_network ["audience_network"]
包含尚未关联到已识别公司的广告(原始层广告,例如诈骗或临时专页广告)。默认为 false,仅返回已关联公司的广告。
true
响应
包含公司广告搜索详细信息的成功响应。
响应信息取决于具体接口。

