Fans Count by Date

Audience metrics for each Fanpage


Get audience metrics for each fanpage, day by day

Entry-point

/account/:account/project/:project/facebook/fans/count/date?
  since=:START_DATE
  until=:END_DATE
  ids=:PROFILES
  timezone=:TIMEZONE
Parameters Description Sample
ACCOUNT_ID Account Id provided by /authentication 724
PROJECT_ID Project Id provided by /projects 3
START_DATE Beginning of period, date in format yyyy-MM-dd (inclusive) 2015-02-01
END_DATE End of period, date in format yyyy-MM-dd (exclusive) 2015-02-05
PROFILES A list of fanpage ids separated by comma 84917688371,108586582757
TIMEZONE A timezone -- check the complete list here America/Argentina/Buenos_Aires

Sample Request

export ACCOUNT_ID=724
export PROJECT_ID=3

curl  -H"X-Auth-Token:${TOKEN}" 'https://api.quantum.socialmetrix.com/account/724/project/3/facebook/fans/count/date?since=2015-02-01&until=2015-02-05&timezone=America%2FArgentina%2FBuenos_Aires&ids=84917688371,108586582757'

Sample Response

{
  "query": {
    "id": "/facebook/fans/count/date",
    "filters": {
      "timezone": "America/Argentina/Buenos_Aires",
      "ids": [
        "84917688371",
        "108586582757"
      ],
      "owner": null,
      "type": null,
      "interactionType": null,
      "countries": null,
      "since": "2015-02-01",
      "until": "2015-02-05"
    },
    "period": {
      "id": "1d",
      "duration": 86400
    }
  },
  "results": [
    {
      "id": "84917688371",
      "data": [
        4849,
        4681,
        5143,
        5102,
        5846
      ],
      "avg": 5124.2,
      "sum": 25621
    },
    {
      "id": "108586582757",
      "data": [
        1070,
        1390,
        2066,
        2448,
        1522
      ],
      "avg": 1699.2,
      "sum": 8496
    }
  ],
  "annotations": []
}