Optima
  1. Endpoints
Optima
  • Publisher API (Beta)
    • Overview
    • Endpoints
      • Get Stats
        GET
  1. Endpoints

Get Stats

GET
https://dashboard.optimanetwork.com/api/publisher/stats
Returns the revenue and impressions for a time period (max 30 days).

Request

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dashboard.optimanetwork.com/api/publisher/stats?startDate=2025-02-01&endDate=2025-02-15' \
--header 'x-api-key;'

Responses

🟢200Success
application/json
Revenue and impressions for a site in a specific date
Body

Example
[
    {
        "date": "2025-03-11",
        "domain": "mydomain.com",
        "cpm": 0.5,
        "revenue": 0.5,
        "impressions": 1000
    },
    {
        "date": "2025-03-11",
        "domain": "mydomain.com-adblock",
        "cpm": 0.35,
        "revenue": 3.53,
        "impressions": 40000,
        "adblockImpressions": 10100
    },
    {
        "date": "2025-03-10",
        "domain": "mydomain.com",
        "cpm": 0.5,
        "revenue": 4.03,
        "impressions": 8062
    },
    {
        "date": "2025-03-10",
        "domain": "mydomain.com-adblock",
        "cpm": 0.34,
        "revenue": 0.55,
        "impressions": 20000,
        "adblockImpressions": 1600
    }
]
🟠400Error
🟠403Unauthorized
Previous
Overview
Built with