Read the document analytics information for the given list of Glean Document IDs or URLs specified in the request
Information about analytics requested.
OK
Array of objects (DocumentAnalytics) Analytics for requested documents. There will be one-to-one mapping for documents included in the request. |
Invalid request
Not Authorized
Too Many Requests
{- "documentSpecs": [
- {
- "url": "string"
}
], - "dayRange": {
- "minDaysFromNow": 0,
- "maxDaysFromNow": 0,
- "start": {
- "epochSeconds": 0,
- "daysFromNow": 0
}, - "end": {
- "epochSeconds": 0,
- "daysFromNow": 0
}
}, - "withClickerCounts": true,
- "withImpressionCounts": true,
- "withFacetAggregations": true,
- "withVisitCounts": true
}
{- "results": [
- {
- "documentSpec": {
- "url": "string"
}, - "visitorCount": {
- "count": 0,
- "period": {
- "minDaysFromNow": 0,
- "maxDaysFromNow": 0,
- "start": {
- "epochSeconds": 0,
- "daysFromNow": 0
}, - "end": {
- "epochSeconds": 0,
- "daysFromNow": 0
}
}, - "org": "string"
}, - "clickerCount": {
- "count": 0,
- "period": {
- "minDaysFromNow": 0,
- "maxDaysFromNow": 0,
- "start": {
- "epochSeconds": 0,
- "daysFromNow": 0
}, - "end": {
- "epochSeconds": 0,
- "daysFromNow": 0
}
}, - "org": "string"
}, - "userImpressionCount": {
- "count": 0,
- "period": {
- "minDaysFromNow": 0,
- "maxDaysFromNow": 0,
- "start": {
- "epochSeconds": 0,
- "daysFromNow": 0
}, - "end": {
- "epochSeconds": 0,
- "daysFromNow": 0
}
}, - "org": "string"
}, - "visitCount": {
- "count": 0,
- "period": {
- "minDaysFromNow": 0,
- "maxDaysFromNow": 0,
- "start": {
- "epochSeconds": 0,
- "daysFromNow": 0
}, - "end": {
- "epochSeconds": 0,
- "daysFromNow": 0
}
}, - "org": "string"
}, - "facetAnalytics": [
- {
- "facet": {
- "fieldName": "type",
- "values": [
- {
- "value": "Spreadsheet",
- "relationType": "EQUALS"
}, - {
- "value": "Presentation",
- "relationType": "EQUALS"
}
]
}, - "analytics": { }
}
]
}
]
}