# pub.chive.endorsement.getSummary

> 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.endorsement.getSummary)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.endorsement.getSummary/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.endorsement.getSummary/examples)

## Definitions

### `pub.chive.endorsement.getSummary`

**Type**: `query`

Get endorsement summary (counts by contribution type) for an eprint

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `eprintUri` | `string` (at-uri) | Yes | AT-URI of the eprint |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes | Total endorsement count |
| `byType` | `ref` → `#endorsementCountByType` | Yes | Count by contribution type |
| `endorserCount` | `integer` | Yes | Unique endorser count |

### `pub.chive.endorsement.getSummary#endorsementCountByType`

**Type**: `object`

Map of contribution type slug to endorsement count

| Property | Type | Required | Description |
|----------|------|----------|-------------|

## Raw Schema

```json
{
  "id": "pub.chive.endorsement.getSummary",
  "defs": {
    "main": {
      "type": "query",
      "errors": [],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "total",
            "endorserCount",
            "byType"
          ],
          "properties": {
            "total": {
              "type": "integer",
              "minimum": 0,
              "description": "Total endorsement count"
            },
            "byType": {
              "ref": "#endorsementCountByType",
              "type": "ref",
              "description": "Count by contribution type"
            },
            "endorserCount": {
              "type": "integer",
              "minimum": 0,
              "description": "Unique endorser count"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "eprintUri"
        ],
        "properties": {
          "eprintUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the eprint"
          }
        }
      },
      "description": "Get endorsement summary (counts by contribution type) for an eprint"
    },
    "endorsementCountByType": {
      "type": "object",
      "properties": {},
      "description": "Map of contribution type slug to endorsement count"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
