get https://api.pubnative.net/api
API Access
1. API overview
- The Reporting API uses HTTP API, which tries to follow a RESTful design pattern.
- The results you get back will be in the JSON format.
- All numbers are reported in timezone UTC (+00:00).
- The rate limit of reporting API is 5 requests per second.
2. Account Wide Reporting API
You can query for the data of your account in PubNative platform.
2-1. Endpoint
curl https://dashboard.pubnative.net/api/reports/dsp?account_auth_token={ACCOUNT_AUTH_TOKEN}&start_date={START_DATE}&end_date={END_DATE}
2-2. Request Parameters
Parameter | Required? | Description | Example |
---|---|---|---|
account_auth_token | Required | Reporting API access token (unique per account). Available in dashboard account menu (click Reporting API Key) | 1001a00a1234ab1111ab12a1abc 12312311a10000a1a123412345678abc1234 |
start_date | Required | Start date of the data (dd/mm/yyyy) | 25/01/2021 |
end_date | Required | End date of the data (dd/mm/yyyy) | 30/01/2021 |
2-3. Example Response
{
"status": "success",
"reports": [
{
"revenue": 573.12,
"impressions": 200100,
"date": "25/01/2021"
},
{
"revenue": 987.88,
"impressions": 198000,
"date": "26/01/2021"
},
{
"revenue": 888.56,
"impressions": 123000,
"date": "27/01/2021"
},
{
"revenue": 602.81,
"impressions": 175991,
"date": "28/01/2021"
},
{
"revenue": 998.33,
"impressions": 211271,
"date": "29/01/2021"
},
{
"revenue": 741.59,
"impressions": 159872,
"date": "30/01/2021"
}
]
}