curl --request GET \
--url https://api.heralded.ai/v1/brands/{brand_id}/perception \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.heralded.ai/v1/brands/{brand_id}/perception"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.heralded.ai/v1/brands/{brand_id}/perception', 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.heralded.ai/v1/brands/{brand_id}/perception",
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.heralded.ai/v1/brands/{brand_id}/perception"
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.heralded.ai/v1/brands/{brand_id}/perception")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heralded.ai/v1/brands/{brand_id}/perception")
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{
"best_quotes": [
{
"answer_read_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"engine_id": "<string>",
"prompt_text": "<string>",
"prompt_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quote": "<string>"
}
],
"claims": [
{
"key": "<string>",
"kind": "category",
"kind_label": "<string>",
"quote": {
"answer_read_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"count": 123,
"engine_id": "<string>",
"prompt_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quote": "<string>",
"verdict": "agrees"
},
"state": {
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "new",
"label": "<string>"
},
"trend": {
"delta": 123,
"label": "<string>",
"state": "up"
},
"verdicts": {
"agrees": 0,
"answers": 0,
"contradicts": 0,
"doesnt_say": 0,
"partly": 0
},
"wording": "<string>"
}
],
"domain": "<string>",
"filters": {
"engine": "perplexity",
"intent": "educational",
"prompt": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"segment": "<string>",
"topic": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "organic"
},
"menus": {
"intents": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
],
"segments": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
],
"topics": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
],
"types": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
]
},
"meta": {
"data_as_of": {
"completed_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"query": {}
},
"negative_prompts": [
{
"answers": 123,
"negative": 123,
"prompt_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"share": 123,
"state": "measured",
"text": "<string>"
}
],
"negative_prompts_total": 123,
"negative_sources": [
{
"citations": 123,
"domain": "<string>",
"passage": "<string>",
"state": {
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "new",
"label": "<string>"
},
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"negative_sources_total": 123,
"period": {
"excluded_reports": 123,
"first_answer_at": "2023-11-07T05:31:56Z",
"last_answer_at": "2023-11-07T05:31:56Z",
"preset": "1w",
"reports": 123
},
"praised": {
"answers": 123,
"change": {
"baseline": {
"first_answer_at": "2023-11-07T05:31:56Z",
"last_answer_at": "2023-11-07T05:31:56Z",
"reports": 123
},
"cells_unpaired": 123,
"delta": 123,
"direction": "up",
"high": 123,
"low": 123,
"real": true
},
"denominator": 123,
"high": 123,
"low": 123,
"numerator": 123,
"state": "measured",
"trend": [
{
"answers": 123,
"at": "2023-11-07T05:31:56Z",
"break_label": "<string>",
"high": 123,
"low": 123,
"state": "measured",
"value": 123
}
],
"value": 123
},
"understood": {
"answers": 123,
"change": {
"baseline": {
"first_answer_at": "2023-11-07T05:31:56Z",
"last_answer_at": "2023-11-07T05:31:56Z",
"reports": 123
},
"cells_unpaired": 123,
"delta": 123,
"direction": "up",
"high": 123,
"low": 123,
"real": true
},
"denominator": 123,
"high": 123,
"low": 123,
"numerator": 123,
"state": "measured",
"trend": [
{
"answers": 123,
"at": "2023-11-07T05:31:56Z",
"break_label": "<string>",
"high": 123,
"low": 123,
"state": "measured",
"value": 123
}
],
"value": 123
},
"written": {
"line_to_own": "<string>",
"positioning": [
{
"brand_key": "<string>",
"domain": "<string>",
"engines": 123,
"is_you": true,
"line": "<string>",
"name": "<string>"
}
],
"report_at": "2023-11-07T05:31:56Z",
"report_scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statement": "<string>"
}
}{
"code": "invalid_cursor",
"detail": "The cursor is invalid or belongs to a different query.",
"instance": "example-request-id",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}{
"code": "invalid_token",
"detail": "The Authorization header carries no API key Heralded knows: it is missing, mistyped, revoked or expired.",
"instance": "example-request-id",
"status": 401,
"title": "Unauthorized",
"type": "about:blank"
}{
"code": "not_found",
"detail": "Nothing here that this API key can read.",
"instance": "example-request-id",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}{
"code": "workspace_archived",
"detail": "The API key's organization is archived.",
"instance": "example-request-id",
"status": 409,
"title": "Conflict",
"type": "about:blank"
}{
"code": "invalid_request",
"detail": "The request's parameters are invalid; `errors` names each one.",
"errors": [
{
"loc": [
"query",
"limit"
],
"msg": "Input should be less than or equal to 100",
"type": "less_than_equal"
}
],
"instance": "example-request-id",
"status": 422,
"title": "Unprocessable Content",
"type": "about:blank"
}{
"code": "rate_limited",
"detail": "This caller is past its requests for the minute. Retry after the seconds in Retry-After.",
"instance": "example-request-id",
"rate_limit": {
"limit": 120,
"remaining": 0,
"reset": 60,
"window": 60
},
"status": 429,
"title": "Too Many Requests",
"type": "about:blank"
}Get Perception
The statement, positioning, claims, negative prompts and sources, and best quotes.
curl --request GET \
--url https://api.heralded.ai/v1/brands/{brand_id}/perception \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.heralded.ai/v1/brands/{brand_id}/perception"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.heralded.ai/v1/brands/{brand_id}/perception', 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.heralded.ai/v1/brands/{brand_id}/perception",
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.heralded.ai/v1/brands/{brand_id}/perception"
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.heralded.ai/v1/brands/{brand_id}/perception")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heralded.ai/v1/brands/{brand_id}/perception")
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{
"best_quotes": [
{
"answer_read_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"engine_id": "<string>",
"prompt_text": "<string>",
"prompt_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quote": "<string>"
}
],
"claims": [
{
"key": "<string>",
"kind": "category",
"kind_label": "<string>",
"quote": {
"answer_read_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"count": 123,
"engine_id": "<string>",
"prompt_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quote": "<string>",
"verdict": "agrees"
},
"state": {
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "new",
"label": "<string>"
},
"trend": {
"delta": 123,
"label": "<string>",
"state": "up"
},
"verdicts": {
"agrees": 0,
"answers": 0,
"contradicts": 0,
"doesnt_say": 0,
"partly": 0
},
"wording": "<string>"
}
],
"domain": "<string>",
"filters": {
"engine": "perplexity",
"intent": "educational",
"prompt": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"segment": "<string>",
"topic": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "organic"
},
"menus": {
"intents": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
],
"segments": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
],
"topics": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
],
"types": [
{
"count": 123,
"label": "<string>",
"value": "<string>"
}
]
},
"meta": {
"data_as_of": {
"completed_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"query": {}
},
"negative_prompts": [
{
"answers": 123,
"negative": 123,
"prompt_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"share": 123,
"state": "measured",
"text": "<string>"
}
],
"negative_prompts_total": 123,
"negative_sources": [
{
"citations": 123,
"domain": "<string>",
"passage": "<string>",
"state": {
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "new",
"label": "<string>"
},
"title": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"negative_sources_total": 123,
"period": {
"excluded_reports": 123,
"first_answer_at": "2023-11-07T05:31:56Z",
"last_answer_at": "2023-11-07T05:31:56Z",
"preset": "1w",
"reports": 123
},
"praised": {
"answers": 123,
"change": {
"baseline": {
"first_answer_at": "2023-11-07T05:31:56Z",
"last_answer_at": "2023-11-07T05:31:56Z",
"reports": 123
},
"cells_unpaired": 123,
"delta": 123,
"direction": "up",
"high": 123,
"low": 123,
"real": true
},
"denominator": 123,
"high": 123,
"low": 123,
"numerator": 123,
"state": "measured",
"trend": [
{
"answers": 123,
"at": "2023-11-07T05:31:56Z",
"break_label": "<string>",
"high": 123,
"low": 123,
"state": "measured",
"value": 123
}
],
"value": 123
},
"understood": {
"answers": 123,
"change": {
"baseline": {
"first_answer_at": "2023-11-07T05:31:56Z",
"last_answer_at": "2023-11-07T05:31:56Z",
"reports": 123
},
"cells_unpaired": 123,
"delta": 123,
"direction": "up",
"high": 123,
"low": 123,
"real": true
},
"denominator": 123,
"high": 123,
"low": 123,
"numerator": 123,
"state": "measured",
"trend": [
{
"answers": 123,
"at": "2023-11-07T05:31:56Z",
"break_label": "<string>",
"high": 123,
"low": 123,
"state": "measured",
"value": 123
}
],
"value": 123
},
"written": {
"line_to_own": "<string>",
"positioning": [
{
"brand_key": "<string>",
"domain": "<string>",
"engines": 123,
"is_you": true,
"line": "<string>",
"name": "<string>"
}
],
"report_at": "2023-11-07T05:31:56Z",
"report_scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statement": "<string>"
}
}{
"code": "invalid_cursor",
"detail": "The cursor is invalid or belongs to a different query.",
"instance": "example-request-id",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}{
"code": "invalid_token",
"detail": "The Authorization header carries no API key Heralded knows: it is missing, mistyped, revoked or expired.",
"instance": "example-request-id",
"status": 401,
"title": "Unauthorized",
"type": "about:blank"
}{
"code": "not_found",
"detail": "Nothing here that this API key can read.",
"instance": "example-request-id",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}{
"code": "workspace_archived",
"detail": "The API key's organization is archived.",
"instance": "example-request-id",
"status": 409,
"title": "Conflict",
"type": "about:blank"
}{
"code": "invalid_request",
"detail": "The request's parameters are invalid; `errors` names each one.",
"errors": [
{
"loc": [
"query",
"limit"
],
"msg": "Input should be less than or equal to 100",
"type": "less_than_equal"
}
],
"instance": "example-request-id",
"status": 422,
"title": "Unprocessable Content",
"type": "about:blank"
}{
"code": "rate_limited",
"detail": "This caller is past its requests for the minute. Retry after the seconds in Retry-After.",
"instance": "example-request-id",
"rate_limit": {
"limit": 120,
"remaining": 0,
"reset": 60,
"window": 60
},
"status": 429,
"title": "Too Many Requests",
"type": "about:blank"
}Authorizations
An API key, sent as Authorization: Bearer hrld_....
Path Parameters
Query Parameters
perplexity, gemini, openai, google_aio, ai_mode, copilot, claude organic, brand_specific, competitor_comparison educational, problem, comparison, transactional Include only scans up to this completed scan id.
1w, 4w, 12w, all 1 <= x <= 100x >= 0x >= 0x >= 0Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
What the toolbar's four menus offer, counted over every tracked prompt rather than over the page (PR-4). A menu built from one page of ten would hide the segment the eleventh row is in.
Show child attributes
Show child attributes
Normalized query and newest included scan.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
What the latest weekly report's interpretation wrote, over every answer and every engine: none of it follows the period or a filter.
Show child attributes
Show child attributes