# app.bivri.feed.getTagArtworks

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

✓ This is the authoritative definition for this NSID.

## Description

Get artworks carrying a tag, paginated by cursor.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.getTagArtworks)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.getTagArtworks/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.getTagArtworks/examples)

## Definitions

### `app.bivri.feed.getTagArtworks`

**Type**: `query`

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes | Tag to list artworks for. |
| `sort` | `string` | No | Ordering of the returned artworks. 'latest' is reverse-chronological; 'popular' is by like count. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No | Opaque pagination cursor. Pass it back unchanged on the next request. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `artworks` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "app.bivri.feed.getTagArtworks",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "artworks"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "artworks": {
              "type": "array",
              "items": {
                "ref": "app.bivri.feed.defs#artworkView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "type": "string",
            "description": "Tag to list artworks for."
          },
          "sort": {
            "type": "string",
            "default": "latest",
            "description": "Ordering of the returned artworks. 'latest' is reverse-chronological; 'popular' is by like count.",
            "knownValues": [
              "latest",
              "popular"
            ]
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "description": "Opaque pagination cursor. Pass it back unchanged on the next request."
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Get artworks carrying a tag, paginated by cursor."
}
```
