API for Getting and searching ads of all platforms.
https://api.adflex.io/api/{version}/
https://api.adflex.io/api/v1/filters/facebook/search
curl -i -X GET \
'https://api.adflex.io/api/v1/filters/facebook/search?api_key=YOUR_API_KEY_HERE'
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": { "filters": [ … ], "relations": [ … ] } }
https://api.adflex.io/api/v1/facebook/filter/interests/items
curl -i -X GET \
'https://api.adflex.io/api/v1/facebook/filter/interests/items?api_key=YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"search": "club",
"id": [
1000
]
}'
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": [ { … }, { … }, { … }, { … } ] }
https://api.adflex.io/api/v1/facebook/filter/fanpage_categories/items
curl -i -X GET \
'https://api.adflex.io/api/v1/facebook/filter/fanpage_categories/items?api_key=YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"search": "club",
"id": [
1000
]
}'
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": [ { … }, { … }, { … }, { … } ] }
https://api.adflex.io/api/v1/facebook/ads/search
curl -i -X POST \
'https://api.adflex.io/api/v1/facebook/ads/search?api_key=YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"orderby": "updated_at",
"gender": [
9886
],
"behaviors": [
4026
],
"interests": [
10,
4
],
"search_field": [
{
"type": "text",
"text": "order"
},
{
"type": "without_fanpage",
"text": "MSI"
}
]
}'
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": { "ads": [ … ], "current_page": 1, "has_next_page": true, "last_hit": 12321321 } }
https://api.adflex.io/api/v1/facebook/ads/{ad}
curl -i -X GET \
'https://api.adflex.io/api/v1/facebook/ads/{ad}?api_key=YOUR_API_KEY_HERE'
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": { "data": { … } } }