{"uid":"cap_DDr22Mu0XLideaAGrtok6","slug":"compare-topic-popularity-05ff1756","name":"Compare Topic Popularity","description":"Compare the popularity of 2-5 topics (brands, competitors, products, people, keywords) by Wikipedia pageviews. Returns one jointly normalized 0-100 interest-over-time series per topic, share of attention, the most popular and the fastest-rising topic, and per-topic trend direction and spikes. A Google-Trends-style popularity comparison based on Wikipedia reading rather than searches. Suited to competitor analysis, brand tracking and content planning.","url":"https://attention-trends.shopttyass-85f.workers.dev/compare?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":["topics"],"properties":{"days":{"type":"integer","default":30,"maximum":365,"minimum":7},"lang":{"type":"string","default":"en"},"topics":{"type":"string","description":"2-5 comma-separated topics, e.g. 'ChatGPT,Claude,Gemini'"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["topics"],"properties":{"lang":{"type":"string"},"note":{"type":"string"},"leader":{"type":["string","null"]},"topics":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"value":{"type":"integer"}}}},"article":{"type":["object","null"]},"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"}}},"shareOfAttentionPct":{"type":"number"}}}},"window":{"type":"object"},"fastestRising":{"type":["string","null"]}}}}}}},"responseSchema":{"type":"json","example":{"lang":"en","leader":"ChatGPT","topics":[{"topic":"ChatGPT","series":[{"date":"2026-10-20","value":88}],"article":{"url":"https://en.wikipedia.org/wiki/ChatGPT","title":"ChatGPT"},"summary":{"direction":"stable"},"shareOfAttentionPct":61.2}],"window":{"end":"2026-10-20","days":30,"start":"2026-09-21"},"fastestRising":"Claude"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nuzmx_XkHCizoMqKRPqgp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares the Wikipedia pageview-based popularity of 2–5 topics over time, returning normalized interest series, share of attention, and trend signals for each topic.","exampleAgentPrompt":"Compare the Wikipedia-based popularity of ChatGPT, Claude, and Gemini over the last 60 days — show me who leads in share of attention and which one is rising the fastest.","exampleUseCases":[{"title":"AI assistant competitive benchmarking","prompt":"Compare the public attention on ChatGPT, Claude, Gemini, and Grok over the past 90 days using Wikipedia pageviews — I want to see who leads, who's rising fastest, and the weekly interest trend for each."},{"title":"Election candidate popularity tracking","prompt":"Can you compare Wikipedia interest between Kamala Harris and Donald Trump over the last 30 days and tell me which one has the higher share of attention and whether either is spiking?"},{"title":"Content planning for trending topics","prompt":"I'm writing blog posts about electric vehicles — compare the Wikipedia popularity of Tesla, Rivian, and Lucid Motors over the last 60 days so I know which brand to focus on first."}],"resultDescription":"Returns a JSON object with one normalized 0–100 interest-over-time series per topic (daily data points), each topic's share of total attention as a percentage, trend direction (rising/falling/stable/spiking), detected spike events with z-scores, the overall leader topic, the fastest-rising topic, peak views and dates, 7-day momentum metrics, and a link to the corresponding Wikipedia article for each topic.","failureModes":["Fewer than 2 or more than 5 topics provided — request rejected","Topic not found on Wikipedia for the specified language — that topic returned with null article and zero views","Invalid language code — may fall back to English or return an error","Days parameter outside 7–365 range — request rejected","Wikipedia API unavailability causing upstream fetch failure","Topics with identical names or duplicates reducing comparison value"],"whenToPreferThis":"Choose this endpoint when you need a Google-Trends-style relative popularity comparison grounded in Wikipedia reading behavior rather than search volume. It is ideal for competitor analysis, brand tracking, and content prioritization where you want unbiased, publicly verifiable attention data across 2–5 topics simultaneously, with normalized scores that make cross-topic comparison meaningful. Prefer it over single-topic pageview endpoints when you need share-of-attention, fastest-rising, and directional trend signals in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T12:32:54.003Z","isFirstParty":false,"canonicalSlug":"compare-topic-popularity-05ff1756"}