v1
latestOpenAPI 3.1.02026-07-13305453.8 KBList posts
Get a paginated list of published posts with optional filtering
Query parameters
Number of posts per page (1-100)
Number of posts per page (1-100)
Page number
Page number
Sort order by publishedAt
Sort order by publishedAt
Category slugs to include
Category slugs to include
[ "tech", "news" ]
Category slugs to exclude
Category slugs to exclude
[ "changelog" ]
Tag slugs to include
Tag slugs to include
[ "javascript", "react" ]
Tag slugs to exclude
Tag slugs to exclude
[ "outdated" ]
Search query for title and content
Search query for title and content
Content format (html or markdown)
Content format (html or markdown)
Filter by featured status
Filter by featured status
Filter by post status. Use 'published' for live posts, 'draft' for unpublished posts, or 'all' for both.
Filter by post status. Use 'published' for live posts, 'draft' for unpublished posts, or 'all' for both.
Response
Paginated list of posts
Example response
{
"posts": [
{
"id": "cryitfjp5678mn09qrstuvwx",
"slug": "getting-started-with-nextjs",
"title": "Getting Started with Next.js",
"status": "published",
"coverImage": "https://media.marblecms.com/cover.jpg",
"description": "A beginner's guide to Next.js",
"publishedAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-16T12:00:00Z",
"authors": [
{
"id": "cryitfjp1234jl04vdnycek8",
"name": "John Doe",
"image": "https://media.marblecms.com/avatar.jpg",
"bio": "Technical writer and developer",
"role": "Editor",
"slug": "john-doe",
"socials": [
{
"url": "https://twitter.com/johndoe",
"platform": "twitter"
}
]
}
],
"category": {
"id": "cryitfjp1234jl04vdnycek8",
"name": "Technology",
"slug": "technology",
"description": "Tech news and tutorials"
},
"tags": [
{
"id": "cryitfjp1234jl04vdnycek8",
"name": "JavaScript",
"slug": "javascript",
"description": "JavaScript tutorials"
}
],
"fields": {
"release_date": "2024-01-15",
"priority_score": 5,
"hashtags": [
"#javascript",
"#nextjs"
]
},
"content": "<p>Hello world</p>"
}
],
"pagination": {
"limit": 10,
"currentPage": 1,
"nextPage": 2,
"totalPages": 5,
"totalItems": 42
}
}