POST

Query Posts


Note: This query method uses the new Wix API Query Language syntax. If you're still using the old query syntax with chained query builder methods, see Migrate from SDK Query Builders to Wix API Query Language for guidance. The old query builder methods continue to work.

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.

PropertyFiltersSort
_id$eq, $ne, $hasSome, $in, $ninSort: ASC, DESC
title$eq, $ne, $startsWith, $hasSome, $lt, $lte, $gt, $gte, $exists, $inSort: ASC, DESC
firstPublishedDate$eq, $ne, $lt, $lte, $gt, $gte, $inSort: ASC, DESC
lastPublishedDate$eq, $ne, $lt, $lte, $gt, $gte, $inSort: ASC, DESC
slug$eq, $ne, $lt, $lte, $gt, $gte, $hasSome, $hasAllSort: ASC, DESC
featured$eq, $neSort: ASC, DESC
pinned$eq, $neSort: ASC, DESC
categoryIds$hasSome, $hasAllNone
memberId$eq, $ne, $hasSomeNone
hashtags$hasSome, $hasAllNone
commentingEnabled$eq, $neSort: ASC, DESC
minutesToRead$eq, $ne, $lt, $lte, $gt, $gte, $inNone
tagIds$hasSome, $hasAllNone
pricingPlanIds$hasSome, $hasAllNone
language$eq, $ne, $hasSome, $exists, $inNone
translationId$eq, $ne, $exists, $inNone
media.displayed$eq, $neNone
Permissions
Read Blog
Learn more about app permissions.
Method Declaration
Copy
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?