# YouTube search trends for your topics

**Use case:** 

Track what people search on YouTube: interest over time and rising YouTube search queries for your topics.

## Input

```json
{
  "searchTerms": [
    "ai tools",
    "minecraft",
    "asmr"
  ],
  "isMultiple": false,
  "timeRange": "today 12-m",
  "customTimeRange": "2024-01-01 2024-12-31",
  "dailyData": false,
  "geo": "US",
  "category": "",
  "property": "youtube",
  "includeInterestOverTime": true,
  "includeInterestBySubregion": false,
  "includeInterestByCity": false,
  "includeInterestByMetro": false,
  "includeRelatedQueries": true,
  "includeRelatedTopics": false,
  "includeLowSearchVolumeRegions": false,
  "samples": 3,
  "outputFormat": "nested"
}
```

## Output

```json
{
  "term": {
    "label": "Term",
    "format": "string"
  },
  "geo": {
    "label": "Region",
    "format": "string"
  },
  "timeRange": {
    "label": "Time range",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "average": {
    "label": "Average",
    "format": "number"
  },
  "peakValue": {
    "label": "Peak",
    "format": "number"
  },
  "peakDate": {
    "label": "Peak date",
    "format": "string"
  },
  "changePercent": {
    "label": "Change %",
    "format": "number"
  },
  "direction": {
    "label": "Trend",
    "format": "string"
  },
  "seasonalPeakMonth": {
    "label": "Seasonal peak month",
    "format": "string"
  },
  "samplesUsed": {
    "label": "Samples used",
    "format": "integer"
  },
  "samplingSpread": {
    "label": "Sampling spread",
    "format": "number"
  },
  "relatedQueriesNoiseShare": {
    "label": "Filler share",
    "format": "number"
  },
  "relatedTopicsStatus": {
    "label": "Related topics status",
    "format": "string"
  },
  "billedResults": {
    "label": "Billed results",
    "format": "integer"
  },
  "summaryText": {
    "label": "Summary",
    "format": "string"
  },
  "byTerm": {
    "label": "Per-term data",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Trends API & Scraper — pytrends alternative](https://apify.com/insanedev/google-trends-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/insanedev/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/insanedev/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`).
