Search
Get the global search index
Returns every searchable record the user can see, for client-side fuzzy search: organisations, users, publishers, tag configs (ad units), experiments (until 7 days after they end), video configs, reports, health reports, audiences and segments, campaigns, and a fixed list of Insights Hub pages. Each type is included only when the user has its list permission. Results are limited to the organisations the user can access, and users outside the platform’s own organisation only see public health reports. Requires sign-in.
GET
/
v1
/
search
Get the global search index
curl --request GET \
--url https://api.tagdeliver.com/v1/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/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.tagdeliver.com/v1/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>"
],
]);
$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://api.tagdeliver.com/v1/search"
req, _ := http.NewRequest("GET", url, nil)
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://api.tagdeliver.com/v1/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"type": "publisher",
"id": 12345,
"name_1": "example.com",
"name_2": "Example News",
"name_3": "Main site",
"parent_name_1": "DEMO",
"parent_name_2": "example.com",
"parent_name_3": null,
"parent_id": 101
},
{
"type": "page",
"id": 0,
"name_1": "Insights Hub: Revenue",
"name_2": "/report/insight/revenue",
"name_3": null,
"parent_name_1": null,
"parent_name_2": null,
"parent_name_3": null,
"parent_id": null
}
],
"success": true
}{
"success": false,
"message": "Token not found."
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}Was this page helpful?
⌘I
Get the global search index
curl --request GET \
--url https://api.tagdeliver.com/v1/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/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.tagdeliver.com/v1/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>"
],
]);
$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://api.tagdeliver.com/v1/search"
req, _ := http.NewRequest("GET", url, nil)
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://api.tagdeliver.com/v1/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"type": "publisher",
"id": 12345,
"name_1": "example.com",
"name_2": "Example News",
"name_3": "Main site",
"parent_name_1": "DEMO",
"parent_name_2": "example.com",
"parent_name_3": null,
"parent_id": 101
},
{
"type": "page",
"id": 0,
"name_1": "Insights Hub: Revenue",
"name_2": "/report/insight/revenue",
"name_3": null,
"parent_name_1": null,
"parent_name_2": null,
"parent_name_3": null,
"parent_id": null
}
],
"success": true
}{
"success": false,
"message": "Token not found."
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}