curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/posts/{id}{
"data": {
"id": "1",
"type": "post",
"attributes": {
"title": "Hello World",
"slug": "hello-world",
"published_at": "2025-08-11T21:03:00.000Z",
"meta_title": "",
"meta_description": "",
"created_at": "2025-08-11T21:03:00.128Z",
"updated_at": "2025-08-27T10:09:23.007Z",
"excerpt": null,
"content": "This is a test post",
"content_html": "<div class=\"trix-content\">\\n <div>This is a test post</div>\\n</div>\\n",
"description": "This is a test post",
"shortened_description": "This is a test post",
"author_name": "Spree Admin",
"post_category_title": "News",
"tags": [],
"image_url": null
},
"relationships": {
"post_category": {
"data": {
"id": "3",
"type": "post_category"
}
}
}
}
}Returns the details of a specified Post. You can use either the post slug or ID. This endpoint is only available in Spree 5.2 or later.
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/posts/{id}{
"data": {
"id": "1",
"type": "post",
"attributes": {
"title": "Hello World",
"slug": "hello-world",
"published_at": "2025-08-11T21:03:00.000Z",
"meta_title": "",
"meta_description": "",
"created_at": "2025-08-11T21:03:00.128Z",
"updated_at": "2025-08-27T10:09:23.007Z",
"excerpt": null,
"content": "This is a test post",
"content_html": "<div class=\"trix-content\">\\n <div>This is a test post</div>\\n</div>\\n",
"description": "This is a test post",
"shortened_description": "This is a test post",
"author_name": "Spree Admin",
"post_category_title": "News",
"tags": [],
"image_url": null
},
"relationships": {
"post_category": {
"data": {
"id": "3",
"type": "post_category"
}
}
}
}
}Post slug or ID
Include related resources (available: post_category)
Success
Post represents a blog post or news article that can be displayed on the storefront.
Show child attributes
"1"
Show child attributes
Title of the post
"Hello World"
URL-friendly identifier for the post
"hello-world"
Date and time when the post was published
"2025-08-11T21:03:00.000Z"
SEO meta title
""
SEO meta description
""
"2020-02-16T07:14:54.617Z"
"2020-02-16T07:14:54.617Z"
Short excerpt of the post content
null
Plain text content of the post
"This is a test post"
HTML formatted content of the post
"<div class=\"trix-content\">\n <div>This is a test post</div>\n</div>\n"
Description of the post
"This is a test post"
Shortened description of the post
"This is a test post"
Name of the post author
"Spree Admin"
Title of the associated post category
"News"
List of tags associated with the post
[]URL of the post's featured image
null
Was this page helpful?