# Google Trends by City & US Metro Area (DMA)

**Use case:** 

Get Google Trends interest by US metro area (all 210 DMAs) and by city for thousands of keywords. See which cities search most for your product or service, then use it for local SEO, ad targeting and picking store or service locations. Narrow it to one state with a code such as US-CA. Both breakdowns, $1.00 per 1,000 keywords; misses are free.

## Input

```json
{
  "keywords": [
    "solar panels",
    "pickleball",
    "coffee"
  ],
  "preset": "custom",
  "components": [
    "interestByRegion"
  ],
  "regionResolutions": [
    "DMA",
    "CITY"
  ],
  "geo": "US",
  "timeRange": "today 12-m",
  "property": "web",
  "category": 0,
  "outputFormat": "perKeyword",
  "language": "en-US",
  "maxTopicsWaitMinutes": 15
}
```

## Output

```json
{
  "keyword": {
    "label": "Keyword",
    "format": "text"
  },
  "location": {
    "label": "Location",
    "format": "text"
  },
  "timeRangeLabel": {
    "label": "Time range",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "statusMessage": {
    "label": "Result",
    "format": "text"
  },
  "interestOverTime": {
    "label": "Interest over time (every point)",
    "format": "array"
  },
  "interestByRegion": {
    "label": "Interest by region (every region)",
    "format": "array"
  },
  "interestByMetro": {
    "label": "Interest by metro area",
    "format": "array"
  },
  "interestByCity": {
    "label": "Interest by city",
    "format": "array"
  },
  "relatedQueries": {
    "label": "Related queries (top and rising)",
    "format": "object"
  },
  "relatedTopics": {
    "label": "Related topics (top and rising)",
    "format": "object"
  },
  "googleTrendsUrl": {
    "label": "Open in Google Trends",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Trends API & Scraper: Regions, Related Queries & Topics Actor is ready to run with the inputs already set for "Google Trends by City & US Metro Area (DMA)". [Sign up or log in](https://console.apify.com/create-task-from-example/DKFZk74Vg6WKGZzxq) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Google Trends by City & US Metro Area (DMA)" task

The Google Trends API & Scraper: Regions, Related Queries & Topics Actor will start running based on the input automatically. You can also change all the input fields, like keywords, what to get, and more, to match your specific use case.

### 3. Receive the "Google Trends by City & US Metro Area (DMA)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as keyword, location, time range, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Google Trends by City & US Metro Area (DMA)" task via API](https://apify.com/clean-fetch/google-trends-scraper.md).

## FAQ

### What is a DMA in Google Trends?

A DMA (Designated Market Area) is one of 210 US media markets, such as New York or Los Angeles. The Google Trends by City & Metro Area task returns interest for each DMA.

### Can I get the cities in one state only?

Set Location to a state code such as US-CA or US-TX, and the Google Trends by City & Metro Area task returns metro areas and cities within that state only.

### Are the city values search volumes?

Google Trends city values run from 0 to 100, where 100 is the place with the highest share of searches for that keyword. The Google Trends by City & Metro Area task compares places, not absolute volume.

### How much does city and metro data cost?

The Google Trends by City & Metro Area task costs $0.50 per 1,000 keywords for each breakdown, so $1.00 for metros and cities together. Keywords without data are free.

## About this Actor

This example demonstrates how to use [Google Trends API & Scraper: Regions, Related Queries & Topics](https://apify.com/clean-fetch/google-trends-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/clean-fetch/google-trends-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/clean-fetch/google-trends-scraper.md

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`).
