Video Analytics
Export videos to CSV
Exports filtered videos data as CSV file stored in R2. Returns a presigned download URL valid for 5 minutes.
post/videos/export
Request
- Base URL: https://viral.app/api/v1
- URL: https://viral.app/api/v1/videos/export
- Auth: API key in header x-api-key
Request body
Example request
{
"platforms": [
"tiktok",
"instagram"
],
"accountUsername": "viral_creator",
"accounts": null,
"dateRange": {
"from": "2025-01-01",
"to": "2025-01-31"
},
"contentTypes": [
"video"
]
}Response
OK
Example response
{
"downloadUrl": "https://storage.cloudflare.com/exports/video-daily-gains-2025-12-20-143052.csv?signature=abc123",
"expiresAt": "2025-12-20T14:35:52.000Z",
"rowCount": 15420,
"fileName": "video-daily-gains-2025-12-20-143052.csv"
}Changes
No recorded changes to this operation across all 1 revision of this API.