# app.zeens.getTrending

> Get trending Zeens photos ranked by engagement within a time window.

- Kind: query
- Authority: zeens.app
- Lexicon: 1
- Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getTrending)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getTrending/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getTrending/analytics)

## Query (`app.zeens.getTrending`)

Type: query · GET

### Parameters (query string)

- `category` (string): Optional category filter.
- `cursor` (string): Pagination cursor.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `window` (string): Time window: 24h, 7d, 30d.
  - Constraints: default: "24h", knownValues: 24h | 7d | 30d

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get trending Zeens photos ranked by engagement within a time window.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "category": {
            "description": "Optional category filter.",
            "type": "string"
          },
          "cursor": {
            "description": "Pagination cursor.",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "window": {
            "default": "24h",
            "description": "Time window: 24h, 7d, 30d.",
            "knownValues": [
              "24h",
              "7d",
              "30d"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "target_collection": "app.zeens.postMeta",
      "type": "query"
    }
  },
  "id": "app.zeens.getTrending",
  "lexicon": 1
}
```
