GET
/
v1
/
publications
/
{publicationId}
/
posts
List posts with pagination
import { ParagraphAPI } from "@paragraph_xyz/sdk"

const api = new ParagraphAPI()
const posts = await api.getPosts("BMV6abfvCSUl51ErCVzd", {
  limit: 20,
  cursor: "next-cursor"
})
{
  "items": [
    {
      "id": "<string>",
      "title": "<string>",
      "imageUrl": "<string>",
      "publishedAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "subtitle": "<string>",
      "slug": "<string>",
      "staticHtml": "<string>",
      "json": "<string>",
      "markdown": "<string>",
      "coinId": "<string>"
    }
  ],
  "pagination": {
    "cursor": "<string>",
    "hasMore": true,
    "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