Profile Analytics

Get Facebook Page Analytics

This API retrieves profile analytics data from Facebook for a specific location.

get/locations/{locationId}/facebook-analytics

Request

Path parameters

locationIdstring required
Example:TG9jYXRpb246MTI5Njkw

Location ID

Query parameters

fromDatestring date
Example:2018-01-01

Start date of date range filter (YYYY-MM-DD)

toDatestring date
Example:2018-12-31

End date of date range filter (YYYY-MM-DD)

Headers

Authorizationstring required

API key for authentication

Response

Successful response

Example response

{
  "data": {
    "facebookInsights": {
      "ctaAction": [
        {
          "startTime": "2018-11-13T00:00:00+00:00"
        }
      ],
      "directionsAction": [
        {
          "startTime": "2018-11-13T00:00:00+00:00"
        }
      ],
      "phoneAction": [
        {
          "startTime": "2018-11-13T00:00:00+00:00"
        }
      ],
      "views": [
        {
          "startTime": "2018-11-13T00:00:00+00:00"
        }
      ],
      "websiteAction": [
        {
          "startTime": "2018-11-13T00:00:00+00:00"
        }
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.