Skip to main content
GET
/
v1
/
publications
/
{publicationId}
/
posts
List posts with pagination
import { ParagraphAPI } from "@paragraph-com/sdk"

const api = new ParagraphAPI()
const { items: posts, pagination } = await api.posts.get({ publicationId: "BMV6abfvCSUl51ErCVzd" })
{
  "items": [
    {
      "id": "<string>",
      "title": "<string>",
      "slug": "<string>",
      "imageUrl": "<string>",
      "publishedAt": "<string>",
      "updatedAt": "<string>",
      "subtitle": "<string>",
      "staticHtml": "<string>",
      "json": "<string>",
      "markdown": "<string>",
      "coinId": "<string>"
    }
  ],
  "pagination": {
    "hasMore": true,
    "cursor": "<string>",
    "total": 123
  }
}

Path Parameters

publicationId
string
required

Unique identifier of the publication

Query Parameters

cursor
string

Cursor for pagination

limit
integer
default:10

Maximum number of items to return (1-100, default: 10)

Required range: 1 <= x <= 100
includeContent
boolean | null

Include full content fields (markdown, json, staticHtml). Default: false

Response

Posts retrieved successfully

items
object[]
required

Array of items in this page

pagination
object
required