Page Summary Statistics

Summary statistics from each Page


Now that you have located the project_id and the fanpage_id you can extract summary statistics:

Entry-point

/account/:ACCOUNT_ID/project/:PROJECT_ID/facebook/profiles/stat-summary?
  since=:START_DATE
  until=:END_DATE
  ids=:PROFILES
  timezone=:TIMEZONE
Parameters Description Sample
ACCOUNT_ID Account Id provided by /authentication 10
PROJECT_ID Project Id provided by /projects 2
START_DATE Beginning of period, date in format yyyy-MM-dd (inclusive) 2014-10-10
END_DATE End of period, date in format yyyy-MM-dd (exclusive) 2014-10-26
PROFILES A list of fanpage ids separated by comma 1234,5657,987
TIMEZONE A timezone -- check the complete list here America/Argentina/Buenos_Aires

Sample Request

export PROJECT_ID=0

curl -H"X-Auth-Token:${TOKEN}" "https://api.quantum.socialmetrix.com/account/${ACCOUNT_ID}/project/${PROJECT_ID}/facebook/profiles/stat-summary?since=2015-01-01&until=2015-01-02&ids=117921318301439&timezone=America/Argentina/Buenos_Aires"

Sample Response

{
  "query": {
    "id": "/facebook/profiles/stat-summary",
    "filters": {
      "timezone": "America/Argentina/Buenos_Aires",
      "ids": [
        "84917688371"
      ],
      "owner": null,
      "type": null,
      "interactionType": null,
      "countries": null,
      "since": "2015-01-01",
      "until": "2015-01-02"
    }
  },
  "results": [
    {
      "id": "84917688371",
      "data": {
        "current": {
          "totalFans": 0,
          "newFans": 0,
          "averageDailyNewfans": 0,
          "averageDailyPosts": 1,
          "newPosts": 2,
          "newInteractions": 0,
          "engagementRate": 0
        },
        "previous": {
          "totalFans": 0,
          "newFans": 0,
          "averageDailyNewfans": 0,
          "averageDailyPosts": 1,
          "newPosts": 2,
          "newInteractions": 0,
          "engagementRate": 0
        }
      }
    }
  ]
}