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

const api = new ParagraphAPI()
const post = await api.getPost({ 
  publicationSlug: "blog",
  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

publicationSlug
string
required

URL-friendly identifier of the publication, e.g. 'blog'

Required string length: 1 - 256
postSlug
string
required

URL-friendly identifier of the post, e.g. 'my-first-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