# app.didpic.feed.getTagFeed

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.getTagFeed)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.getTagFeed/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.getTagFeed/examples)

## Definitions

### `app.didpic.feed.getTagFeed`

**Type**: `query`

Chronological newest-first feed of posts using a specific hashtag. Applies the viewer's label / age-gate filters server-side.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes | Hashtag without the leading #. Lowercased server-side. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes |  |
| `feed` | `array` | Yes |  |
| `cursor` | `string` | No |  |
| `postCount` | `integer` | Yes | Total distinct records (posts + comments) using this tag. |

## Raw Schema

```json
{
  "id": "app.didpic.feed.getTagFeed",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "tag",
            "postCount",
            "feed"
          ],
          "properties": {
            "tag": {
              "type": "string"
            },
            "feed": {
              "type": "array",
              "items": {
                "ref": "app.didpic.feed.defs#postView",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string"
            },
            "postCount": {
              "type": "integer",
              "minimum": 0,
              "description": "Total distinct records (posts + comments) using this tag."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "type": "string",
            "maxLength": 640,
            "description": "Hashtag without the leading #. Lowercased server-side.",
            "maxGraphemes": 64
          },
          "limit": {
            "type": "integer",
            "default": 30,
            "maximum": 50,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "Chronological newest-first feed of posts using a specific hashtag. Applies the viewer's label / age-gate filters server-side."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
