# Trending Now By Country (`ingeniela/trending-now-by-country`) Actor

- **URL**: https://apify.com/ingeniela/trending-now-by-country.md
- **Developed by:** [Ingeniela](https://apify.com/ingeniela) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Trending Now: What's Viral Today in Any Country

See **what a whole country is talking about today**, in one ranked list. Pick one or more countries and get, for each one:

- the **trending searches** of the day, with search volume and the news behind them;
- the **top news stories**;
- the **most-read Wikipedia articles** in that country;
- the **top free apps** in the App Store;
- the **most played songs** in Apple Music, which are the sounds people will use in Reels and TikToks;
- the **most popular YouTube videos** (with your free YouTube key);
- the worldwide **tech front page**.

Everything is merged and scored with a **heat score (0–100)**. A trend that shows up in several feeds at once (searched, in the news and on Wikipedia) goes to the top.

Then the AI explains **why each trend is trending**, its category and mood, and whether a **brand can safely join**. It writes **content ideas that ride the trends** for your brand or channel, each with a hook, a format and a platform. It never suggests profiting from tragedies.

> ☀️ Schedule it every morning with **Only new** and a **Slack webhook** or **email**: a daily newsjacking brief before your team starts.

### Who it is for

- **Social media managers and creators** who want to post on trends while they are early.
- **Brands and agencies** doing newsjacking and real-time marketing in several countries.
- **Newsletters and media** that need the day's topics fast.
- **Marketers entering a new market** who want to know what people there care about.

### What you get

**Trends** (one row per item):

| Field | What it is |
|---|---|
| country, source | The country and the feed (searches, news, wikipedia, apps, songs, youtube, tech) |
| title, url | The trend and a link |
| heat | 0–100: position in its feed, reach, and +12 for each other feed that also shows it |
| traffic, views, points | Search volume (e.g. `2K+`), views, or points |
| alsoIn | The other feeds where the same topic appears |
| news | The news headlines behind a trending search |
| matchesFocus | True when it matches your focus keywords |

**Why it is trending** (per country): trend, reason, category, mood, brand-safe.

**Content ideas** (per country): idea, hook, format, platform, the trend it is based on.

**REPORT** (HTML): every country with its explanations, ideas and the full ranked table.

### How to use it

1. Add the **countries** (two-letter codes: US, MX, ES, BR, AR, CO, GB…).
2. Optional: add **focus keywords** (`skincare`, `football`, `AI`) and describe **your brand**, so the ideas fit you.
3. Optional: paste a free **YouTube Data API key** to add the most popular videos.
4. For a daily digest: turn on **Only new**, add a **Slack webhook** and/or **emails**, save it as a task and schedule it.
5. Click **Start** and open **REPORT**.

### Input example

```json
{
  "countries": ["MX", "ES", "US"],
  "focusKeywords": ["skincare", "beauty"],
  "brand": "Mexican skincare brand for women 25-40",
  "ideas": 8,
  "outputLanguage": "Spanish",
  "onlyNew": true,
  "slackWebhookUrl": "https://hooks.slack.com/services/…"
}
```

### Pricing

| Event | Price |
|---|---|
| Country scanned (all feeds, merged and scored) | $0.05 |
| AI brief for one country (why it trends + content ideas, built-in AI) | $0.10 |

3 countries with AI briefs cost **$0.45**. A daily digest for one country is about **$4.50 a month**. With your own AI key (Anthropic, OpenAI, OpenRouter, Gemini, xAI, DeepSeek or Mistral) the briefs are not charged. All feeds are free and official, so there is no data cost on your account.

### FAQ

**Which countries work?** Trending searches, news, apps and songs cover most countries. Wikipedia readers per country are published only for countries with enough traffic. The tech front page is worldwide.

**How fresh is it?** Searches, news, apps, songs and YouTube are live. Wikipedia readers are from the last full day.

**Can I track a topic instead of a country?** Use **Focus keywords** and **Only trends that match the focus**. To find the most viral posts about a topic, use **Viral Content Finder**.

**Can I use it from n8n, Make or Zapier?** Yes, through the Apify API or the Apify integrations.

### Related

- **Viral Content Finder**: the most viral posts about any topic on TikTok, YouTube, Instagram and LinkedIn.
- **YouTube Trend Finder**: rising topics and video ideas for your channel.

# Actor input Schema

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

Up to 10 two-letter country codes, e.g. US, MX, ES, BR, GB, AR, CO.

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

Which trending feeds to read. Every feed is free and official.

## `itemsPerFeed` (type: `integer`):

How many trends to keep from each feed.

## `focusKeywords` (type: `array`):

e.g. 'skincare', 'football', 'AI'. Matching trends are flagged, and the AI ideas lean on them.

## `onlyFocusMatches` (type: `boolean`):

Drop everything that does not match a focus keyword.

## `youtubeApiKey` (type: `string`):

Free from console.cloud.google.com (YouTube Data API v3). Adds the most popular videos of each country.

## `brand` (type: `string`):

e.g. 'Mexican skincare brand for women 25-40' or 'Spanish tech YouTube channel'. The content ideas fit it.

## `explainTrends` (type: `boolean`):

The AI explains the top trends, their mood and whether a brand can safely join.

## `trendsToExplain` (type: `integer`):

Per country.

## `ideas` (type: `integer`):

Per country: ideas that ride brand-safe trends, each with a hook, format and platform. 0 = no ideas.

## `outputLanguage` (type: `string`):

The trends stay in their own language; the brief is written in this one.

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

Schedule it daily and each run shows only what is new.

## `monitorName` (type: `string`):

Keeps a separate memory per digest (e.g. one per client).

## `slackWebhookUrl` (type: `string`):

An incoming-webhook link (https://hooks.slack.com/…). The top trends and ideas are posted there.

## `emailTo` (type: `array`):

The full report is emailed to these addresses.

## `notifyWhenNothingNew` (type: `boolean`):

Off = no message on quiet days.

## `useProxy` (type: `boolean`):

Retries a refused feed through a proxy.

## `aiProvider` (type: `string`):

Leave all keys empty to use the built-in AI (billed per AI event).

## `aiModel` (type: `string`):

Empty = a good default for the provider.

## `anthropicApiKey` (type: `string`):

With your own key (any provider) that provider bills you and AI events are not charged.

## `openaiApiKey` (type: `string`):

Your own key from platform.openai.com.

## `openrouterApiKey` (type: `string`):

Your own key from openrouter.ai/keys.

## `geminiApiKey` (type: `string`):

Your own key from aistudio.google.com/apikey.

## `xaiApiKey` (type: `string`):

Your own key from console.x.ai.

## `deepseekApiKey` (type: `string`):

Your own key from platform.deepseek.com.

## `mistralApiKey` (type: `string`):

Your own key from console.mistral.ai.

## Actor input object example

```json
{
  "countries": [
    "US"
  ],
  "sources": [
    "searches",
    "news",
    "wikipedia",
    "apps",
    "songs",
    "youtube",
    "tech"
  ],
  "itemsPerFeed": 20,
  "onlyFocusMatches": false,
  "explainTrends": true,
  "trendsToExplain": 10,
  "ideas": 8,
  "outputLanguage": "English",
  "onlyNew": false,
  "monitorName": "default",
  "notifyWhenNothingNew": false,
  "useProxy": true,
  "aiProvider": "auto"
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `trends` (type: `string`):

No description

# 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 = {
    "countries": [
        "US"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ingeniela/trending-now-by-country").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 = { "countries": ["US"] }

# Run the Actor and wait for it to finish
run = client.actor("ingeniela/trending-now-by-country").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 '{
  "countries": [
    "US"
  ]
}' |
apify call ingeniela/trending-now-by-country --silent --output-dataset

```

## MCP server setup

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

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/bDc2liuqw5dXH7roz/builds/kQhDyJyDDmAgJBpSS/openapi.json
