# Trending Searches API — trends by country + article match (`synthetic.ia/trending-searches-api`) Actor

Top trending searches for Argentina and 40+ countries with approximate volume, start time and the news covering each. Send your article titles/URLs and get back which ones ride a trend. Built for newsrooms and content teams. No key. Pay per query.

- **URL**: https://apify.com/synthetic.ia/trending-searches-api.md
- **Developed by:** [Synthetic](https://apify.com/synthetic.ia) (community)
- **Categories:** News, Marketing
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 trends queries

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Searches API — what a country is searching right now (and which of your articles ride the wave)

Get the **top trending searches** for Argentina and 40+ countries — with approximate search volume, when each trend started, a "new" flag, and the **news articles covering it** — behind a clean HTTP API (and MCP tool). Then send your own article titles or URLs to **`match`** and get each one flagged as *riding a trend* or not, with the trend it belongs to. Built for **newsrooms, content teams and editors** who want to know what to cover, what to push harder, and whether a piece is in step with what people are looking for. **No key.** Pay per query.

- 📈 **Trending** — trends sorted by volume (e.g. `200+`, `2000+`, `20K+`), start time, `isNew` (started in the last 3 h), picture, and the headlines + URLs + sources Google lists for each trend.
- 🏷️ **Match** — pass up to 200 articles `{ id?, title, url? }`; each comes back `trending: true/false` plus the matching trend, its rank and volume, and *how* it matched (`url`, `title` or `related`).
- 🌎 **40+ countries** — `geo` is an ISO code: `AR`, `MX`, `ES`, `US`, `BR`, `CO`, `CL`…
- 💵 Pay per query · no key.

### Sample output (`trending`)

```json
{
  "ok": true, "geo": "AR", "count": 10,
  "trends": [
    { "rank": 1, "title": "granizo", "volume": "2000+", "volumeMin": 2000,
      "startedAt": "2026-10-15T14:30:00.000Z", "ageMinutes": 45, "isNew": true,
      "news": [ { "title": "Alerta por tormentas fuertes en Buenos Aires…", "url": "https://…", "source": "Meteored Argentina" } ] }
  ]
}
```

### Sample output (`match`)

```json
{
  "ok": true, "matched": 1, "total": 2,
  "notes": [
    { "id": "1", "title": "Tormentas y granizo: a qué hora llega al AMBA", "trending": true,
      "match": { "trend": "granizo", "rank": 1, "volume": "2000+", "matchedBy": "title", "score": 0.9 } },
    { "id": "2", "title": "Receta de milanesas al horno", "trending": false, "match": null }
  ]
}
```

### How to use

- **HTTP API (Standby):** `GET /trending?geo=AR&limit=10`, `POST /trending`, `POST /match`. `GET /` returns help.
- **Normal run:** pass `{ operation, geo, limit, notes }`; results land in the dataset and the key-value store.
- **MCP tool:** expose it to your agent through Apify's MCP server.

```bash
curl -X POST "https://synthetic-ia--trending-searches-api.apify.actor/match" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"geo":"AR","notes":[{"id":"1","title":"Tormentas y granizo en el AMBA"}]}'
```

### Typical newsroom workflow

1. Show the **top 10 trends** in a "Tendencias" tab so editors see what the audience is looking for.
2. Run **`match`** on the notes you already display and put a 🔥 icon on the ones that ride a trend.
3. Cover trends your outlet has not covered yet; reinforce the notes that already match.

### Input

- **operation** — `trending` or `match`.
- **geo** — ISO country code (default `AR`); a region like `US-CA` also works.
- **limit** — trending: how many to return (1–50, default 10). match: how many top trends to check against (default 25).
- **notes** — match: `[{ id?, title, url? }]`, up to 200.

### Pricing

**Per query** from **$0.01** (down to $0.004 on higher tiers). One `trending` or `match` call = one query.

### FAQ

**Is this page views?** No. Trends measure *search interest*, not the traffic of a specific article. A `match` tells you a note is aligned with what people are searching, not how many people read it. For real article metrics you need the outlet's own analytics.

**How accurate is the volume?** It is a bucket (`200+`, `2000+`, `20K+`), not an exact number.

**How fresh is it?** Trends are cached for 5 minutes per country.

**How does `match` decide?** By exact article URL among the news listed for a trend (score 1), by the trend phrase appearing as whole words in the title (0.9), or by the title sharing most of its key words with a headline listed for the trend (up to 0.8). Partial words never match.

### Notes & limits

Up to 200 articles per `match` call. The data comes from the public trending-searches feed; availability can vary by country.

### Legal & responsible use

Trend data comes from Google's public trending-searches feed and is subject to Google's terms. It measures **search interest, not page views** of any article; volumes are approximate ranges. Not affiliated with or endorsed by Google.

You are responsible for using this Actor and its output in line with the source's terms of use and applicable law (including copyright and data-protection rules). The Actor is provided as-is, without warranty, and is not affiliated with or endorsed by the data provider.

# Changelog

This Actor's version history is a separate document: https://apify.com/synthetic.ia/trending-searches-api/changelog.md

# Actor input Schema

## `operation` (type: `string`):

trending = top trending searches · match = flag which of your articles ride a trend.

## `geo` (type: `string`):

ISO country code, e.g. AR, MX, ES, US, BR. Optionally a region, e.g. US-CA.

## `limit` (type: `integer`):

trending: how many to return (1-50). match: how many top trends to check against (default 25).

## `notes` (type: `array`):

For operation=match: \[{ "id"?, "title", "url"? }, …] up to 200.

## Actor input object example

```json
{
  "operation": "trending",
  "geo": "AR",
  "limit": 10,
  "notes": [
    {
      "id": "1",
      "title": "Alerta por tormentas fuertes en Buenos Aires: a qué hora llega el granizo"
    },
    {
      "id": "2",
      "title": "Receta de milanesas al horno"
    }
  ]
}
```

# Actor output Schema

## `result` (type: `string`):

No description

## `runs` (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 = {
    "notes": [
        {
            "id": "1",
            "title": "Alerta por tormentas fuertes en Buenos Aires: a qué hora llega el granizo"
        },
        {
            "id": "2",
            "title": "Receta de milanesas al horno"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("synthetic.ia/trending-searches-api").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 = { "notes": [
        {
            "id": "1",
            "title": "Alerta por tormentas fuertes en Buenos Aires: a qué hora llega el granizo",
        },
        {
            "id": "2",
            "title": "Receta de milanesas al horno",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("synthetic.ia/trending-searches-api").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 '{
  "notes": [
    {
      "id": "1",
      "title": "Alerta por tormentas fuertes en Buenos Aires: a qué hora llega el granizo"
    },
    {
      "id": "2",
      "title": "Receta de milanesas al horno"
    }
  ]
}' |
apify call synthetic.ia/trending-searches-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,synthetic.ia/trending-searches-api"
        }
    }
}
```

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/4Z24PICzpubA8unDr/builds/aqS2J0kfDc02ysnL0/openapi.json
