Endpoints that allow for querying follow the API Query Language.
Note that the $hasSome
operator works the same as the operator "IN" in SQL.
The following table shows field support for filters and sorting for the post object:
Field | Supported Filters | Sortable |
---|---|---|
id | $eq , $ne , $hasSome | Sortable |
categoryId | $eq , $ne | |
title | $eq , $ne , $contains , $hasSome , $urlized , $startsWith , $endsWith , $hasSome | |
ownerId | $eq , $ne | |
contentText | $eq , $ne , $contains , $hasSome , $startsWith , $endsWith , $hasSome | |
bestAnswerCommentId | $eq , $ne | |
pinned | $eq , $ne | Sortable |
commentingEnabled | $eq , $ne | |
commentCount | $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
likeCount | $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
viewCount | $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
createdDate | $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
updatedDate | $eq , $ne , $lt , $lte , $gt , $gte | |
lastActivityDate | $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
slug | $eq , $ne , $contains , $hasSome , $urlized , $startsWith , $endsWith , $hasSome | Sortable |
Query pinned posts
Get all posts, sorted by created date (latest first)
Get posts by IDs
Related content: API Query Language, Query Posts
The following table shows field support for filters and sorting for the category object:
Field | Supported Filters | Sortable |
---|---|---|
id | $in , $eq , $ne , $lt , $lte , $gt , $gte | |
parentId | $in , $eq , $ne , $lt , $lte , $gt , $gte | |
name | $in , $eq , $ne | |
rank | $in , $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
headerTitle | $in , $eq , $ne | |
headerType | $in , $eq , $ne | |
headerDescription | $in , $eq , $ne | |
postCount | $in , $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
postViewCount | $in , $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
slug | $in , $eq , $ne |
Query categories by description
Get all categories, sorted by rank
Get categories by IDs
Related content: API Query Language, Query Categories
The following table shows field support for filters and sorting for the draft post object:
Field | Supported Filters | Sortable |
---|---|---|
id | $eq , $ne , $hasSome | Sortable |
categoryId | $eq , $ne | |
title | $eq , $ne , $contains , $hasSome , $urlized , $startsWith , $endsWith , $hasSome | |
ownerId | $eq , $ne | |
contentText | $eq , $ne , $contains , $hasSome , $startsWith , $endsWith , $hasSome | |
commentingType | $eq , $ne | |
createdDate | $eq , $ne , $lt , $lte , $gt , $gte | Sortable |
Query draft post by content text
Get all draft posts, sorted by createdDate
Get draft posts by IDs
Related content: API Query Language