Two ways to get TrafficJunky data out.
TrafficJunky documents its API in two versions, both with bearer token authentication. The statistics endpoints are in V1, and the work sits in date formats, paging and turning date range figures into daily rows.
Build and run it yourself
- Get a bearer token for the TrafficJunky member account that owns the campaigns. Every request sends it as
Bearer {token}. - Use V1 for reporting. V2 manages campaigns, ads and creatives, and documents no statistics endpoints.
- Call
/api/campaigns/bids/stats.jsonfor spend. It returnscost,impressionsandclicksper campaign. - Send
startDateandendDateas DD/MM/YYYY. The documented response carries no date field, so for daily figures you ask for one day at a time. - Page through the results with
limitandoffset: a call returns 10 results by default. Read each day after it has closed, because TrafficJunky says campaign stats can take up to 1 hour to refresh in the dashboard. - Map campaigns to your own markets and product lines, and line them up with the rest of your media data.
Then monitor it, and fix it when a response changes shape.
Have Odins run it
- Access is set up with you at onboarding. Credentials go in through your Odins onboarding link, never by email.
- We collect your TrafficJunky delivery every day, monitor the pipeline and maintain it.
- You get spend, impressions and clicks per campaign per day, with campaign naming mapped into your own structure.
- Spot and placement reporting is added when you ask for it.
The same goes for every other source you use. One team runs all of them. See all connectors
What the TrafficJunky API offers.
V1 holds the statistics endpoints for campaigns, ads, bids and spots. Their paths end in the format you want, .json or .xml. TrafficJunky's own documentation is the reference.
GET /api/campaigns/bids/stats.json?startDate=DD/MM/YYYY&endDate=DD/MM/YYYY
| Endpoint | What it returns | Good to know |
|---|---|---|
/api/campaigns/bids/stats |
Cost, impressions, clicks and conversions per campaign for a date range, with daily budget, status and current bids. | Without dates it covers the last 30 days. |
/api/campaigns/stats |
Impressions, clicks, CTR, eCPM, eCPC and conversions per campaign, with the spots it runs on. | Without dates it covers the last 15 days. |
/api/campaigns |
The campaigns that belong to the member account. | Returns 5 results unless you set maxResults. |
/api/ads/{campaignId}/stats/one |
Impressions, clicks, revenue, CTR and conversions per ad. |
One call per campaign. |
/api/spots/{campaignId} |
The spots a campaign runs on, each with its site. | /api/spots/{spotId}/revenue returns revenue and impressions for one spot. |
/api/member/fund/modifications |
The member's fund modifications, each marked credit or debit, with date, balance and payment method. |
- Auth Bearer token
- Format JSON or XML
- Dates DD/MM/YYYY
- History No limit documented
Worth knowing about TrafficJunky data.
Cost is on the bids endpoint.
The documented response of /api/campaigns/stats has impressions, clicks, eCPM and eCPC, but no cost field. cost is documented on /api/campaigns/bids/stats.
The defaults return a slice.
A campaign stats call without dates covers the last 15 or 30 days, depending on the endpoint, and without limit it returns 10 results. Set dates and paging on every call.
Scheduling runs on Eastern Time.
TrafficJunky bases all campaign scheduling on Eastern Time. The API documentation does not say which time zone the dates in a stats request use.
VAT depends on your VAT number.
TrafficJunky is registered in Cyprus and charges VAT to companies in the European Union, the United Kingdom, Ukraine and Cyprus that are not registered for VAT or have not provided a valid VAT registration number, and on all transactions between two Cypriot entities. The API documentation does not say whether cost includes VAT.
What you get back.
Two layers. The raw one mirrors TrafficJunky. The structured one is the table every source lands in, organised by your own markets and product lines.
Structured layer
Per campaign, per day| In the structured table | For TrafficJunky |
|---|---|
| Date | Daily |
| Company and market | Set by your routing rules on campaign names |
| Channel and media | Its own channel, or inside a combined display channel |
| Source campaign | Campaign |
| Spend | Daily spend per campaign |
| Impressions | Impressions |
| Clicks | Clicks |
Raw layer
As TrafficJunky reports itDaily delivery per campaign, as the API returns it. Spot and placement reporting is added on request.
Use it where you work.
In your warehouse
Raw and structured tables delivered to BigQuery, Snowflake, Redshift or Databricks. Some customers use Odins for this alone.
In Odins
Reporting across every channel, and a model that shows what display contributes and where more spend still pays.
Through your AI assistant
Connect Claude, ChatGPT or Copilot to Odins with MCP and ask for the numbers in plain language.
Questions.
Does TrafficJunky have an API?
Yes. TrafficJunky documents an API in two versions. V1 has the statistics endpoints for campaigns, ads, bids and spots, and V2 manages campaigns, ads and creatives. Both use a bearer token.
How do I get TrafficJunky data into BigQuery?
Odins collects your TrafficJunky delivery daily and delivers raw and structured tables to BigQuery, Snowflake, Redshift or Databricks. Access is set up with you at onboarding.
What level of detail can we get?
Campaign per day by default, with spend, impressions and clicks. Spot and placement reporting is added on request.
How far back does TrafficJunky data go?
TrafficJunky's API documentation states no history limit. Odins requests history from 2020.
How is TrafficJunky measured in the model?
As its own channel or inside a combined display channel, with contribution and marginal return estimated like every other channel.
We run other ad networks too. Are they covered?
TrafficStars and other ad networks land in the same structure. See all display and programmatic connectors.
-1.png?width=1132&height=292&name=Asset%201@2x%20(12)-1.png)