Exclude Ads, Replies, or Posts

The following API entry points support the use of "exclude" as a query string parameter:

  • GET /posts

  • GET /posts/stats

This is an optional parameter. When added to the query string, it allows records with the following properties to be excluded from results:

  • ads – excludes ads

  • replies – excludes replies

  • posts – excludes everything except ads

Each of these properties is an array parameter which allows multiple options to be added to a list in the same request.

The syntax for using these parameters involves appending empty square braces to the parameter before assigning it to one of the desired options. This can be repeated for multiple options. In the following example, only posts that are neither ads nor replies are included in the list.

  • GET /posts?exclude[]=ads&exclude[]=replies

Last updated