npm install
npm start
Create 2 endpoints to get Facebook ad interests information.
You can find documentation on how to get this data from Facebook here: https://developers.facebook.com/docs/marketing-api/audiences/reference/targeting-search/
In the docs search for type=adTargetingCategory&class=interests
E.g.
GET /interests
[
{"id":"6007828099136", "name":"Luxury goods"},
{"id":"6009422452499", "name":"Home and garden"}
...
]
Notes: Some interests are deprecated/not deliverable. To verify the status, use the Targeting Status endpoint (search for type=targetingoptionstatus). Only return ad interests with status "NORMAL"
E.g.
GET /interests/audience-size?ids=6007828099136,6009422452499,...
{
"totalAudienceSize": 12311525
}