Skip to main content
GET
List pixels
Your Meta Ads and TikTok Ads pixels from Tools -> Pixels, with their event mapping and health. For what a pixel sends and how to set one up, see Ad Platform Pixels.

Two ids

You can add the same platform pixel to OnlyTraffic more than once, for example with a different event mapping. That is why requests take pixel_id, not the platform’s number.

Health

health is the outcome of the latest send or check of the pixel. test_mode is true while a test event code is set on the pixel: its events land in the platform’s Test Events tool, not in ads reporting.

Pixels on campaigns

Every row of RevShare campaigns and CPL campaigns has an ad_pixels array: the pixels attached to that campaign and the events it sends to each of them. A campaign without a pixel has an empty array.

Find campaigns with a failing pixel

Creating and editing pixels

Pixels are added, edited and archived in the cabinet only. The API never returns the access token of a pixel.

Authorizations

Authorization
string
header
required

API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.

Query Parameters

status
enum<string>
default:active

Which pixels to return. Default active.

Available options:
active,
archived,
all
offset
integer
default:0

Number of records to skip.

Required range: x >= 0
limit
integer
default:50

Number of records to return.

Required range: 1 <= x <= 1000

Response

200 - application/json

Success

status
enum<string>
Available options:
success
data
object[]