Vai al contenuto
GET /v1/article

Pageview trend for one article

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/article" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wikitrends-api/v1/article", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wikitrends-api/v1/article");
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/article",
    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,
        "title": "Cristiano Ronaldo",
        "access": "all-access",
        "series": [
            {
                "date": "2026-06-01",
                "views": 35837
            },
            {
                "date": "2026-06-02",
                "views": 38298
            },
            {
                "date": "2026-06-03",
                "views": 39473
            },
            {
                "date": "2026-06-04",
                "views": 39922
            },
            {
                "date": "2026-06-05",
                "views": 41528
            },
            {
                "date": "2026-06-06",
                "views": 49555
            },
            {
                "date": "2026-06-07",
                "views": 52183
            },
            {
                "date": "2026-06-08",
                "views": 48521
            }
        ],
        "source": "Wikimedia Pageviews",
        "article": "Cristiano_Ronaldo",
        "project": "en.wikipedia",
        "granularity": "daily",
        "total_views": 345317
    },
    "meta": {
        "timestamp": "2026-06-10T13:59:42.003Z",
        "request_id": "90c541b2-ee02-4a12-a9f3-0610fdfc5bd0"
    },
    "status": "ok",
    "message": "Article trend retrieved successfully",
    "success": true
}