I'm trying to get demographic audience data from the Facebook Marketing API.
If I do this search I only get audience size:-
6003024075156?fields=audience_size,description,name,topic,disambiguation_category
which returns
{
"audience_size": 2824330,
"description": null,
"name": "Air New Zealand",
"topic": "Business and industry",
"disambiguation_category": "Airline Company",
"id": "6003024075156"
}
In the documentation it suggests I can get other info as seen in the main audience insights panel in Business Manager
https://developers.facebook.com/docs/graph-api/reference/audience-insights-query/
I'm particularly interested in knowing how to construct the query to return the demographic info of the audience
https://developers.facebook.com/docs/graph-api/reference/audience-insights-age-gender/
Field Description
age_by_gender
list<AudienceInsightsAgeGender>
Demographic information by gender