ViralApp icon

ViralApp

Interact with ViralApp API for video analytics on TikTok, Instagram, and YouTube

General Data → Export Daily Gains

AI-generated

Summary

Exports daily gains for tracked videos within a specified date range to a downloadable CSV file.

Inputs

  • dateRangeFrom (required) — Start date (YYYY-MM-DD) for the daily gains data. Defaults to 14 days ago.
  • dateRangeTo (required) — End date (YYYY-MM-DD) for the daily gains data. Defaults to today.
  • filters — A collection of filters to narrow down the data. Includes options to filter by Accounts, Content Types (video/slideshow), Platforms (Instagram/TikTok/YouTube), Projects, and Metrics for top accounts/videos.

Output shape

A list of binary CSV files (one per item) and a JSON envelope containing file details (fileName, downloadUrl, expiresAt, rowCount).

The download URL is valid for 5 minutes. The export endpoint uses POST /analytics/video-daily-gains/export.

Examples

Example 1: Export last 30 days of daily gains for all videos in a specific project.

Set dateRangeFrom to 30 days ago and dateRangeTo to today. Use the 'Filters' option to select the Project by ID or name.

Example 2: Export daily gains for Instagram videos only within a custom date range.

Set custom dates in dateRangeFrom and dateRangeTo. In filters > Platforms, select 'Instagram'.

Links

Discussion