For Publishers

API Integration Guide

Traffic.Bar’s Publisher API lets publishers automate traffic sources, zones, reporting, conversions, and payment data. It uses RESTful endpoints with JSON request and response bodies and OAuth 2.0 bearer-token authentication. Approved publishers can also configure webhooks for real-time events and stream impression, click, and revenue statistics with sub-minute latency.

API integration network visualization
The Back Bar

Wire your stack into our taps

RESTful API architecture illustration for Traffic.Bar publisher integration

RESTful API

Clean, predictable endpoints following REST conventions. JSON request and response bodies with complete error handling and pagination support.

OAuth 2.0 authentication illustration for secure API access

OAuth 2.0 Auth

Industry-standard OAuth 2.0 authentication with bearer tokens. Secure API key management, token refresh flows, and fine-grained permission scopes.

Webhook callback notification illustration for real-time event delivery

Webhook Callbacks

Real-time event notifications pushed to your server. Configure webhooks for conversions, payment events, campaign status changes, and more.

API documentation illustration with code examples in PHP, Python, and Node.js

Full Docs

API access available on request. Documentation provided upon approval.

The Taps

API Capabilities

Everything behind the counter, exposed as endpoints. Manage your publisher account without lifting a glass.

Campaign management API endpoint illustration

Campaign Management

Create, update, pause, and delete campaigns via API. Set budgets, targeting, and bid strategies programmatically.

Reporting API endpoint illustration for performance data export

Reporting API

Pull detailed performance reports by date range, GEO, device, format, and source. Export data in JSON or CSV.

Conversion tracking API illustration for server-to-server postback integration

Conversion Tracking

Server-to-server postback integration for tracking conversions. Support for multiple conversion events and custom parameters.

Ad zone management API illustration for placement configuration

Zone Management

Manage ad zones, placements, and traffic sources. Configure zone-level floor prices and format preferences via API.

Payment API illustration for querying balances and invoice history

Payment API

Query payment history, pending balances, and invoice details. Set preferred payment methods and thresholds programmatically.

Real-time statistics streaming API illustration for live performance data

Real-Time Stats

Stream live impression, click, and revenue data. Sub-minute latency for dashboards, alerting, and automated optimization.

FAQ

Frequently Asked Questions

What can be automated with the Publisher API?
The Publisher API can automate traffic sources, zones, reporting, conversions, and payment data. Publishers can manage zones, placements, and traffic sources, pull performance reports, implement server-to-server conversion tracking, query payment history and pending balances, and stream impression, click, and revenue statistics. It also supports programmatic payment preferences and thresholds.
How does authentication work?
The Publisher API exposes RESTful endpoints with JSON request and response bodies. Authentication uses OAuth 2.0 bearer tokens, with token refresh flows and fine-grained permission scopes available for secure access. The API also provides error handling and pagination support, allowing publisher integrations to handle authenticated requests and larger result sets predictably.
Does the API support webhooks?
The Publisher API supports webhooks for approved publishers and delivers real-time events to their servers. Publishers can configure notifications for conversions, payment events, campaign status changes, and other events. They can also stream live impression, click, and revenue statistics with sub-minute latency for dashboards, alerting, and automated optimization.
How do publishers get API access?
Publisher API access is available on request. Publishers can create an account or use the page’s Request API Access option to email support@traffic.bar for integration support. Documentation is provided upon approval, giving approved publishers the materials needed to connect to the RESTful endpoints.
Keep Exploring

Publisher Solutions

Publishers can monetize websites, apps, email lists, redirect traffic, and push subscribers with real-time reporting.

Explore publisher monetization

Publisher Payments

Publisher payments run on NET-15 terms with minimums of $100 for USDT and $500 for Wire/SEPA or Paxum.

Check payout methods and terms

Anti-Fraud Policy

Traffic passing through the network is screened and risk scored for authenticity.

See how traffic is screened
Last Call

Wire into the back bar

Create your account or flag down your bartender for integration support.