List posts
Retrieves a list of posts with optional filtering and pagination. Returns lightweight post objects optimized for list views (excludes full content, only returns content_length for read time calculation).
Query parameters
Number of posts to return
Number of posts to skip (for pagination)
Filter by post status
Filter by category ID
Filter by subcategory ID
Search in title, content, and summary
Field to sort by
Sort order
Response
Posts retrieved successfully
Example response
{
"status": true,
"message": "Posts retrieved successfully",
"data": [
{
"id": 1,
"slug": "getting-started-with-go",
"title": "Getting Started with Go",
"summary": "Learn the basics of Go programming",
"meta_description": "A comprehensive guide to getting started with Go",
"keywords": "go,programming,tutorial",
"category_id": 1,
"sub_category_id": 2,
"created_by": 1,
"view_count": 100,
"content_length": 1250
}
],
"meta": {
"total": 100,
"limit": 10
}
}Changes
Changed in 2 of the 7 revisions of this API.42018
- ▲
for the
queryrequest parameterlimit, default value was changed from10to20request-parameter-default-value-changed
- ▲
the response property
data/items/sub_category_idbecame nullable for the status200response-property-became-nullable
- ●
for the
queryrequest parameterlimit, the max was set to100.00request-parameter-max-set
- ●
for the
queryrequest parameterlimit, the min was set to1.00request-parameter-min-set
- ●
for the
queryrequest parameteroffset, the min was set to0.00request-parameter-min-set
- ●
removed the optional property
data/items/archived_atfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/contentfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/deleted_atfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/is_publicfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/meta_titlefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/og_imagefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/published_atfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/statusfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/thumbnailfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/updated_atfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/updated_byfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/uuidfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/versionfrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional
queryrequest parametersearchnew-optional-request-parameter
- ○
added the new optional
queryrequest parametersort_bynew-optional-request-parameter
- ○
added the new optional
queryrequest parametersort_ordernew-optional-request-parameter
- ○
added the new enum value
deletedto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the optional property
data/items/content_lengthto the response with the200statusresponse-optional-property-added
- ▲
- ▲
for the
queryrequest parameterlimit, default value was changed from20to10request-parameter-default-value-changed
- ▲
removed the enum value
deletedfrom thequeryrequest parameterstatusrequest-parameter-enum-value-removed
- ●
deleted the
queryrequest parametersearchrequest-parameter-removed
- ●
deleted the
queryrequest parametersort_byrequest-parameter-removed
- ●
deleted the
queryrequest parametersort_orderrequest-parameter-removed
- ●
removed the optional property
data/items/content_lengthfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
data/items/archived_atto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/contentto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/deleted_atto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/is_publicto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/meta_titleto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/og_imageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/published_atto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/statusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/thumbnailto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/updated_atto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/updated_byto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/uuidto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/versionto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲