# com.bsky38.influential.getTopPosts

> Published by [bsky38.com](https://lexicon.garden/identity/did:web:bsky38.com)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:bsky38.com/com.bsky38.influential.getTopPosts)
- [Documentation](https://lexicon.garden/lexicon/did:web:bsky38.com/com.bsky38.influential.getTopPosts/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:bsky38.com/com.bsky38.influential.getTopPosts/examples)

## Definitions

### `com.bsky38.influential.getTopPosts`

**Type**: `query`

A nominee's most-liked top-level Bluesky posts of the year, counted once when they joined the pool.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `limit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `countedAt` | `string` (datetime) | No | When the counts were taken; only with status done. |
| `did` | `string` (did) | Yes |  |
| `posts` | `array` | Yes |  |
| `since` | `string` (datetime) | Yes | Start of the window posts are drawn from (inclusive). |
| `status` | `string` | Yes | disabled: the feature is off. pending: no pull has finished yet (queued, retrying, or not in the pool). done: posts are final. unavailable: the repo could not be read. too_large: the export passed the size cap. |
| `until` | `string` (datetime) | Yes | End of the window (exclusive). |

### `com.bsky38.influential.getTopPosts#topPost`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `createdAt` | `string` (datetime) | Yes | Decoded from the record key's TID, not the record's own createdAt. |
| `likeCount` | `integer` | Yes |  |
| `quoteCount` | `integer` | Yes |  |
| `replyCount` | `integer` | Yes |  |
| `repostCount` | `integer` | Yes |  |
| `text` | `string` | No | The post text as stored in the repo; omitted when empty. |
| `uri` | `string` (at-uri) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A nominee's most-liked top-level Bluesky posts of the year, counted once when they joined the pool.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "countedAt": {
              "description": "When the counts were taken; only with status done.",
              "format": "datetime",
              "type": "string"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "posts": {
              "items": {
                "ref": "#topPost",
                "type": "ref"
              },
              "type": "array"
            },
            "since": {
              "description": "Start of the window posts are drawn from (inclusive).",
              "format": "datetime",
              "type": "string"
            },
            "status": {
              "description": "disabled: the feature is off. pending: no pull has finished yet (queued, retrying, or not in the pool). done: posts are final. unavailable: the repo could not be read. too_large: the export passed the size cap.",
              "knownValues": [
                "disabled",
                "pending",
                "done",
                "unavailable",
                "too_large"
              ],
              "type": "string"
            },
            "until": {
              "description": "End of the window (exclusive).",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "did",
            "since",
            "until",
            "status",
            "posts"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          },
          "limit": {
            "default": 5,
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "topPost": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "description": "Decoded from the record key's TID, not the record's own createdAt.",
          "format": "datetime",
          "type": "string"
        },
        "likeCount": {
          "type": "integer"
        },
        "quoteCount": {
          "type": "integer"
        },
        "replyCount": {
          "type": "integer"
        },
        "repostCount": {
          "type": "integer"
        },
        "text": {
          "description": "The post text as stored in the repo; omitted when empty.",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "createdAt",
        "likeCount",
        "repostCount",
        "quoteCount",
        "replyCount"
      ],
      "type": "object"
    }
  },
  "id": "com.bsky38.influential.getTopPosts",
  "lexicon": 1
}
```
