# pub.chive.tag.getDetail

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.tag.getDetail)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.tag.getDetail/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.tag.getDetail/examples)

## Definitions

### `pub.chive.tag.getDetail`

**Type**: `query`

Get detailed information for a specific tag

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes | Normalized tag form to look up |

#### Output

**Encoding**: `application/json`

#### Errors

- **TagNotFound**

### `pub.chive.tag.getDetail#tagSummary`

**Type**: `object`

Summary information for a tag

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `isPromoted` | `boolean` | Yes | Whether the tag has been promoted to a facet or authority |
| `promotedTo` | `ref` → `#promotionTarget` | No | Promotion target if promoted |
| `usageCount` | `integer` | Yes | Number of eprints tagged with this tag |
| `displayForms` | `array` | Yes | All display forms used for this tag |
| `qualityScore` | `integer` | Yes | Tag quality score (0-100, scaled from 0-1) |
| `normalizedForm` | `string` | Yes | Normalized tag form (lowercase, hyphenated) |

### `pub.chive.tag.getDetail#promotionTarget`

**Type**: `object`

Target of tag promotion

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` | Yes | URI of the promotion target |
| `type` | `string` | Yes | Type of promotion target |

## Raw Schema

```json
{
  "id": "pub.chive.tag.getDetail",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "TagNotFound"
        }
      ],
      "output": {
        "schema": {
          "ref": "#tagSummary",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "type": "string",
            "description": "Normalized tag form to look up"
          }
        }
      },
      "description": "Get detailed information for a specific tag"
    },
    "tagSummary": {
      "type": "object",
      "required": [
        "normalizedForm",
        "displayForms",
        "usageCount",
        "qualityScore",
        "isPromoted"
      ],
      "properties": {
        "isPromoted": {
          "type": "boolean",
          "description": "Whether the tag has been promoted to a facet or authority"
        },
        "promotedTo": {
          "ref": "#promotionTarget",
          "type": "ref",
          "description": "Promotion target if promoted"
        },
        "usageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of eprints tagged with this tag"
        },
        "displayForms": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "All display forms used for this tag"
        },
        "qualityScore": {
          "type": "integer",
          "maximum": 100,
          "minimum": 0,
          "description": "Tag quality score (0-100, scaled from 0-1)"
        },
        "normalizedForm": {
          "type": "string",
          "description": "Normalized tag form (lowercase, hyphenated)"
        }
      },
      "description": "Summary information for a tag"
    },
    "promotionTarget": {
      "type": "object",
      "required": [
        "type",
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "description": "URI of the promotion target"
        },
        "type": {
          "type": "string",
          "description": "Type of promotion target",
          "knownValues": [
            "facet",
            "authority"
          ]
        }
      },
      "description": "Target of tag promotion"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
