API Method: /api/analytics/extract/play-totals

Extract total values from a site, a single photo or a series of photos from the analytics engine as daily and summed values.

Parameters

ParameterDescription
date_start The starting date of the range from which to get photo details.
date_end The ending date of the range from which to get photo details.
photo_id Limits the extracted totals to one or more photo IDs. To limit to multiple photo IDs, separate photo IDs with commas.
If no photo_id value is supplied, the default behavior is to extract totals from the entire site.

Permission level

The minimum required permission level is:

read

Example XML Response

Analytics extraction endpoints do not support XML output formatting.

Example JSON Response

Notes on specific output values:


{
  "status": "ok", 
  "permission_level": "read",
  "cached": "0",
  "analytics": {
    "daily": [
      {
        "date": 1241992800000,
        "totals": {
          "downloadedBytes": 2555070996.0,
          "downloads": 22.0,
          "events": {
            "load": 5.0
          },
          "finishes": 1.0,
          "loads": 22.0,
          "playEngagement": 116.26,
          "plays": 4.0,
          "playthroughAverage": 47.5
        }
      },
      {
        "date": 1242079200000,
        "totals": {
          "downloadedBytes": 899000228.0,
          "downloads": 40.0,
          "events": {
          },
          "finishes": 4.0,
          "loads": 46.0,
          "playEngagement": 3583.09,
          "plays": 15.0,
          "playthroughAverage": 34.07
        }
      },
      ..
    ],
    "absolute": {
      "hourly": [
        {
          "downloadedBytes": 4596349590.0,
          "downloads": 330.0,
          "finishes": 86.0,
          "loads": 461.0,
          "plays": 283.0
        },
        ..
      ],
      "playthrough": [
        100,
        100,
        ..
        38
      ],
      "totals" : {
        "downloadedBytes": 373387551299.0,
        "downloads": 15732.0,
        "events": {
          "fullscreen": 1.0,
          "load": 33.0
        },
        "finishes": 2467.0,
        "loads": 15925.0,
        "playEngagement": 1569539.40,
        "plays": 6556.0,
        "playthroughAverage": 56.88
      }
    }
  },
  "p": 1,
  "size": 1,
  "total_count": 1,
  "site": { ... },
  "endpoint": "/api/analytics/extract/play-totals"
}