# List trending searches

Return Google Trending Now searches by country and time window, with categories, related queries and an optional category filter.

- Platform: [Google Trends](https://docs.upscrape.com/docs/platforms/google_trends)
- Capability ID: `google_trends.trending.list`
- Cost: 1 credit per request
- Maximum runtime: 60 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "country": "US",
    "hours": 24,
    "limit": 25,
    "sort": "started_at"
  },
  "capability": "google_trends.trending.list"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category_id` | `integer` | No | Trending Now category ID; 0 includes all. Filters the complete fetched window before sorting and limiting. This is not an Explore category ID. Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`. Default: `0`. |
| `country` | `string` | Yes | Assigned ISO 3166-1 alpha-2 country code, case-insensitive (for example US or IN); XK is accepted for Kosovo. Availability depends on Trending Now. |
| `hours` | `integer` | No | Allowed values: `4`, `24`, `48`, `168`. Default: `24`. |
| `include_ended` | `boolean` | No | Default: `false`. |
| `limit` | `integer` | No | Maximum number of results to return. From 1 to 500. Default: `100`. |
| `sort` | `string` | No | Sort order for returned results. Allowed values: `relevance`, `title`, `volume`, `started_at`. Default: `relevance`. |

### Example input

```json
{
  "country": "US",
  "hours": 24,
  "limit": 25,
  "sort": "started_at"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "country": "US",
  "execution": {
    "country_verified": true
  },
  "hours": 24,
  "trends": [
    {
      "active": true,
      "growth_percent": 50,
      "id": "mlb playoff picture|2026-09-19T03:40:00Z",
      "related_queries": [
        "mlb playoff picture",
        "mlb wildcard standings",
        "al wild card standings"
      ],
      "search_volume": 1000,
      "started_at": "2026-09-19T03:40:00Z",
      "title": "mlb playoff picture"
    },
    {
      "active": true,
      "growth_percent": 100,
      "id": "swimming|2026-09-19T03:30:00Z",
      "related_queries": [
        "swimming"
      ],
      "search_volume": 200,
      "started_at": "2026-09-19T03:30:00Z",
      "title": "swimming"
    }
  ]
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `country` | `string` | US |
| `execution` | `object` | 1 fields |
| `execution.country_verified` | `boolean` | true |
| `hours` | `integer` | 24 |
| `trends` | `array` | 2 items |
| `trends` | `array` | 2 items |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
