/v1/aggregate
A project's total pageviews over a range
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/wikitrends-api/v1/aggregate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wikitrends-api/v1/aggregate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wikitrends-api/v1/aggregate");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/wikitrends-api/v1/aggregate",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"to": "2026-06-08",
"from": "2026-06-01",
"count": 8,
"access": "all-access",
"series": [
{
"date": "2026-06-01",
"views": 314766231
},
{
"date": "2026-06-02",
"views": 311407635
},
{
"date": "2026-06-03",
"views": 308605746
},
{
"date": "2026-06-04",
"views": 303125887
},
{
"date": "2026-06-05",
"views": 311150207
},
{
"date": "2026-06-06",
"views": 310820458
},
{
"date": "2026-06-07",
"views": 327860680
},
{
"date": "2026-06-08",
"views": 341995000
}
],
"source": "Wikimedia Pageviews",
"project": "en.wikipedia",
"granularity": "daily",
"total_views": 2529731844
},
"meta": {
"timestamp": "2026-06-10T13:59:42.131Z",
"request_id": "4b824cc6-1fa5-44c7-adc2-103dc9a72305"
},
"status": "ok",
"message": "Aggregate views retrieved successfully",
"success": true
}