Wikipedia trending pages API

Most-read Wikipedia articles for a language and day from the official Wikimedia pageviews API. Main_Page and Special:* rows are removed. POST /api/v1/wikipedia/trending costs $0.004 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Wikimedia REST API page summaries Wikimedia pageviews top articles Limits: Official extracts and pageviews only — HTML pages are not scraped. Identify the client with a descriptive User-Agent that includes brainiac.software.

Most-read Wikipedia articles for a language and day from the official Wikimedia pageviews API. Main_Page and Special:* rows are removed. POST /api/v1/wikipedia/trending costs $0.004 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Wikimedia REST API page summaries Wikimedia pageviews top articles Limits: Official extracts and pageviews only — HTML pages are not scraped. Identify the client with a descriptive User-Agent that includes brainiac.software.

POST$0.004 USDC
/api/v1/wikipedia/trending

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/wikipedia/trending" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "language": "en"
}
JSON

Example response

{
  "status": "complete",
  "date": "2026-11-19",
  "language": "en",
  "articles": [
    {
      "rank": 1,
      "title": "Grand Theft Auto VI",
      "views": 750227
    },
    {
      "rank": 2,
      "title": "Wikipedia:Featured pictures",
      "views": 529699
    }
  ],
  "source": "Wikimedia pageviews API",
  "missing_items": []
}

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).

Limits: Official extracts and pageviews only — HTML pages are not scraped. Identify the client with a descriptive User-Agent that includes brainiac.software. Trending drops Main_Page and Special:* rows from the official ranking.

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

Wikipedia Summary Trending Pageviews API APIGroup docsHow it works