GET
/
v1
/
posts
/
{postId}
Get post by ID
import { ParagraphAPI } from "@paragraph_xyz/sdk"

const api = new ParagraphAPI()
const post = await api.getPost({ id: "3T2PQZlsdQtigUp4fhlb" })
{
  "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>"
}

Path Parameters

postId
string
required

Unique identifier of the post

Query Parameters

includeContent
boolean | null

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

Response

Post details retrieved successfully