Up to N (plan-dependent, max 100) advertisers, domains or ad ids. Billing is per delivered result in credits (same prices as the synchronous endpoints), not per job.
API reference · Batch jobs
Start an asynchronous batch job
POST
/v1/batchExample request
curl -X POST "https://api.adlibapi.com/v1/batch" \
-H "X-API-Key: $ADLIB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items":["nike.com","adidas.com"],"type":"domains","webhook_url":"https://hooks.example.com/adlib"}'Send your key in the X-API-Key header. Try it in the explorer.
Request body
itemsrequiredstring[]
Advertiser ids (<platform>:<id>), domains, or ad ids. Up to your plan's batch size: free 5, starter 25, growth and above 100
optionsobject
–
countrystring
–
include_adsboolean
domains: also fetch the first page of ads of each matched advertiser
max_pagesinteger
advertisers: pages per advertiser (default 3)
min_scorenumber
domains: keep only advertisers with at least this resolve score
platformsstring[]
domains: restrict resolution
statusstring
One of active, inactive,
typerequiredstring
What the items are
One of advertisers, domains, ads
webhook_urlstring
POSTed (signed) when the job completes
Response
data.created_atrequireddatetime
–
data.credits_billedrequiredinteger
–
data.donerequiredinteger
–
data.failedrequiredinteger
–
data.finished_atrequireddatetime
–
data.job_idrequiredstring
–
data.kindrequiredstring
–
data.paramsrequiredobject
–
data.started_atrequireddatetime
–
data.statusrequiredstring
One of queued, running, done, failed
data.totalrequiredinteger
–
data.webhook_urlrequiredstring
–