List posts
Get a paginated list of published posts with optional filtering. Use status to read drafts or scheduled posts with a private key.
GET
List posts
Authorizations
Your Marble API key
Query Parameters
Number of posts per page (1-100)
Example:
10
Page number
Example:
1
Sort order by publishedAt
Available options:
asc, desc Example:
"desc"
Category slugs to include
Example:
Category slugs to exclude
Example:
Tag slugs to include
Example:
Tag slugs to exclude
Example:
Search query for title and content
Example:
"nextjs"
Content format (html or markdown)
Available options:
html, markdown Example:
"html"
Filter by featured status
Available options:
true, false Example:
"true"
Filter by post status. Use 'published' for live posts, 'draft' for unpublished posts, or 'all' for both. Use 'scheduled' for posts waiting to go live. 'all' never includes scheduled posts.
Available options:
published, draft, scheduled, all Example:
"published"