> For the complete documentation index, see [llms.txt](https://help.blotato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blotato.com/rest-api-reference/publish-post/list-published-posts.md).

# List Published Posts

Retrieve published post records and distinguish published-post IDs from submission and schedule IDs.

List your published posts, filtered by text and platform, with each post's latest analytics snapshot attached. Use this to find a published post and its `id`, or to browse recent posts with their current metrics.

For engagement rankings and full metric history, see [Analytics](/rest-api-reference/analytics.md).

## Endpoint

**Base URL:** `https://backend.blotato.com/v2`

**URL:** `/published-posts`

**Method:** `GET`

## Description

Returns your published posts, newest or oldest first, filtered by an optional full-text query and platform. Each item carries its latest metrics snapshot. Results use offset-based pagination with a total `count`.

## Query Parameters

| Field      | Type      | Required | Description                                                    |
| ---------- | --------- | -------- | -------------------------------------------------------------- |
| `query`    | `string`  | No       | Full-text search over post content. Omit to include all posts. |
| `platform` | `string`  | No       | Filter to one platform. Omit to include all platforms.         |
| `sortBy`   | `string`  | No       | Sort order: `newest` or `oldest`. Default `newest`.            |
| `offset`   | `integer` | No       | Number of posts to skip before the page. Default 0.            |
| `limit`    | `integer` | No       | Number of posts to return. Min: 1, Max: 100. Default: 20.      |

## Response

**Status Code:** `200 OK`

```json
{
  "items": [
    {
      "id": "98431",
      "content": "Check out this image!",
      "postUrl": "https://instagram.com/p/abc123",
      "platform": "instagram",
      "createdAt": "2026-05-30T09:15:00.000Z",
      "mediaUrls": ["https://example.com/image1.jpg"],
      "latestMetrics": {
        "fetchedAt": "2026-06-11T12:00:00.000Z",
        "metrics": { "likesCount": "1240", "reachCount": "53000" }
      },
      "metricsHistory": []
    }
  ],
  "count": 137
}
```

| Field                    | Type             | Description                                                                                                                              |
| ------------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `items`                  | `array`          | Published posts for this page.                                                                                                           |
| `items[].id`             | `string`         | The published post id. Pass it to [Get Post Analytics](/rest-api-reference/analytics.md#get-post-analytics) for full metric history.     |
| `items[].content`        | `string`         | The post text.                                                                                                                           |
| `items[].postUrl`        | `string or null` | Live URL of the published post. Null if the platform did not return one.                                                                 |
| `items[].platform`       | `string`         | Social media platform.                                                                                                                   |
| `items[].createdAt`      | `string`         | ISO 8601 timestamp when the post was published.                                                                                          |
| `items[].mediaUrls`      | `string[]`       | URLs of attached media. Empty when text-only.                                                                                            |
| `items[].latestMetrics`  | `object`         | The most recent metrics snapshot. Absent if no metrics have been collected yet. See [Metrics](/rest-api-reference/analytics.md#metrics). |
| `items[].metricsHistory` | `array`          | Collected snapshots, oldest first. Each is `{ fetchedAt, metrics }`.                                                                     |
| `count`                  | `integer`        | Total number of posts matching your search, across all pages.                                                                            |

To page through results, increase `offset` by `limit` on each call until `offset` reaches `count`.

## Errors

| Status | Reason                                        |
| ------ | --------------------------------------------- |
| `422`  | Invalid `sortBy`, `offset`, or `limit` value. |

## Example

```http
GET https://backend.blotato.com/v2/published-posts?query=summer&platform=instagram&limit=20 HTTP/1.1
blotato-api-key: YOUR_API_KEY
```

## Get a Published Post

**URL:** `/published-posts/:id`

**Method:** `GET`

Returns 1 published post by its Blotato published-post ID.

```json
{
  "publishedPost": {
    "id": "98431",
    "platform": "instagram",
    "content": "Check out this image!",
    "mediaUrls": ["https://example.com/image1.jpg"],
    "postUrl": "https://instagram.com/p/abc123",
    "createdAt": "2026-05-30T09:15:00.000Z",
    "rawPost": null
  }
}
```

`rawPost` contains the original publish payload for posts published through Blotato and is null for other posts. The endpoint returns `404` when the ID does not exist or does not belong to the authenticated user.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.blotato.com/rest-api-reference/publish-post/list-published-posts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
