# Google Trends History: Trending Now by Country + Wikipedia (`panthalus/trending-now-history`) Actor

What is trending right now in 125 countries (Google Trends Trending Now) plus Wikipedia top reads, with history Google does not keep: when each topic first appeared, hours trending, peak rank and traffic. News links included. No login, no proxies.

- **URL**: https://apify.com/panthalus/trending-now-history.md
- **Developed by:** [Panthalus](https://apify.com/panthalus) (community)
- **Categories:** SEO tools, News, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 trends

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Trends History: Trending Now by Country + Wikipedia

![Trending Now + History: what is trending, and for how long](https://api.apify.com/v2/key-value-stores/OUAKECfhX5Svhoo26/records/banner-trending-now)

**What is trending right now in 125 countries, and how long it has been trending.** The Actor returns Google Trends "Trending now" searches by country, with the news stories Google links to each one, plus the most-read Wikipedia articles in 20 languages. Every row carries **history that Google's own feed does not keep**: when we first saw the topic, the last time it was seen, how many hours it has trended, its peak rank and peak search volume, and whether it is brand new.

### Why history matters

Google's Trending Now feed is a moving window: it shows what is trending at this moment and forgets everything else. You can't ask it *"when did this start?"*, *"is this a two-hour blip or a three-day story?"* or *"what was trending in Brazil last Tuesday?"*.

We read the feed for every supported country **every hour** on our own server and keep the snapshots. This Actor joins that archive to the live feed, so you get:

- `firstSeenAt` / `lastSeenAt`: first and last time the topic was in the country's Trending Now list.
- `hoursTrending`: number of hourly snapshots it appeared in.
- `peakRank` / `peakTraffic`: best position and highest search bucket it reached.
- `isNew`: first seen in the last 2 hours. Schedule the Actor hourly with `onlyNew: true` and you get an alert feed of new trends only.
- `mode: "history"`: every topic that trended in the last 1-30 days, from the archive.

### What people use it for

- **Content creators and social teams**: catch a topic in its first hour (`isNew`), not after everyone else has posted about it.
- **Newsrooms**: a per-country wire of what people are searching for, with the stories Google matches to each trend, and how long each one has lasted.
- **SEO and content marketing**: find rising queries by country and see which ones keep trending for days (worth an evergreen page) versus one-hour spikes.
- **Ad buyers and brand safety**: spot breaking events by market before they hit your campaigns.
- **Researchers and analysts**: a clean daily history of trends by country, plus Wikipedia attention per language, without building a collector yourself.
- **AI agents**: answer *"what is trending in Brazil right now?"* or *"what did Germany search for this week?"* with one tool call.

### Input

| Field | What it does |
|---|---|
| `countries` | ISO codes, e.g. `["US", "GB", "BR"]`. `ALL` = all 125 countries Google publishes Trending Now for. `UK` is read as `GB`. Default `["US"]` |
| `sources` | `google` (Trending Now searches, hourly, by country) and/or `wikipedia` (most-read articles, daily, by language). Default `["google"]` |
| `mode` | `now` = live feed plus history fields (default). `history` = all topics seen in the last `daysBack` days |
| `daysBack` | History mode: 1-30 days (default 7) |
| `includeNews` | Add the news stories Google links to each trend (default on) |
| `minTraffic` | Google only: keep trends with at least this many approximate searches (e.g. `1000` for "1000+") |
| `onlyNew` | Only topics first seen in the last 2 hours (Google) or new in that day's top list (Wikipedia) |
| `wikipediaLanguages` | e.g. `["en", "de", "ja"]`, or `all` for the 20 largest editions. Default `["en"]` |
| `wikipediaDate` | Now mode: day to return (`YYYY-MM-DD`). Empty = latest day Wikimedia has published (usually yesterday) |
| `wikipediaTop` | Articles per language, 1-100 (default 25) |

```json
{
  "countries": ["US", "GB", "BR"],
  "sources": ["google", "wikipedia"],
  "mode": "now",
  "includeNews": true,
  "wikipediaLanguages": ["en", "pt"]
}
```

### Output (one row per trend)

All rows share one schema. Google rows fill `country` and `approxTraffic`; Wikipedia rows fill `lang` and `wikipediaViews`.

```json
{
  "source": "google",
  "country": "GB",
  "countryName": "United Kingdom of Great Britain and Northern Ireland",
  "lang": null,
  "rank": 8,
  "title": "49ers vs raiders",
  "approxTraffic": 500,
  "approxTrafficText": "500+",
  "startedAt": "2026-11-08T20:40:00Z",
  "firstSeenAt": "2026-11-08T20:57:10Z",
  "lastSeenAt": "2026-11-08T21:21:55Z",
  "hoursTrending": 2,
  "daysTrending": null,
  "peakRank": 1,
  "peakTraffic": 500,
  "isNew": true,
  "newsItems": [
    {
      "title": "Raiders return to Bay Area — and the jail at Levi’s Stadium could be busy",
      "url": "https://www.nbcsports.com/nfl/profootballtalk/rumor-mill/news/raiders-return-to-bay-area-and-the-jail-at-levis-stadium-could-be-busy",
      "source": "NBC Sports"
    }
  ],
  "picture": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcT4P7wd…",
  "wikipediaViews": null,
  "url": "https://trends.google.com/trends/explore?q=49ers+vs+raiders&geo=GB&date=now%207-d",
  "observedAt": "2026-11-08T21:21:55Z",
  "dataFrom": "live"
}
```

| Field | Meaning |
|---|---|
| `source` | `google` or `wikipedia` |
| `country`, `countryName` / `lang` | Country (Google) or Wikipedia language |
| `rank` | Position in Google's Trending Now feed for that country, or Wikipedia most-read rank (after removing non-articles) |
| `title` | Search term or article title |
| `approxTraffic`, `approxTrafficText` | Google's search-volume bucket as a number and as shown (`"2000+"`) |
| `startedAt` | When Google says the trend started (Google `pubDate`); for Wikipedia, the day of the list |
| `firstSeenAt`, `lastSeenAt` | First and last time it appeared in our hourly snapshots (Wikipedia: first and last day in the top list, last 7 days) |
| `hoursTrending` | Hourly snapshots it appeared in (Google). `daysTrending`: days in the Wikipedia top list |
| `peakRank`, `peakTraffic` | Best rank and highest traffic bucket (Wikipedia: highest daily views) |
| `isNew` | First seen in the last 2 hours (Google), or new in that day's top list (Wikipedia) |
| `newsItems` | `[{title, url, source}]`: stories Google links to the trend |
| `picture` | Thumbnail Google shows for the trend |
| `wikipediaViews` | Page views that day (all devices) |
| `url` | Google Trends explore link for the term, or the Wikipedia article |
| `observedAt` | When the row was read |
| `dataFrom` | `live` (fetched this run), `snapshot` (our latest hourly snapshot, used if the live feed fails) or `history` |

If our history archive is ever unreachable, `mode: "now"` still returns the live feed and leaves the history fields empty; the run's status message says so.

### Pricing

Pay per event:

- **USD 1.00 per 1,000 trend rows returned**.
- A small start fee per run (USD 0.005).

| Example | Rows | Cost |
|---|---|---|
| US right now | ~10 | about USD 0.015 |
| All 125 countries right now | ~1,250 | about USD 1.26 |
| US + GB, last 7 days of history | depends on turnover | USD 0.001 per row |

Set a maximum cost per run in Apify Console and the Actor stops cleanly when it reaches it.

### Run it from code or an AI agent

Everything the Console does is one API call away. Get your token under **Settings > API & Integrations**.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("panthalus/trending-now-history").call(run_input={"countries": ["BR", "US"], "includeNews": True})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript** (`npm i apify-client`)

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('panthalus/trending-now-history').call({"countries": ["BR", "US"], "includeNews": true});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**cURL** (runs the Actor and returns the results in one request)

```bash
curl -X POST "https://api.apify.com/v2/acts/panthalus~trending-now-history/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"countries": ["BR", "US"], "includeNews": true}'
```

**AI agents (MCP).** Add this Actor as a tool in Claude, Cursor, VS Code or any MCP client:

```
https://mcp.apify.com?tools=panthalus/trending-now-history
```

Then just ask, for example: *"What is trending in Brazil right now, and which of those topics are new in the last two hours?"* The Actor uses pay-per-event pricing with limited permissions, so it is eligible for Apify's agentic payments.

**Schedules and integrations.** Run it hourly with an Apify Schedule and `onlyNew: true`, and send new trends to Google Sheets, Slack, Zapier, Make, n8n or a webhook from the **Integrations** tab.

### FAQ

**Where does the data come from?** Two public, official sources. Google rows come from Google's public **Trending Now RSS feed** (`trends.google.com/trending/rss?geo=XX`), the same list as the "Trending now" page. Wikipedia rows come from **Wikimedia's official Pageviews API** (`wikimedia.org/api/rest_v1/metrics/pageviews`). We do **not** access Google Trends Explore (it is disallowed in Google's robots.txt), no login, no cookies, no proxies. History comes from our own hourly snapshots of the same feed.

**Is `approxTraffic` the exact number of searches?** No. It is Google's own rounded bucket ("1000+", "20000+"), per country. Use it to compare trends, not as an exact count.

**What does `rank` mean for Google rows?** The position in Google's feed for that country (1 = first). Google orders the list itself; it is not always sorted by traffic.

**How far back does history go?** Our hourly archive started in November 2026 and grows every hour. `mode: "history"` covers up to the last 30 days. In `now` mode, history fields cover the last 7 days (shorter on very busy days, to keep runs fast); a topic that disappears for longer and comes back starts a new history.

**How fresh is it?** `mode: "now"` reads Google's feed live during your run for up to 20 countries. With more countries (or `ALL`) it returns our latest hourly snapshot (at most about an hour old, `dataFrom: "snapshot"`), which is faster and keeps the run polite to Google; countries missing from the snapshot are still read live. History is updated hourly. Wikipedia publishes daily lists with a 1-2 day delay; we return the latest available day unless you set `wikipediaDate`.

**Which countries?** The 125 countries Google publishes Trending Now for (we tested every ISO country code). Some countries, e.g. small territories, have no feed; they return no rows and are listed in the run's status message.

**Which Wikipedia pages are removed?** Main pages, search, special and project pages, files, categories, templates and pages whose traffic is almost all desktop or almost all mobile-web, which on Wikipedia is a strong sign of automated traffic.

**Is this legal?** The Actor reads public feeds published for this kind of use, respects robots.txt and identifies itself with a descriptive User-Agent. Trend terms and article titles are public aggregate data with no personal data attached. You are responsible for how you use the data, e.g. when republishing news headlines.

# Actor input Schema

## `countries` (type: `array`):

Two-letter country codes (ISO 3166-1), e.g. US, GB, BR, IN, DE. Use ALL for every one of the 125 countries Google publishes Trending Now for. UK is accepted as GB.

## `sources` (type: `array`):

google = Google Trends 'Trending now' (searches, hourly, by country). wikipedia = most-read Wikipedia articles (daily, by language).

## `mode` (type: `string`):

now = what is trending right now (live feed) with our history attached: first seen, hours trending, peak rank and traffic. history = every topic that trended in the last N days, from our hourly snapshots.

## `daysBack` (type: `integer`):

Mode history only: return topics seen in the last N days (1-30).

## `includeNews` (type: `boolean`):

Adds the news stories Google links to each trend (title, URL, publisher).

## `minTraffic` (type: `integer`):

Google rows only: keep trends with at least this many approximate searches (Google's bucket, e.g. 1000 for '1000+'). Empty = all.

## `onlyNew` (type: `boolean`):

Keep only topics we first saw in the last 2 hours (Google) or that entered the daily top list that day (Wikipedia). Handy with an hourly schedule.

## `wikipediaLanguages` (type: `array`):

Wikipedia language editions when sources includes wikipedia, e.g. en, de, fr, es, ja, pt. Use all for the 20 largest.

## `wikipediaDate` (type: `string`):

Mode now only: day to return (YYYY-MM-DD, UTC). Empty = the latest day Wikimedia has published (usually yesterday or the day before).

## `wikipediaTop` (type: `integer`):

How many of the most-read articles to return per language (1-100). Main page, search and other non-article pages and likely bot traffic are removed first.

## Actor input object example

```json
{
  "countries": [
    "US"
  ],
  "sources": [
    "google"
  ],
  "mode": "now",
  "daysBack": 7,
  "includeNews": true,
  "onlyNew": false,
  "wikipediaLanguages": [
    "en"
  ],
  "wikipediaTop": 25
}
```

# Actor output Schema

## `results` (type: `string`):

One row per trending topic (Google, by country) or most-read article (Wikipedia, by language) with rank, traffic, first seen, hours trending, peak rank and traffic, news links.

## `summary` (type: `string`):

Per country and language: live or snapshot, rows returned, and whether our history store was available.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("panthalus/trending-now-history").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("panthalus/trending-now-history").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call panthalus/trending-now-history --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,panthalus/trending-now-history"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/G7qWF4uiaHHYZnZe1/builds/MPbSxFp5vM6CHgG7h/openapi.json
