# Twitter Trends By Location (`monumental_world/twitter-trends-by-location`) Actor

Get Twitter trends by location.

- **URL**: https://apify.com/monumental_world/twitter-trends-by-location.md
- **Developed by:** [Raised Pro](https://apify.com/monumental_world) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 9 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Twitter (X.com) Trends By Location Export to Excel (Cookieless)

### Need to download Twitter (X.com) trend data to Excel?

This tool helps you extract location-specific trending topics and search volumes from Twitter (X.com) without any login or cookies required. Designed specifically for trend analysts, marketing agencies, and business owners who need to track what's trending in different locations to inform their content and marketing strategies.

### Step-by-Step Guide

**Step 1:** Select your target country from the dropdown menu (e.g., ""India"", ""United States"", ""United Kingdom"").

**Step 2:** Click the ""Start"" button. No Twitter account or login required—the tool works completely cookieless!

**Step 3:** Wait a few moments while the tool gathers trending data for your selected location.

**Step 4:** Download your results as Excel (.xlsx), CSV, or XML format. Open it directly in Microsoft Excel, Google Sheets, or any spreadsheet application.

### What columns will I get?

Your download will include the following columns:

- **Location City** - The specific city where the trend is popular
- **Location Country** - The country for the trending data
- **Trend Keyword** - The actual trending topic or hashtag
- **Search Volume** - Total number of searches for this trend
- **Growth Percentage** - How much the trend has grown recently
- **Competition Score** - How competitive this keyword is (0-1 scale)
- **Average CPC** - Average cost-per-click if you advertise on this keyword
- **Mobile Search Share** - Percentage of searches from mobile devices
- **Desktop Search Share** - Percentage of searches from desktop computers
- **Peak Month** - When this trend reached its highest point
- **Year Over Year Change** - How the trend compares to last year
- **Related Queries Count** - Number of related search terms

### How to use this data

**1. Develop Targeted Marketing Campaigns:** Identify trending topics in specific locations to create hyper-relevant ad campaigns and social media content that resonates with local audiences.

**2. Plan Content Calendars:** Use search volume and growth percentage data to prioritize which topics to cover in your blog posts, videos, and social media updates for maximum engagement.

**3. Competitive Analysis Reports:** Export trend data to Excel, filter by competition score and CPC, then share insights with clients or stakeholders to demonstrate market opportunities and content gaps.

### Input Settings

**Country:** Simply enter the name of the country you want to analyze (e.g., ""India"", ""Canada"", ""Australia""). The tool will gather trending topics specific to that geographic location, helping you understand what's popular in different markets.

### Frequently Asked Questions

**Q: Do I need a Twitter (X.com) account?**\
A: No! This tool works completely cookieless and doesn't require any login or authentication.

**Q: Can I open this in Google Sheets?**\
A: Yes, absolutely! Just upload the CSV file to Google Sheets or import the Excel file directly.

**Q: How often is the trend data updated?**\
A: The tool pulls current trending data each time you run it, so you're always getting fresh, up-to-date information.

**Q: Can I track trends for multiple countries?**\
A: Yes! Simply run the tool multiple times with different country inputs, and you'll get separate Excel files for each location.

**Q: What if I need data for a specific city?**\
A: The tool automatically includes city-level data in the results when available, so you'll see both country and city information in your spreadsheet.

***

This web scraper and data extractor tool makes it easy to export data from websites like Twitter (X.com). Perfect as a social media scraper for lead generation scraper needs, website scraper projects, and ecommerce product scraper workflows."

# Actor input Schema

## `country` (type: `string`):

Country

## Actor input object example

```json
{
  "country": "UnitedStates"
}
```

# 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 = {
    "country": "UnitedStates"
};

// Run the Actor and wait for it to finish
const run = await client.actor("monumental_world/twitter-trends-by-location").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 = { "country": "UnitedStates" }

# Run the Actor and wait for it to finish
run = client.actor("monumental_world/twitter-trends-by-location").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 '{
  "country": "UnitedStates"
}' |
apify call monumental_world/twitter-trends-by-location --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,monumental_world/twitter-trends-by-location"
        }
    }
}
```

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/Gbeew8IdrkQ9fWxRA/builds/fHxLZnp6UKFqAWUui/openapi.json
