You need an API key — see API authentication.
Replace YOUR_API_KEY and the order ID 105002 below with your own.
1. Check your account
curl https://api.trafficox.com/api/v1/me \
-H "Api-Key: YOUR_API_KEY"
{
"email": "you@example.com",
"username": "yourname",
"balance": 1234.56,
"default_state": "trusted",
"landing_code": "ABCDEFGHI"
}
balance is your total balance in USD.
2. Get yesterday's stats by country
Statistics are requested with POST and a JSON body:
curl -X POST https://api.trafficox.com/api/v1/popunder/buy_orders/105002/stats/countries \
-H "Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_start":"2026-10-25","date_end":"2026-10-25"}'
The response is keyed by country code:
{
"US": {
"hits": 63633,
"unique": 28083,
"desktop": 40000,
"mobile": 23633,
"spent": 82.57,
"cpm": 1.298,
"winrate": 12.5,
"conversions": 150,
"cost_per_conversion": 0.55,
"conversion_rate": 0.236,
"conversion_revenue": 120.5,
"profit": 37.93
}
}
To narrow the stats, add filters to the body — for example
"countries":["US","DE"]. See Statistics requests.
3. Pause a buy order
curl -X POST https://api.trafficox.com/api/v1/popunder/buy_orders/105002/pause \
-H "Api-Key: YOUR_API_KEY"
The response is the full buy order with "state": "paused". To start it again,
call /play the same way — it works only on a paused order; otherwise you get
422 {"error":"Cannot activate the Buy Order"}.
Next
- API reference — every endpoint
- Statistics requests — filters, breakdowns and fields