Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
Query Posts runs with these defaults, which you can override:
firstPublishedDate is sorted in descending order, with pinned posts first.paging.limit is 50.paging.offset is 0.To learn about working with Query endpoints, see API Query Language, Sorting and Paging, and Field Projection.
| Property | Filters | Sort |
|---|---|---|
id | $eq, $ne, $hasSome, $in, $nin | Sort: ASC, DESC |
title | $eq, $ne, $startsWith, $hasSome, $lt, $lte, $gt, $gte, $exists, $in | Sort: ASC, DESC |
firstPublishedDate | $eq, $ne, $lt, $lte, $gt, $gte, $in | Sort: ASC, DESC |
lastPublishedDate | $eq, $ne, $lt, $lte, $gt, $gte, $in | Sort: ASC, DESC |
slug | $eq, $ne, $lt, $lte, $gt, $gte, $hasSome, $hasAll | Sort: ASC, DESC |
featured | $eq, $ne | Sort: ASC, DESC |
pinned | $eq, $ne | Sort: ASC, DESC |
categoryIds | $hasSome, $hasAll | None |
memberId | $eq, $ne, $hasSome | None |
hashtags | $hasSome, $hasAll | None |
commentingEnabled | $eq, $ne | Sort: ASC, DESC |
minutesToRead | $eq, $ne, $lt, $lte, $gt, $gte, $in | None |
tagIds | $hasSome, $hasAll | None |
pricingPlanIds | $hasSome, $hasAll | None |
language | $eq, $ne, $hasSome, $exists, $in | None |
translationId | $eq, $ne, $exists, $in | None |
metrics.views | $eq, $ne, $lt, $lte, $gt, $gte, $in | Sort: ASC, DESC |
metrics.comments | $eq, $ne, $lt, $lte, $gt, $gte, $in | Sort: ASC, DESC |
metrics.likes | $eq, $ne, $lt, $lte, $gt, $gte, $in | Sort: ASC, DESC |
media.displayed | $eq, $ne | None |
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.