Where it is used
GET
/api/v1/assets/{id}/insights
const url = 'http://localhost:3000/api/v1/assets/example/insights';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/assets/example/insights \ --header 'Authorization: Bearer <token>'The brand rules that point at it, the brand pages that show it, the open public portals it is on, and its fetches over the last 30 days by surface and by referrer host.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Asset id
Responses
Section titled “Responses”Where it is used
Media typeapplication/json
object
data
required
object
days
required
How far back fetches go
integer
rules
required
Brand rules that point at it
Array<object>
object
brand
required
string
key
required
string
label
required
string | null
context
required
string | null
pages
required
Brand pages that show it, as they stand now
Array<object>
object
brand
required
object
slug
required
string
name
required
string
default
required
boolean
slug
required
string
title
required
string
portals
required
Open public portals that show it
Array<object>
object
name
required
string
url
required
string
fetches
required
object
total
required
integer
surfaces
required
object
key
additional properties
integer
referrers
required
The hosts that loaded it, most first
Array<object>
object
host
required
string
fetches
required
integer
last
required
string
Examplegenerated
{ "data": { "days": 1, "rules": [ { "brand": "example", "key": "example", "label": "example", "context": "example" } ], "pages": [ { "brand": { "slug": "example", "name": "example", "default": true }, "slug": "example", "title": "example" } ], "portals": [ { "name": "example", "url": "example" } ], "fetches": { "total": 1, "surfaces": { "additionalProperty": 1 } }, "referrers": [ { "host": "example", "fetches": 1, "last": "example" } ] }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}