Interfaces
Interface: BlogPostListOptions
Options for listing blog posts
Options for listing blog posts
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
categoryId? | string | Filter by category ID | - |
filters? | FilterCondition | Advanced filters for additional filtering | - |
includeContent? | boolean | When true, each list item includes the full content field (HTML/markdown). Omitted by default — list responses are lighter without the body. Use getBySlug to fetch a single post with content, or set this to true for use-cases like RSS feed generation that need all bodies in one request. | - |
limit? | number | Number of items per page | - |
media? | MediaMode | - | MediaOption.media |
page? | number | Page number for pagination (1-indexed) | - |
preview? | boolean | - | PreviewOption.preview |
search? | string | Search query for title/content | - |
sort? | string | Sort order using the -field prefix convention: prefix with - for descending, no prefix for ascending. Comma-separate multiple fields for multi-field sort. Examples: - sort: '-publishedAt' — newest first (descending) - sort: 'title' — alphabetical ascending - sort: '-publishedAt,title' — multi-field | - |
tagId? | string | Filter by tag ID | - |

