# app.zeens.getPostsByTag

> Get Zeens photo posts carrying a hashtag, newest first or by popularity.

- 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.getPostsByTag)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getPostsByTag/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getPostsByTag/analytics)

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

Type: query · GET

### Parameters (query string)

- `color` (string): Optional dominant-colour filter.
- `cursor` (string): Pagination cursor.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `monochrome` (string): "true" to return only black-and-white photos.
  - Constraints: knownValues: true
- `sort` (string): Ordering: newest first (default) or most liked.
  - Constraints: knownValues: latest | popular
- `tag` (string, required): The hashtag, without the leading #.

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get Zeens photo posts carrying a hashtag, newest first or by popularity.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "color": {
            "description": "Optional dominant-colour filter.",
            "type": "string"
          },
          "cursor": {
            "description": "Pagination cursor.",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "monochrome": {
            "description": "\"true\" to return only black-and-white photos.",
            "knownValues": [
              "true"
            ],
            "type": "string"
          },
          "sort": {
            "description": "Ordering: newest first (default) or most liked.",
            "knownValues": [
              "latest",
              "popular"
            ],
            "type": "string"
          },
          "tag": {
            "description": "The hashtag, without the leading #.",
            "type": "string"
          }
        },
        "required": [
          "tag"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.postMeta",
      "type": "query"
    }
  },
  "id": "app.zeens.getPostsByTag",
  "lexicon": 1
}
```
