# Get all posts that have a certain tag

**URL:** <https://forum.ghost.org/t/get-all-posts-that-have-a-certain-tag/6174>\
**Category:** Developer help\
**Created:** [March 11, 2019, 10:43pm UTC](https://forum.ghost.org/t/get-all-posts-that-have-a-certain-tag/6174 "2019-03-11T22:43:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksanderbodurri](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@aleksanderbodurri](https://forum.ghost.org/u/aleksanderbodurri)\
**Post date:** [March 11, 2019, 10:43pm UTC](https://forum.ghost.org/t/get-all-posts-that-have-a-certain-tag/6174/1 "2019-03-11T22:43:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 11, 2019, 11:35pm UTC](https://forum.ghost.org/t/get-all-posts-that-have-a-certain-tag/6174/2 "2019-03-11T23:35:57Z")

</div>

You’re looking for filtering:

> **[Ghost Content API Documentation](https://ghost.org/docs/content-api/)**
>
> Ghost's RESTful Content API delivers published content to the world and can be accessed by any client to render a website. Read more on Ghost Docs.

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

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [March 12, 2019, 2:32am UTC](https://forum.ghost.org/t/get-all-posts-that-have-a-certain-tag/6174/3 "2019-03-12T02:32:01Z")

</div>

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/](https://docs.ghost.org/api/javascript/filtering/)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [March 26, 2019, 2:32am UTC](https://forum.ghost.org/t/get-all-posts-that-have-a-certain-tag/6174/4 "2019-03-26T02:32:02Z")

</div>

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