Gets a post with the provided slug.
Slug of the post to retrieve.
Deprecated. Use fieldsets
instead.
This parameter will be removed on June 30, 2023.
List of post fields to be included in the response.
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.
Post info.
curl \
'https://www.wixapis.com/blog/v3/posts/slugs/my-vacation' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
{
"post": {
"id": "894a58a2-dc75-422d-9ca6-00a489750dfd",
"title": "My vacation",
"slug": "my-vacation",
"url": {
"base": "https://some-user.wixsite.com/my-site",
"path": "/blog/posts/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"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.