Site Stats By Hour

Retrieve statistics based on site/zone/hour

PHP

Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token

<?php $curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/hour/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]'); curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl); var_dump($response); ?>
Query Params
date

The start point

date

The end point

string
Defaults to all

The zone to look up

Language
Request