User Count by Gender

User Gender metrics for each Fanpage


User count for each fanpage, by gender

Entry-point

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

Sample Response

{
  "query": {
    "id": "/facebook/users/count/gender",
    "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": "108586582757",
      "data": {
        "current": {
          "male": 1029,
          "female": 756,
          "unisex": 33,
          "unknown": 547
        },
        "previous": {
          "male": 1075,
          "female": 755,
          "unisex": 22,
          "unknown": 476
        }
      }
    },
    {
      "id": "84917688371",
      "data": {
        "current": {
          "male": 398,
          "female": 218,
          "unisex": 13,
          "unknown": 523
        },
        "previous": {
          "male": 254,
          "female": 128,
          "unisex": 6,
          "unknown": 351
        }
      }
    }
  ]
}