Skip to content

List Blog Posts

GET
/api/v1/posts

Lists posts with pagination, sorting and content filters. Supports CPT filter ?type= when Post Types is enabled.

Parameters

Query Parameters

page
Type
integer
Minimum
1
Default
1
limit
Type
integer
Minimum
1
Maximum
100
Default
10
sort
Type
string
Valid values
"created_at""published_at""updated_at""title"
order
Type
string
Valid values
"asc""desc"
Default
"desc"
status
Type
string
visibility
Type
string
category
Type
string
tag
Type
string
author
Type
string
q
Type
string
lang
Type
string
type

Filter by post_type (CPT). Ignored when Post Types is disabled.

Type
string

Responses

Posts list

Playground

Server
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

List blog posts with filters and pagination.

Auth: optional.

Parameters

NameInTypeRequiredDescription
pagequerynumberNoPage number
limitquerynumberNoItems per page
sortquerystringNoSort field
orderquerystringNoasc or desc
qquerystringNoText search
typequerystringNoFilter by post_type (CPT). Ignored when Post Types is disabled
langquerystringNoLanguage filter

Request Body

None.

Response 200

json
{
	"data": [],
	"user_context": { "authenticated": false },
	"meta": { "page": 1, "limit": 10, "total": 0, "hasMore": false }
}

Response Errors

  • 400 invalid query parameters

Notes

  • Use this for public listing pages.
  • Supports page, limit, sort, order, category, tag, author, q, lang, and CPT type filters.
  • When CPT is enabled, each post may include post_type and custom_fields.
  • Returns the standard data / user_context / meta envelope.
  • See also List Posts by Type.