Publisher Data API

API Endpoints

GET /api/publisher_data

Retrieves publisher performance data for specified date ranges.

Query Parameters

  • start_date - Start date in YYYY-MM-DD format (defaults to yesterday)
  • end_date - End date in YYYY-MM-DD format (defaults to yesterday)
  • format - Response format, either 'json' or 'csv' (defaults to 'json')

Example Request

GET /api/publisher_data?start_date=2025-05-14&end_date=2025-05-15&format=json

Example Response (JSON)

[
  {
    "Date": "2025-05-14T00:00:00",
    "Geo": "United States",
    "Device": "PC",
    "Coverage": null,
    "Searches": 487,
    "BiddedSearches": 0,
    "Clicks": 194,
    "Tq": 0.0000,
    "FollowOnSearches": null,
    "PubSubId": "tfb1",
    "Revenue": 11.0781
  },
  {
    "Date": "2025-05-15T00:00:00",
    "Geo": "United States",
    "Device": "PC",
    "Coverage": null,
    "Searches": 729,
    "BiddedSearches": 0,
    "Clicks": 157,
    "Tq": 0.0000,
    "FollowOnSearches": null,
    "PubSubId": "tfb1",
    "Revenue": 6.8174
  }
]

Try it out