AdFlex API (1.0.0)

API for Getting and searching ads of all platforms.

Languages
Servers
Mock server
https://adflex.redocly.app/_mock/openapi/
Server
https://api.adflex.io/api/{version}/

Facebook

Operations

Meta

Operations

Native

Operations

Display

Operations

Pinterest

Operations

Reddit

Operations

X

Operations

Youtube

Operations

Get search filters

Request

curl -i -X GET \
  'https://adflex.redocly.app/_mock/openapi/filters/youtube/search?api_key=YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
statusstringrequired
Enum"ok""failed"
metaobjectrequired
meta.​codeinteger
Example: 1000
meta.​messagestring or null
Example: null
dataobject(FilterGroup)required
Example: {"key":null,"label":"Targeting","icon":"target","collapse":false,"description":null,"mode":"advanced","filters":[],"relations":[["countries","exact_country"]]}
data.​filtersArray of objects
Example: []
data.​relationsArray of strings
Example: [["countries","exact_country"]]
Response
application/json
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": { "filters": [], "relations": [] } }

Search in youtube ads

Request

Bodyapplication/jsonrequired
last_hitinteger

after first page send the current timestamp in seconds

pageinteger
Default 1
Example: 1
orderbystring
Default "updated_at"
Enum"popularity""updated_at""seen_counts""days_active""domain.traffic"
Example: "updated_at"
curl -i -X POST \
  'https://adflex.redocly.app/_mock/openapi/youtube/ads/search?api_key=YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "page": 1,
    "orderby": "updated_at"
  }'

Responses

OK

Bodyapplication/json
statusstringrequired
Enum"ok""failed"
metaobjectrequired
meta.​codeinteger
Example: 1000
meta.​messagestring or null
Example: null
dataobjectrequired
data.​adsArray of objects
data.​current_pageinteger

Current request page

Example: 1
data.​has_next_pageboolean

Defines that next page has ads or not

data.​last_hitinteger

after first page send the current timestamp in seconds

Example: 12321321
Response
application/json
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": { "ads": [], "current_page": 1, "has_next_page": true, "last_hit": 12321321 } }

Get ad's details

Request

Path
adintegerrequired

Ad id

curl -i -X GET \
  'https://adflex.redocly.app/_mock/openapi/youtube/ads/{ad}?api_key=YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
statusstringrequired
Enum"ok""failed"
metaobjectrequired
meta.​codeinteger
Example: 1000
meta.​messagestring or null
Example: null
dataobjectrequired
data.​dataobject
Response
application/json
{ "status": "ok", "meta": { "code": 1000, "message": null }, "data": { "data": {} } }