Export analytics posts

Downloads normalized post-level analytics as CSV across UniPost-published content. Use it for scheduled reports, BI imports, and one-off workspace exports.
https://api.unipost.dev
GET/v1/analytics/posts/export?{from}&{to}&{platform}&{profile_id}&{account_id}&{post_id}&{status}&{sort}
Authorization
In header · Bearer <token>
Query

Authorization

AuthorizationBearer <token>In header
Workspace API key.

Query Params

fromOptionalstring
Start date as YYYY-MM-DD. Defaults to the last 30 days.
toOptionalstring
End date as YYYY-MM-DD. Inclusive by day.
platformOptionalstring
Destination platform filter.
Valuesinstagram | threads | pinterest | tiktok
profile_idOptionalstring
Limit exported rows to one UniPost profile.
account_idOptionalstring
Limit exported rows to one connected social account.
post_idOptionalstring
Limit exported rows to one UniPost post.
statusOptionalstring
Delivery result status.
Valuespublished | failed | partial
sortOptionalstring
Sort key.
Valuespublished_at | published_at_asc | impressions | likes | engagement_rate

Response Body

200
Content-Typetext/csvHeader
CSV response encoded as UTF-8.
Content-DispositionattachmentHeader
Downloads as "unipost-analytics-posts.csv".
post_idstring
UniPost post ID column.
social_post_result_idstring
Platform delivery result ID column.
platformstring
Destination platform column.
social_account_idstring
Connected social account ID column.
profile_idstring
UniPost profile ID column.
result_statusstring
Platform delivery result status column.
post_statusstring
UniPost post status column.
external_idstring
Native platform post ID column.
urlstring
Native platform post URL column, when available.
created_atstring
UniPost post creation timestamp column.
published_atstring
Platform publish timestamp column, when available.
impressionsnumber
Normalized impressions column.
reachnumber
Normalized reach column.
likesnumber
Normalized likes column.
commentsnumber
Normalized comments column.
sharesnumber
Normalized shares column.
savesnumber
Normalized saves / bookmarks column.
clicksnumber
Normalized link or outbound clicks column.
video_viewsnumber
Normalized video views column.
engagement_ratenumber
Computed engagement rate column.
fetched_atstring
Timestamp when analytics were last fetched.
last_failure_reasonstring
Most recent cached upstream failure, when present.
401
error.codestring
Usually "UNAUTHORIZED", "PLAN_FEATURE_NOT_AVAILABLE", or "VALIDATION_ERROR".
error.normalized_codestring
Lowercase error code.
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
402
error.codestring
Usually "UNAUTHORIZED", "PLAN_FEATURE_NOT_AVAILABLE", or "VALIDATION_ERROR".
error.normalized_codestring
Lowercase error code.
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
422
error.codestring
Usually "UNAUTHORIZED", "PLAN_FEATURE_NOT_AVAILABLE", or "VALIDATION_ERROR".
error.normalized_codestring
Lowercase error code.
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.