Get citation analytics
curl --request GET \
--url https://app.chatobserver.com/api/v2/citations/analytics \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/citations/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/citations/analytics"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"domains": [
{
"rootDomain": "<string>",
"count": 123
}
],
"urls": [
{
"url": "<string>",
"count": 123,
"title": "<string>",
"cleanPageUrl": "<string>",
"cleanPageKey": "<string>"
}
],
"totalCitations": 123,
"cleanPages": [
{
"url": "<string>",
"cleanPageUrl": "<string>",
"cleanPageKey": "<string>",
"count": 123,
"title": "<string>"
}
],
"cleanPageEligibleCitations": 123,
"cleanPageStatus": "available"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"requestId": "<string>"
}Sources and citations
Get citation analytics
Analyse cited domains, pages and ownership across answers.
GET
/
api
/
v2
/
citations
/
analytics
Get citation analytics
curl --request GET \
--url https://app.chatobserver.com/api/v2/citations/analytics \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/citations/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/citations/analytics"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"domains": [
{
"rootDomain": "<string>",
"count": 123
}
],
"urls": [
{
"url": "<string>",
"count": 123,
"title": "<string>",
"cleanPageUrl": "<string>",
"cleanPageKey": "<string>"
}
],
"totalCitations": 123,
"cleanPages": [
{
"url": "<string>",
"cleanPageUrl": "<string>",
"cleanPageKey": "<string>",
"count": 123,
"title": "<string>"
}
],
"cleanPageEligibleCitations": 123,
"cleanPageStatus": "available"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"requestId": "<string>"
}Required scopes:
read.Authorizations
WorkspaceKeyBearerKey
A workspace API key. Data endpoints require a service-account key with the specified scopes.
Response
Successful response.
Show child attributes
Show child attributes