Get aggregated insight metrics for videos on a Page. You can get metrics for Videos, Reels, and Ad Breaks. For the full list of metrics, see Available Metrics.
ANALYZE
Tasks on a Page. GET /v21.0/{video-id}/video_insights HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{video-id}/video_insights',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{video-id}/video_insights",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{video-id}/video_insights",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{video-id}/video_insights"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Parameter | Description |
---|---|
metric list<A valid metric for an insights endpoint> | A list of available metrics that you want to receive. |
period enum{day, week, days_28, month, lifetime, total_over_range} | The aggregation period. |
since datetime/timestamp | Lower bound of the time range to consider. |
until datetime/timestamp | Upper bound of the time range to consider. |
Reading from this edge will return a JSON formatted result:
{ "
data
": [], "paging
": {} }
data
paging
Error | Description |
---|---|
200 | Permissions error |
104 | Incorrect signature |
100 | Invalid parameter |
190 | Invalid OAuth 2.0 Access Token |
80001 | There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
283 | That action requires the extended permission pages_read_engagement and/or pages_read_user_content and/or pages_manage_ads and/or pages_manage_metadata |
2500 | Error parsing graph query |
The following metrics are available for the metric
parameter when you read aggregated insights for ad breaks.
Name | Description |
Values for period |
---|---|---|
| The average amount paid by advertisers for 1,000 impressions of their ads in your video, in U.S. cents. This number also includes the amount paid to Facebook. | day, lifetime |
| Number of times an ad was shown during your video's ad breaks. | day, lifetime |
| An estimate of the amount you earned from ad breaks in your video, in U.S. cents, based on the number of impressions and CPM of ads shown. Actual payments may differ if there are content ownership claims or other adjustments. | day, lifetime |
| The number of views of your video that will receive a payout. | day, lifetime |
The following metrics are available for the metric
parameter when you read aggregated insights for a reel. For more information about Reels, see Reels Developer Documentation.
Name | Description |
Values for period |
---|---|---|
| The number of times your reel starts to play after an impression is already counted. This metric counts reels sessions with 1 millisecond or more of playback. This metric excludes replays. | lifetime |
| The number of times your reel starts to play again after an initial play of your reel. This is defined as replays of 1 millisecond or more in the same reel session. | lifetime |
| The number of times your reel starts to play after an impression is already counted. This is defined as reel sessions with 1 millisecond or more and includes replays. Replays are counted after the initial play of the reel in the same session. | lifetime |
| The number of people who saw your reel at least once, whether or not the person played your reel. This metric is different from impressions, which includes multiple views of your reel by the same person. This metric is estimated. | lifetime |
| The average number of milliseconds your reel was played during a single instance of playing it, including time spent replaying your reel. Because this metric includes replays, the value can be greater than the total length of the reel. | lifetime |
| The number of follows for your reel. | lifetime |
| The number of likes on your reel. | lifetime |
| The percentage of times your reel was played at various timestamp segments out of the total number of plays. Most reels will start out at 100% retention and curve downward as plays begin to drop off. If someone skipped the beginning of the reel, your curve will start at the timestamp where the reel started playing. | lifetime |
| The number of comments on your reel and the number of times your reel was shared. | lifetime |
| The total number of milliseconds your reel played, including time spent replaying your reel. | lifetime |
The following metrics are available for the metric
parameter when you read aggregated insights for a video.
Name | Description |
Values for period |
---|---|---|
| The number of times your videos played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your videos for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos automatically played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds, after people clicked play. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds, by organic reach. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your videos for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds, by organic reach. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your promoted videos played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds. For each impression of a video, we'll count video views separately and exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your promoted videos for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds. For each impression of a video, we'll count video views separately and exclude any time spent replaying the video. | lifetime |
| The number of times your videos played with sound on for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 97%, or more, or its length. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your videos for 97%, or more, of its length. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos automatically played for 97%, or more, of its length. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 97%, or more, of its length, after people clicked play. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 97%, or more, of its length, by organic reach. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your videos for 97%, or more, of its length, by organic reach. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your promoted videos played for 97%, or more, of its length. For each impression of a video, we'll count video views separately and exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your promoted videos for 97%, or more, of its length. For each impression of a video, we'll count video views separately and exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 10 seconds. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of people who viewed your videos for 10 seconds or more. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos automatically played for 10 seconds or more. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 10 seconds or more, after people clicked play. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 10 seconds or more, by organic reach. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your promoted videos played for 10 seconds or more. For each impression of a video, we'll count video views separately and exclude any time spent replaying the video. | lifetime |
| The number of times your videos played with sound on for 10 seconds or more. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 15 seconds or more. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played for 60 seconds or more. During a single instance of a video playing, we'll exclude any time spent replaying the video. | lifetime |
| The number of times your videos played at each interval as a percentage of all views. Videos are divided into 40 equal intervals. Retention graphs may show more impressions later in the video than at the beginning. People might start the video in the middle, skip ahead, save, and rewatch it from that point, or other similar behaviors | lifetime |
| The number of times your videos automatically played at each interval as a percentage of all views. Videos are divided into 40 equal intervals. Retention graphs may show more impressions later in the video than at the beginning. People might start the video in the middle, skip ahead, save, and rewatch it from that point, or other similar behaviors. | lifetime |
| The number of times your videos played at each interval as a percentage of all views, after people clicked play. Videos are divided into 40 equal intervals. Retention graphs may show more impressions later in the video than at the beginning. People might start the video in the middle, skip ahead, save, and rewatch it from that point, or other similar behaviors. | lifetime |
| The average time, in milliseconds, people viewed your videos. | lifetime |
| The total time, in milliseconds, people viewed your videos. | lifetime |
| The total time, in milliseconds, people viewed your videos, by organic reach. | lifetime |
| The total time, in milliseconds, people viewed your promoted videos. | lifetime |
| The total number of impressions of your videos. | lifetime |
| The total number of unique impressions of your videos. | lifetime |
| The total number of unique impressions or your promoted videos. | lifetime |
| The total number of impressions of your promoted videos. | lifetime |
| The total number of unique impressions of your videos, by organic reach. | lifetime |
| The total number of impressions of your videos, by organic reach. | lifetime |
| The total number of unique impressions of your videos in a friend's story. | lifetime |
| The total number of impressions of your videos in a story generated by a friend. | lifetime |
| The total number of unique impressions of your videos for people who liked your Page. | lifetime |
| The total number of impressions of your videos for people who liked your Page. | lifetime |
| The total number of unique impressions of your promoted videos for people who liked your Page. | lifetime |
| The total number of impressions of your promoted video for people who liked your Page. | lifetime |
| The total number of stories created about your Page's video, by action type; liking, commenting, sharing, etc. | lifetime |
| The total number of reactions to your Page's video, by type. | lifetime |
| The total time, in milliseconds, your video has been viewed by Top Audiences; age and gender. | lifetime |
| The total time, in milliseconds, your Page's videos played for your Top 45 Locations; Region - Country. | lifetime |
| The number of times your videos played by distribution type; page_owned and shared. | lifetime |
| The total time, in milliseconds, your Page's videos played by distribution type; page_owned and shared. | lifetime |
| Total time (in ms) video has been viewed when it was broadcasted live. (Total Count). | lifetime |
| Lifetime video views by country. | lifetime |
| Number of people who viewed your video for 3 seconds or viewed to the end, when it was streamed live. | lifetime |
| Lifetime video views by age bucket and gender. | lifetime |
| Lifetime total number of times your videos played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds by male viewers. | lifetime |
| Lifetime total number of times your videos played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds by female viewers. | lifetime |
| Lifetime total number of times people clicked to play your video and viewed it more than 3 seconds - while it was being streamed live. | lifetime |
| Lifetime total number of times males viewed your video for more than 3 seconds while it was being streamed live. | lifetime |
| Lifetime total number of times your video started automatically playing and people viewed it for more than 3 seconds - while it was being streamed live. | lifetime |
| Lifetime total number of times females viewed your video for more than 3 seconds while it was being streamed live. | lifetime |
| Whether the video played for at least 3 seconds, or for nearly their total length if they're shorter than 3 seconds broken down by publisher platform type. | lifetime |
| Total number of times your video was viewed for 30 seconds or 97% of the video if video is less than 30 seconds. (Total Count) | lifetime |