Get all posts that have a certain tag

#1

Using v2 of the api. I’m able to successfully call the /posts/ and /tags/ route with an http get request but I am wondering if there is any way to format the request to only return posts that contain a specific tag.

#2

You’re looking for filtering:

Don’t forget to URL-encode your filter, the libraries provided by Ghost do that by default :slight_smile:

#3

To add to @vikaspotluri123 answer. Here’s a good explanation on how to use filters with SDK’s for Content & Admin APIs - https://docs.ghost.org/api/javascript/filtering/

closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.