POST

Query Posts


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
metrics.views$eq, $ne, $lt, $lte, $gt, $gte, $inSort: ASC, DESC
metrics.comments$eq, $ne, $lt, $lte, $gt, $gte, $inSort: ASC, DESC
metrics.likes$eq, $ne, $lt, $lte, $gt, $gte, $inSort: ASC, DESC
media.displayed$eq, $neNone
Permissions
Read Blog
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/v3/posts/query

Errors

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

Did this help?