GET
/
v1
/
publications
/
{publicationId}
/
posts
/
slug
/
{postSlug}
Get post by publication ID and slug
import { ParagraphAPI } from "@paragraph_xyz/sdk"

const api = new ParagraphAPI()
const post = await api.getPost({ 
  publicationId: "BMV6abfvCSUl51ErCVzd", 
  postSlug: "my-first-post" 
})
{
  "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

publicationId
string
required

Unique identifier of the publication

postSlug
string
required

URL-friendly identifier of the post

Required string length: 1 - 256

Query Parameters

includeContent
boolean | null

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

Response

Post details retrieved successfully