List posts
Get a paginated list of published posts with optional filtering
GET
List posts
Documentation Index
Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
["tech", "news"]
Category slugs to exclude
Example:
["changelog"]
Tag slugs to include
Example:
["javascript", "react"]
Tag slugs to exclude
Example:
["outdated"]
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.
Available options:
published, draft, all Example:
"published"
List posts