Get topic interest over time (coming soon)
get_topic_trendsMeasure and compare topic interest over time using Wikipedia pageviews. Get timelines, spikes, and trend direction for keywords to assess growth, seasonality, or breaking stories.
Instructions
COMING SOON: this Kanto Labs actor is not public on the Apify Store yet. Until it is, calls return an 'actor not yet public' error and nothing is charged. Measure and compare interest in topics over time, like Google Trends, from official Wikipedia pageview data (human traffic, 2015-07-01 to yesterday, CC0). Each keyword is matched to one Wikipedia article (exact title first, else the top non-disambiguation search hit; the matched article is returned so you can check it; write "Apple Inc." for the company, "apple" gives the fruit). Per topic: a daily, weekly or monthly timeline with absolute views and a 0-100 value normalised across all keywords of the call, total and average views, peak date, latest value, change percent and trend (rising/stable/falling), spike days, and interest by language edition. Use it for 'is interest in X growing?', comparing brands, products, people or technologies, seasonality, or finding the day a story broke. It counts people reading about a topic, not Google searches, and has no per-city data. About 5-10 s for 3 keywords and about a minute for 10 keywords over 12 months, so send up to about 30 keywords per call. Cost: $0.003 per topic analyzed, billed to your Apify account; keywords with no matching article are free. Runs the Apify actor kantolabs/wikipedia-trends with your APIFY_TOKEN; maxTotalChargeUsd caps the spend per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | Custom end date, YYYY-MM-DD. Default yesterday (UTC). | |
| keywords | Yes | Topics to compare on one scale: keywords ("bitcoin"), exact article titles ("Apple Inc.") or Wikipedia URLs. | |
| language | No | Wikipedia language edition used to match keywords: en (default), de, fr, es, ja, pt, it, ru, zh, pl, nl, ko... | |
| platform | No | Devices counted. Default all-access. | |
| startDate | No | Custom start date, YYYY-MM-DD (earliest 2015-07-01). | |
| timeRange | No | Period to analyse. Default past90Days. "all" = 2015-07-01 to yesterday. Ignored when startDate or endDate is set. | |
| granularity | No | Timeline resolution. "auto" (default) = daily up to 3 months, weekly up to about 2 years, monthly beyond. | |
| timeoutSecs | No | Give up after this many seconds (max 300, Apify's limit for synchronous runs). Default 280. For big batches, split the input into several calls. | |
| maxLanguages | No | How many of the largest language editions to include. Default 10. | |
| includeLanguages | No | Add interest by language edition. Default true; false is faster. | |
| includeRedirects | No | Add views of titles that redirect to the article (old names, spellings) so a renamed topic does not start from zero. Default true. | |
| maxTotalChargeUsd | No | Hard spending cap for this call in USD, enforced by Apify: the run stops once it has charged this much. Default 1 (server setting KANTO_MAX_CHARGE_USD). |