# town.delve.unspecced.getTrendingTopics

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.unspecced.getTrendingTopics)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.unspecced.getTrendingTopics/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.unspecced.getTrendingTopics/examples)

## Definitions

### `town.delve.unspecced.getTrendingTopics`

**Type**: `query`

Get a list of trending topics

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `viewer` | `string` (did) | No | DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `suggested` | `array` | Yes |  |
| `topics` | `array` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a list of trending topics",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "suggested": {
              "items": {
                "ref": "town.delve.unspecced.defs#trendingTopic",
                "type": "ref"
              },
              "type": "array"
            },
            "topics": {
              "items": {
                "ref": "town.delve.unspecced.defs#trendingTopic",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "topics",
            "suggested"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 10,
            "maximum": 25,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "town.delve.unspecced.getTrendingTopics",
  "lexicon": 1
}
```
