Search disclaimers
curl --request GET \
--url https://public-api.adclear.ai/v1/disclaimers/search \
--header 'Authorization: Bearer <token>' \
--header 'X-External-User-ID: <x-external-user-id>'import requests
url = "https://public-api.adclear.ai/v1/disclaimers/search"
headers = {
"X-External-User-ID": "<x-external-user-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-External-User-ID': '<x-external-user-id>', Authorization: 'Bearer <token>'}
};
fetch('https://public-api.adclear.ai/v1/disclaimers/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://public-api.adclear.ai/v1/disclaimers/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-External-User-ID: <x-external-user-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.adclear.ai/v1/disclaimers/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-External-User-ID", "<x-external-user-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.adclear.ai/v1/disclaimers/search")
.header("X-External-User-ID", "<x-external-user-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.adclear.ai/v1/disclaimers/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-External-User-ID"] = '<x-external-user-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"disclaimers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"publicId": 123,
"name": "<string>",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"contentTypes": [
"<string>"
],
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"adTypes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"countries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"communicationTypes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"applyToAllProducts": true,
"applyToAllAdTypes": true,
"applyToAllCountries": true,
"applyToAllContentTypes": true,
"applyToAllCommunicationTypes": true,
"isApplicable": true
}
],
"counts": {
"applicable": 123,
"notApplicable": 123,
"linked": 123
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pagination": {
"category": "applicable",
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123,
"hasMore": true,
"nextPage": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Disclaimers
Search disclaimers
Searches the disclaimers library with applicability semantics — the same behaviour as the searchDisclaimers MCP tool. Your product, channel (adTypeId), jurisdiction (countryId) and content type filters do not remove disclaimers: they sort them into buckets. applicable = the disclaimer covers every filter you gave; notApplicable = it does not; linked = the ids you passed in linkedDisclaimerIds. Pass category to get the rows of one bucket; without category the result carries only the count per bucket. Rows come in wording order, ties always in the same order, so pages never repeat or skip a disclaimer unless the library changes between your calls.
GET
/
v1
/
disclaimers
/
search
Search disclaimers
curl --request GET \
--url https://public-api.adclear.ai/v1/disclaimers/search \
--header 'Authorization: Bearer <token>' \
--header 'X-External-User-ID: <x-external-user-id>'import requests
url = "https://public-api.adclear.ai/v1/disclaimers/search"
headers = {
"X-External-User-ID": "<x-external-user-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-External-User-ID': '<x-external-user-id>', Authorization: 'Bearer <token>'}
};
fetch('https://public-api.adclear.ai/v1/disclaimers/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://public-api.adclear.ai/v1/disclaimers/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-External-User-ID: <x-external-user-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.adclear.ai/v1/disclaimers/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-External-User-ID", "<x-external-user-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.adclear.ai/v1/disclaimers/search")
.header("X-External-User-ID", "<x-external-user-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.adclear.ai/v1/disclaimers/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-External-User-ID"] = '<x-external-user-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"disclaimers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"publicId": 123,
"name": "<string>",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"contentTypes": [
"<string>"
],
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"adTypes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"countries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"communicationTypes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"applyToAllProducts": true,
"applyToAllAdTypes": true,
"applyToAllCountries": true,
"applyToAllContentTypes": true,
"applyToAllCommunicationTypes": true,
"isApplicable": true
}
],
"counts": {
"applicable": 123,
"notApplicable": 123,
"linked": 123
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pagination": {
"category": "applicable",
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123,
"hasMore": true,
"nextPage": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": [
{
"type": "field_error",
"field": "<string>",
"message": "<string>"
}
]
},
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Headers
Query Parameters
Response
Bucket counts, plus a page of one bucket when category is given
Was this page helpful?