API reference · Watchlists and webhooks

Add advertisers to a watchlist

POST/v1/watchlists/{id}/advertisers

Example request

Shell
curl -X POST "https://api.adlibapi.com/v1/watchlists/0b7c6a8e-1f2d-4c3b-9a8e-5d6f7a8b9c0d/advertisers" \
  -H "X-API-Key: $ADLIB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"advertisers":["meta:15087023444","google:AR18378488041124659201"]}'

Send your key in the X-API-Key header. Try it in the explorer.

Parameters

idrequired
path · string
–

Request body

advertisersrequired
string[]
–

Response

data.advertiser_countrequired
integer
–
data.advertisersrequired
object[]

Empty in the list endpoint; GET /v1/watchlists/{id} has the entries

active_ads_known
integer
–
advertiser_id
string
–
last_crawl_at
datetime
–
last_error
string
–
name
string
–
next_crawl_at
datetime
–
data.archive_videosrequired
boolean
–
data.created_atrequired
datetime
–
data.idrequired
string
–
data.interval_hoursrequired
integer

Crawl interval, as set with interval_hours on create

data.namerequired
string
–
data.webhook_urlrequired
string
–