How to fetch post using specific tag name in ghost API


#1

Hi there,

I was working on a small project where I need to show few post on home page of the website
PS: Only the post which has specific tag name for eg: ‘health’

How can I achieve this using ghost API

Thank you.


#2

Hey @Mohammed_Moria :wave: I think what you’re looking for is the filter param, you can use that to filter posts by tags, dates, status and so on. Have a look at the filter docs and if you have any questions after please let us know so we can improve the docs if needed :smile:


#3

Thank you for your response.

I found this post more useful then filter docs,
link as follows :https://gist.github.com/ErisDS/f516a859355d515aa6ad#fetch-3-posts-with-tags-which-match-photo-or-video-and-arent-the-post-with-id-5

can you please update ghost filter docs :smile:

Thank you