# com.suibari.nagi.searchTags

> Published by [suibari.com](https://lexicon.garden/identity/did:plc:uixgxpiqf4i63p6rgpu7ytmx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.searchTags)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.searchTags/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.searchTags/examples)

## Definitions

### `com.suibari.nagi.searchTags`

**Type**: `query`

投稿欄の #タグ 入力候補。共有タイムラインに出る投稿のハッシュタグを前方一致で、投稿数の多い順に返す。集計は数分キャッシュされる。

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `q` | `string` | Yes | 入力中のタグ。先頭の # / ＃ と大文字小文字は無視する。 |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tags` | `array` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "投稿欄の #タグ 入力候補。共有タイムラインに出る投稿のハッシュタグを前方一致で、投稿数の多い順に返す。集計は数分キャッシュされる。",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "tags": {
              "items": {
                "properties": {
                  "count": {
                    "description": "そのタグを持つ投稿数。",
                    "minimum": 1,
                    "type": "integer"
                  },
                  "tag": {
                    "description": "正規形（# を除いた小文字）。",
                    "type": "string"
                  }
                },
                "required": [
                  "tag",
                  "count"
                ],
                "type": "object"
              },
              "maxLength": 20,
              "type": "array"
            }
          },
          "required": [
            "tags"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 10,
            "maximum": 20,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "入力中のタグ。先頭の # / ＃ と大文字小文字は無視する。",
            "maxLength": 640,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.suibari.nagi.searchTags",
  "lexicon": 1
}
```
