The following table shows field support for filters and sorting for the Post object:
Field | Supported Filters | Sortable |
---|---|---|
id | $eq , $ne , $hasSome | Sortable |
title | $eq , $ne , $contains , $startsWith , $endsWith , $hasSome , $lt , $lte , $gt , $gte , $exists , $in | Sortable |
firstPublishedDate | $eq , $ne , $lt , $lte , $gt , $gte , $in | Sortable |
lastPublishedDate | $eq , $ne , $lt , $lte , $gt , $gte , $in | Sortable |
slug | $hasSome , $hasAll | |
featured | $eq , $ne | Sortable |
pinned | $eq , $ne | Sortable |
categoryIds | $hasSome , $hasAll | |
memberId | $eq , $ne , $hasSome | |
hashtags | $hasSome , $hasAll | |
commentingEnabled | $eq , $ne | Sortable |
minutesToRead | $eq , $ne , $lt , $lte , $gt , $gte , $in | |
tagIds | $hasSome , $hasAll | |
pricingPlanIds | $hasSome , $hasAll | |
language | $eq , $ne , $hasSome , $exists , $in | |
translationId | $eq , $ne , $exists , $in | |
metrics.views | $eq , $ne , $gt , $lt , $gte , $lte , $in | Sortable |
metrics.comments | $eq , $ne , $gt , $lt , $gte , $lte , $in | Sortable |
metrics.likes | $eq , $ne , $gt , $lt , $gte , $lte , $in | Sortable |
Related content: API Query Language, Query Posts
Gets a post by the specified ID.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Gets a post with the provided slug.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Retrieves a list of up to 100 published posts per request.
List Posts runs with these defaults, which you can override:
firstPublishedDate
is sorted in descending order, with pinned posts first.paging.limit
is50
.paging.offset
is0
.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
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
is50
.paging.offset
is0
.
For field support for filters and sorting, see Field Support for Filtering and Sorting.
To learn about working with Query endpoints, see API Query Language, Sorting and Paging, and Field Projection. For a detailed list of supported filters and sortable fields, see Field Support for Filtering and Sorting.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Gets a specified post's metrics.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Retrieves the number of published posts per month within a specified time range.
The time range is set using the rangeStart
and months
properties.
The time range always starts on the 1st day of the month set in rangeStart
and
includes the number of months
following rangeStart
.
For example, if rangeStart
is set to '2022-03-13'
and months
is set to 4
,
the time range will be from '2022-03-01'
until '2022-06-30'
. The time range always ends on the last day of the month.
Note: If there are no published posts in a month within the time range, that month is not included in the response. For example, let's say a blog has
0
posts dated in February 2022. IfrangeStart
is set to'2022-01-01'
andmonths
is set to3
, the response includespostCount
values for January and March, but not February.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Gets the total amount of published posts of the blog.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Triggered when a post is created.
Event Body
Triggered when a post is updated.
Event Body
Triggered when a post is deleted.
Event Body
Triggered when a post is liked.
Event Body
Triggered when a post is unliked.