Blog Posts
Get blog posts
Changed onget/posts
Request
- Base URLhttps://open.shopline.io/v1
- URLhttps://open.shopline.io/v1/posts
- AuthHTTP bearer
Query parameters
pageinteger
1-based page number to fetch. Omit for the first page; increase it while keeping every other filter unchanged to walk the result set.
per_pageinteger
Maximum number of blog posts returned per page. Use a small value when only the most recent posts are needed.
statuses[]string[]
Publication statuses to include. Omit to return both draft and published posts.
category_idstring
Return only posts assigned to this blog category. Obtain the ID from the blog category list endpoint. Omit to search every category. Combined with the other filters using AND.
querystring
Keyword matched against post titles. Omit to list posts without keyword filtering. Combined with the other filters using AND.
Response
Blog posts and pagination state.
Example response
{
"pagination": {
"current_page": 1,
"per_page": 24,
"total_count": 1,
"total_pages": 1
}
}Changes
- info
endpoint added
- info