Posts Count by Weekday and Hour

Facebook posts metrics for each Fanpage


Posts count, by Weekday and Hour

Entry-point

/account/:account/project/:project/facebook/profiles/posts/count/weekday/hour?
  since=:START_DATE
  until=:END_DATE
  ids=:PROFILES
  timezone=:TIMEZONE
  owner=:OWNER
  type=:TYPE
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
OWNER Post owner. Valid values are [admin, user] user
TYPE Post type. Valid values are [status, photo, video, link] text

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/profiles/posts/count/weekday/hour?since=2015-02-01&until=2015-02-15&timezone=America%2FArgentina%2FBuenos_Aires&ids=84917688371,108586582757&owner=admin&type=link'

Sample Response

The data array containing days of the week starts on Sunday

{
  "query": {
    "id": "/facebook/profiles/posts/count/weekday/hour",
    "filters": {
      "timezone": "America/Argentina/Buenos_Aires",
      "ids": [
        "84917688371",
        "108586582757"
      ],
      "owner": "admin",
      "type": "link",
      "interactionType": null,
      "countries": null,
      "since": "2015-02-01",
      "until": "2015-02-15"
    }
  },
  "results": [
    {
      "id": "108586582757",
      "data": [
        [
          2,
          3,
          3,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          2,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          1
        ],
        [
          0,
          0,
          0,
          2,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0
        ],
        [
          1,
          0,
          2,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          1,
          0,
          2,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          1,
          0,
          0,
          0,
          0,
          1,
          0,
          0
        ],
        [
          2,
          1,
          2,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          1,
          1,
          0,
          0
        ],
        [
          1,
          0,
          2,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          1,
          0,
          0,
          0,
          1,
          0,
          0,
          0
        ]
      ]
    },
    {
      "id": "84917688371",
      "data": [
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      ]
    }
  ]
}