You will need an API Key ID and API Key Secret to use this API. This API is for retrieving the statistics for a single file.

HTTPS GET https://svc.digify.com/v1/file/stats/{guid}

  1. Require basic authentications with base64 encoded version of <ID>:<Secret>
  2. API returns 2 blocks, FileSummary and RecipientSummary

Sample Request 

GET https://svc.digify.com/v1/file/stats/2a49b156d32f41c3badea3cdad0d2074

Connection: keep-alive
Accept: application/json, text/plain, */*
Authorization: Basic amFz2GVyX211mVsb9BlcjoxMjM0NTZhYmNkZWY=
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh-TW;q=0.4

Sample Response

HTTP/1.1 200 Successfully returned file info
Content-Length: 540
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Date: Thu, 20 Apr 2017 05:07:38 GMT

{
  "FileSummary": {
    "Guid": "2a49b156d32f41c3bad1a3cdad0d2074",
    "UserEmail": "tester@email.com",
    "FileName": "secret.pdf",
    "TotalViewCount": 5,
    "TotalPrintCount": 0,
    "TotalDownloadCount": 0,
    "TotalViewSeconds": 260,
    "TotalRecipientsCount": 4,
    "TotalRecipientsViewed": 3
  },
  "RecipientSummary": [
    {
      "RecipientUserEmail": "tester1@email.com",
      "RecipientUserGuid": "4be2543fcf18405d8bc17509c68aa169",
      "RecipientFirstName": "Digify",
      "RecipientLastName": "Tester1",
      "RecipientTotalViewCount": 1,
      "RecipientTotalPrintCount": 0,
      "RecipientTotalDownloadCount": 0,
      "RecipientTotalViewSeconds": 142,
      "RecipientLastViewedDateTime": "2017-05-16T16:14:34.759+08:00",
      "RecipientShareStatus": "Active",
      "RecipientViewFirstTime": "2017-05-16T16:12:12.661+08:00",
      "RecipientDestructSeconds": 180,
      "RecipientExpiryDate": "0001-01-01T08:00:00+08:00"
    },
    {
      "RecipientUserEmail": "tester2@email.com",
      "RecipientUserGuid": "9cb49f07d3d04a00bb9bf99ac991decc",
      "RecipientFirstName": "Digify",
      "RecipientLastName": "Tester2",
      "RecipientTotalViewCount": 1,
      "RecipientTotalPrintCount": 0,
      "RecipientTotalDownloadCount": 0,
      "RecipientTotalViewSeconds": 4,
      "RecipientLastViewedDateTime": "2017-05-16T11:03:23.685+08:00",
      "RecipientShareStatus": "Active",
      "RecipientViewFirstTime": "2017-05-16T11:03:18.883+08:00",
      "RecipientDestructSeconds": 180,
      "RecipientExpiryDate": "0001-01-01T08:00:00+08:00"
    },
    {
      "RecipientUserEmail": "tester3@email.com",
      "RecipientUserGuid": "e061c92e2533425286a4599bab804eae",
      "RecipientFirstName": "Digify",
      "RecipientLastName": "Tester3",
      "RecipientTotalViewCount": 3,
      "RecipientTotalPrintCount": 0,
      "RecipientTotalDownloadCount": 0,
      "RecipientTotalViewSeconds": 114,
      "RecipientLastViewedDateTime": "2017-05-15T17:44:27.86+08:00",
      "RecipientShareStatus": "Active",
      "RecipientViewFirstTime": "2017-05-15T17:41:21.06+08:00",
      "RecipientDestructSeconds": 180,
      "RecipientExpiryDate": "0001-01-01T08:00:00+08:00"
    }
  ],
  "Status": {
    "StatusCode": 50000,
    "StatusMessage": "Successfully returned track details"
  }
}

Did this answer your question?