Activity by Day and Hour

Facebook activity Day and Hour


New posts and comments created in the selected period, grouped by day of the week and hour of the day

Entry-point

/account/:account/project/:project/facebook/activity/count/weekday/hour?
  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/activity/count/weekday/hour?since=2015-02-01&until=2015-02-05&timezone=America%2FArgentina%2FBuenos_Aires&ids=84917688371,108586582757'

Sample Response

The data array containing days of the week starts on Sunday

{
  "query": {
    "id": "/facebook/activity/count/weekday/hour",
    "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"
    }
  },
  "results": [
    {
      "id": "84917688371",
      "data": [
        [
          17,
          4,
          10,
          2,
          1,
          1,
          1,
          0,
          2,
          3,
          0,
          1,
          3,
          4,
          2,
          3,
          3,
          2,
          5,
          3,
          7,
          27,
          24,
          13
        ],
        [
          55,
          38,
          42,
          7,
          3,
          5,
          3,
          9,
          10,
          7,
          2,
          7,
          11,
          8,
          6,
          11,
          12,
          8,
          9,
          7,
          4,
          9,
          90,
          77
        ],
        [
          6,
          4,
          6,
          29,
          20,
          30,
          24,
          27,
          21,
          21,
          24,
          18,
          18,
          26,
          28,
          24,
          21,
          17,
          26,
          21,
          39,
          19,
          15,
          4
        ],
        [
          1,
          1,
          3,
          1,
          4,
          2,
          5,
          2,
          5,
          6,
          10,
          5,
          4,
          10,
          6,
          11,
          9,
          2,
          4,
          1,
          2,
          4,
          8,
          1
        ],
        [
          24,
          15,
          8,
          2,
          0,
          0,
          0,
          2,
          0,
          2,
          4,
          2,
          2,
          2,
          3,
          1,
          5,
          2,
          3,
          2,
          2,
          1,
          53,
          33
        ],
        [
          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
        ]
      ]
    },
    {
      "id": "108586582757",
      "data": [
        [
          78,
          43,
          114,
          30,
          26,
          39,
          10,
          16,
          9,
          4,
          3,
          6,
          5,
          10,
          16,
          22,
          88,
          61,
          83,
          54,
          26,
          49,
          33,
          20
        ],
        [
          23,
          16,
          13,
          51,
          48,
          19,
          9,
          5,
          5,
          3,
          5,
          3,
          9,
          6,
          9,
          10,
          13,
          19,
          10,
          8,
          14,
          23,
          17,
          11
        ],
        [
          69,
          49,
          76,
          12,
          13,
          5,
          3,
          9,
          0,
          0,
          2,
          4,
          2,
          0,
          1,
          3,
          5,
          19,
          8,
          2,
          10,
          17,
          6,
          11
        ],
        [
          43,
          29,
          22,
          35,
          56,
          26,
          6,
          2,
          3,
          2,
          1,
          6,
          6,
          9,
          11,
          14,
          41,
          98,
          51,
          39,
          42,
          36,
          19,
          20
        ],
        [
          82,
          60,
          84,
          17,
          12,
          8,
          5,
          5,
          0,
          2,
          4,
          2,
          1,
          3,
          4,
          32,
          45,
          17,
          24,
          12,
          12,
          54,
          74,
          71
        ],
        [
          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
        ]
      ]
    }
  ]
}