Vai al contenuto
GET /v1/aggregate

A project's total pageviews over a range

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/wikitrends-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "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
}