{"uid":"cap_AAgobM9MUQFXUc4PjZuT0","slug":"wikipedia-pageviews-trend-1bfb3de6","name":"Wikipedia Pageviews Trend","description":"Wikipedia pageviews trend for any topic: interest over time as a measure of topic popularity and public attention. Free text (brand, person, product, event) is resolved to the matching Wikipedia article. Returns daily views normalized 0-100, 7-day and window % change, direction (rising, falling, stable, spiking), peak day and spike detection. Similar in purpose to Google Trends search interest, but it measures Wikipedia reading, not searches.","url":"https://attention-trends.shopttyass-85f.workers.dev/trend?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["topic"],"properties":{"days":{"type":"integer","default":30,"maximum":365,"minimum":7,"description":"Window length in days, ending yesterday UTC"},"lang":{"type":"string","default":"en","description":"Wikipedia language code (default en)"},"topic":{"type":"string","description":"Free-text topic, resolved to the best-matching Wikipedia article (e.g. 'bitcoin', 'Taylor Swift', 'AI Act')"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["topic","article","summary","series"],"properties":{"lang":{"type":"string"},"note":{"type":"string"},"topic":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"index":{"type":"integer","description":"0-100, 100 = peak day"},"views":{"type":"integer"}}}},"window":{"type":"object","properties":{"end":{"type":"string"},"days":{"type":"integer"},"start":{"type":"string"}}},"article":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":"string"},"wikidata":{"type":["string","null"]},"matchedBy":{"enum":["exact","redirect","search"],"type":"string"},"description":{"type":["string","null"]},"alternatives":{"type":"array","items":{"type":"object"}}}},"summary":{"type":"object","properties":{"days":{"type":"integer"},"peak":{"type":"object","properties":{"date":{"type":"string"},"views":{"type":"integer"}}},"total":{"type":"integer"},"spikes":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"views":{"type":"integer"},"robustZ":{"type":"number"},"ratioToMedian":{"type":"number"}}}},"avgDaily":{"type":"number"},"last7Avg":{"type":"number"},"prev7Avg":{"type":"number"},"direction":{"enum":["rising","falling","stable","spiking"],"type":"string"},"change7dPct":{"type":["number","null"],"description":"Last 7 days vs previous 7 days, %"},"medianDaily":{"type":"number"},"changeHalfPct":{"type":["number","null"],"description":"Second half of the window vs first half, %"},"slopePctPerWeek":{"type":"number","description":"Log-linear trend, % per week"}}}}}}}}},"responseSchema":{"type":"json","example":{"lang":"en","note":"Source: Wikimedia Pageviews API…","topic":"bitcoin","series":[{"date":"2026-10-20","index":73,"views":2250}],"window":{"end":"2026-10-20","days":30,"start":"2026-09-21"},"article":{"url":"https://en.wikipedia.org/wiki/Bitcoin","title":"Bitcoin","wikidata":"Q131723","matchedBy":"redirect","description":"Decentralized digital cryptocurrency","alternatives":[]},"summary":{"days":30,"peak":{"date":"2026-10-12","views":3100},"total":66000,"spikes":[],"avgDaily":2200,"last7Avg":2300,"prev7Avg":2100,"direction":"stable","change7dPct":9.5,"medianDaily":2150,"changeHalfPct":4.1,"slopePctPerWeek":1.8}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cgs06j6tRxM32AymksWqe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns normalized daily Wikipedia pageview data for any topic over a configurable window, with trend direction, spike detection, and percent-change metrics.","exampleAgentPrompt":"Can you pull the Wikipedia pageview trend for 'Nvidia' over the last 30 days and tell me if interest is rising, falling, or spiking?","exampleUseCases":[{"title":"Brand buzz monitoring for PR team","prompt":"Check the Wikipedia reading trend for 'Anthropic' over the past 60 days — is public attention rising or falling, and were there any notable spikes?"},{"title":"Competitor attention comparison prep","prompt":"Get me the Wikipedia pageview trend for 'OpenAI' for the last 90 days, including the peak day and the 7-day percent change, so I can compare it to our own brand."},{"title":"Event-driven interest spike detection","prompt":"Has there been a spike in Wikipedia views for 'FIFA World Cup 2026' in the past 14 days? Show me the trend direction and any spike dates."}],"resultDescription":"A JSON object containing: the resolved Wikipedia article (title, URL, Wikidata ID, match method), a daily time series of pageviews with 0-100 normalized index values, a summary with total views, average daily views, 7-day and half-window percent changes, trend direction (rising/falling/stable/spiking), peak day, median daily views, slope per week, and a list of detected spike events with z-scores and ratio-to-median.","failureModes":["Topic cannot be resolved to any Wikipedia article — returns error or empty alternatives","Ambiguous topic matches wrong article (e.g. 'Apple' resolves to fruit instead of company)","Requested days window exceeds 365 or is below 7 — schema validation error","Unsupported language code returns error or falls back to English","Wikimedia API upstream outage causes data gaps or failures","Very new or obscure topics may have insufficient pageview history for meaningful trend data"],"whenToPreferThis":"Choose this endpoint when you need a free, unbiased proxy for public attention or topic popularity that doesn't rely on proprietary search data. It's ideal for tracking brand awareness, monitoring breaking news interest, doing competitive intelligence, or measuring the cultural footprint of any topic resolvable to a Wikipedia article. Prefer it over Google Trends alternatives when you need raw view counts alongside normalized indices, spike detection with statistical rigor (robust z-scores), or when you want to avoid search-intent bias — Wikipedia views reflect reading interest, not just query behavior.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:38:07.556Z","isFirstParty":false,"canonicalSlug":"wikipedia-pageviews-trend-1bfb3de6"}