Detalle de Analíticas del Post
Consulta métricas y checkpoints de un post de dopost.
Consulta métricas y checkpoints de un post de dopost.
/api/v1/analytics/posts/:postIdDevuelve métricas actuales y observaciones acumuladas del post.
curl 'https://dopost.co/api/v1/analytics/posts/post_123' --header 'x-api-key: <apiKey>'curl 'https://dopost.co/api/v1/analytics/posts/post_123' --header 'x-api-key: <apiKey>'{
"post": {
"postId": "post_123",
"metrics": [
{
"key": "views",
"value": 920,
"unit": "count",
"aggregation": "POINT",
"availability": "available"
}
],
"collection": {
"state": "collecting",
"completedCheckpoints": 5,
"totalCheckpoints": 34
},
"snapshots": [
{
"observedAt": "2026-08-20T17:00:00.000Z",
"elapsedHours": 1,
"metrics": [
{
"key": "views",
"value": 120,
"unit": "count",
"aggregation": "POINT",
"availability": "available"
}
]
}
]
},
"meta": { "lastUpdatedAt": "2026-08-21T16:05:00.000Z" }
}{
"post": {
"postId": "post_123",
"metrics": [
{
"key": "views",
"value": 920,
"unit": "count",
"aggregation": "POINT",
"availability": "available"
}
],
"collection": {
"state": "collecting",
"completedCheckpoints": 5,
"totalCheckpoints": 34
},
"snapshots": [
{
"observedAt": "2026-08-20T17:00:00.000Z",
"elapsedHours": 1,
"metrics": [
{
"key": "views",
"value": 120,
"unit": "count",
"aggregation": "POINT",
"availability": "available"
}
]
}
]
},
"meta": { "lastUpdatedAt": "2026-08-21T16:05:00.000Z" }
}Los snapshots muestran el rendimiento acumulado en cada checkpoint de recopilación. Un post fuera del workspace o sin analíticas disponibles devuelve 404.