# app.didpic.feed.getPostPublic

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.getPostPublic)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.getPostPublic/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.getPostPublic/examples)

## Definitions

### `app.didpic.feed.getPostPublic`

**Type**: `query`

Unauthenticated post view for public web landings. Omits viewer-relative fields and the comment thread.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No |  |
| `cid` | `string` (cid) | Yes |  |
| `pds` | `string` (uri) | No | Author's PDS endpoint. Use to construct the post's image blob URL. |
| `uri` | `string` (at-uri) | Yes |  |
| `text` | `string` | No |  |
| `author` | `ref` → `app.didpic.actor.defs#profileBasic` | Yes |  |
| `labels` | `array` | No |  |
| `editedAt` | `string` (datetime) | No | Set when the post has been edited at least once. Absent for never-edited posts. |
| `imageCid` | `string` (cid) | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |
| `likeCount` | `integer` | Yes |  |
| `aspectRatio` | `object` | No |  |
| `commentCount` | `integer` | Yes |  |

#### Errors

- **PostNotFound**

## Raw Schema

```json
{
  "id": "app.didpic.feed.getPostPublic",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "PostNotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid",
            "author",
            "imageCid",
            "likeCount",
            "commentCount",
            "createdAt",
            "indexedAt"
          ],
          "properties": {
            "alt": {
              "type": "string"
            },
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "pds": {
              "type": "string",
              "format": "uri",
              "description": "Author's PDS endpoint. Use to construct the post's image blob URL."
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            },
            "text": {
              "type": "string"
            },
            "author": {
              "ref": "app.didpic.actor.defs#profileBasic",
              "type": "ref"
            },
            "labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "editedAt": {
              "type": "string",
              "format": "datetime",
              "description": "Set when the post has been edited at least once. Absent for never-edited posts."
            },
            "imageCid": {
              "type": "string",
              "format": "cid"
            },
            "createdAt": {
              "type": "string",
              "format": "datetime"
            },
            "indexedAt": {
              "type": "string",
              "format": "datetime"
            },
            "likeCount": {
              "type": "integer",
              "minimum": 0
            },
            "aspectRatio": {
              "type": "object",
              "properties": {
                "width": {
                  "type": "integer",
                  "minimum": 1
                },
                "height": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "commentCount": {
              "type": "integer",
              "minimum": 0
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri"
          }
        }
      },
      "description": "Unauthenticated post view for public web landings. Omits viewer-relative fields and the comment thread."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
