GET

Get Post


Gets a post by the specified ID.

Permissions
Manage Blog
Read Blog
Read Draft Blog Posts
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/blog/v3/posts/{postId}

Path Params
postIdstringRequired

Post ID.

Query Params
fieldsToIncludeArray <string>deprecated - use fieldsets instead

Deprecated. Use fieldsets instead. This parameter will be removed on June 30, 2023.

List of post fields to be included in the response.


fieldsetsArray <string>

List of additional post fields to include in the response. For example, use the URL fieldset to retrieve the url field in the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default only the post’s base fields are returned.

Response Object
postPost

Post info.

Request
cURL
curl \ 'https://www.wixapis.com/blog/v3/posts/894a58a2-dc75-422d-9ca6-00a489750dfd' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "post": { "id": "894a58a2-dc75-422d-9ca6-00a489750dfd", "title": "My vacation", "slug": "my-vacation", "firstPublishedDate": "2020-08-06T09:18:07.839Z", "lastPublishedDate": "2020-08-06T09:18:07.839Z", "featured": true, "pinned": false, "categoryIds": ["5f2bcaa0879ad500173577f3", "5f2bcaa5940a02003488af3e"], "memberId": "5ee77ebfffeab500188f496b", "hashtags": ["sea", "sun"], "commentingEnabled": true, "minutesToRead": 1, "tagIds": ["5f2bcaa0879a4400173577f1", "5f2bc445940a02003488af3a"], "pricingPlanIds": ["5f2bc445940a02003498af3e"], "relatedPostIds": [ "111a58a2-dc75-422d-0015-00a489750dfd", "211a58a2-dc75-422d-1512-00a489750dfd" ], "language": "en", "translationId": "111a58a2-dc75-422d-9ca6-00a489750dfd" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?