Skip to main content
The OnlyTraffic Partners API lets you retrieve data about your campaigns, transactions, subscribers, and PPC orders. Use it to build integrations, dashboards, and automated workflows.

Base URL

https://partner.onlytraffic.com

Authentication

All requests require the Authorization header with your API key. Get your key in the Partner Dashboard.
curl -X POST "https://partner.onlytraffic.com/api/marketer?do=campaigns" \
  -H "Authorization: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{"limit": 10}'
See the Authentication page for error codes and detailed setup.

Available endpoints

Campaigns

List active campaigns with OF account data, visits, and subscribers.

Transactions

Retrieve transactions with revenue, type, and refund status.

Referred Subscribers

List referred subscribers with sorting by date or revenue.

PPC Orders

Retrieve accepted PPC orders with click delivery progress.

Generate Link

Generate tracking URLs for Smart Link campaigns.

Request format

All endpoints accept POST requests. The action is specified via the do query parameter. Request bodies accept both application/json and application/x-www-form-urlencoded.

Response format

All responses return HTTP 200. The actual status is in the status field.
{
  "status": "success",
  "data": [ ... ]
}

Key notes

  • All dates are in UNIX timestamp format
  • error_code: 429 — rate limit exceeded
  • error_code: 422 — invalid parameters
  • The is_undo field in transactions indicates a refund/chargeback
  • In PPC orders, compare clicks_delivered vs clicks_ordered to track progress