POST /v3/reports/grid/{gridEntityType}
This is the main endpoint for the Grid API. It lets you request data in row/column format for the entities that ObservePoint has collected about your website
Security
API_Key
Dynamic Aggregation Row totals for columns. As for now, only one aggregation is supported for each column (same columnIndex) in the columns array.
- ObservePoint Production APIhttps://api.observepoint.com/v3/reports/grid/{gridEntityType}
curl -i -X POST \
'https://api.observepoint.com/v3/reports/grid/{gridEntityType}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"size": 10,
"totals": [
{
"columnIndex": 0,
"aggregateFunction": "avg"
}
],
"page": 0,
"filters": {
"conditions": [
{
"negated": false,
"operator": "string_contains",
"filteredColumn": {
"groupBy": false,
"columnId": "string",
"format": "string"
},
"fieldName": "id",
"arg": "string",
"wildcardStart": true,
"wildcardEnd": true
}
],
"conditionMatchMode": "all"
},
"columns": [
{
"groupBy": false,
"columnId": "string",
"format": "string"
}
],
"sortBy": [
{
"columnIndex": 0,
"sortDesc": false
}
]
}'Response
{ "metadata": { "pagination": { … }, "headers": [ … ] }, "rows": [ [ … ] ] }