# pub.chive.backlink.getCounts

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

## Definitions

### `pub.chive.backlink.getCounts`

**Type**: `query`

Get aggregated backlink counts for an eprint

#### Parameters

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

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `other` | `integer` | Yes | Count of other backlinks |
| `total` | `integer` | Yes | Total count of all backlinks |
| `blueskyPosts` | `integer` | Yes | Count of Bluesky post backlinks |
| `leafletLists` | `integer` | Yes | Count of Leaflet list backlinks |
| `blueskyEmbeds` | `integer` | Yes | Count of Bluesky embed backlinks |
| `whitewindBlogs` | `integer` | Yes | Count of Whitewind blog backlinks |
| `cosmikCollections` | `integer` | Yes | Count of Cosmik collection backlinks |

#### Errors

- **NotFound**

## Raw Schema

```json
{
  "id": "pub.chive.backlink.getCounts",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "cosmikCollections",
            "leafletLists",
            "whitewindBlogs",
            "blueskyPosts",
            "blueskyEmbeds",
            "other",
            "total"
          ],
          "properties": {
            "other": {
              "type": "integer",
              "description": "Count of other backlinks"
            },
            "total": {
              "type": "integer",
              "description": "Total count of all backlinks"
            },
            "blueskyPosts": {
              "type": "integer",
              "description": "Count of Bluesky post backlinks"
            },
            "leafletLists": {
              "type": "integer",
              "description": "Count of Leaflet list backlinks"
            },
            "blueskyEmbeds": {
              "type": "integer",
              "description": "Count of Bluesky embed backlinks"
            },
            "whitewindBlogs": {
              "type": "integer",
              "description": "Count of Whitewind blog backlinks"
            },
            "cosmikCollections": {
              "type": "integer",
              "description": "Count of Cosmik collection backlinks"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "targetUri"
        ],
        "properties": {
          "targetUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the target eprint"
          }
        }
      },
      "description": "Get aggregated backlink counts for an eprint"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
