# Content api filter does not work as expected

**URL:** <https://forum.ghost.org/t/content-api-filter-does-not-work-as-expected/16125>\
**Category:** Developer help\
**Created:** [July 27, 2020, 6:07am UTC](https://forum.ghost.org/t/content-api-filter-does-not-work-as-expected/16125 "2020-07-27T06:07:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bluefitdev](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@Bluefitdev](https://forum.ghost.org/u/Bluefitdev)\
**Post date:** [July 27, 2020, 6:07am UTC](https://forum.ghost.org/t/content-api-filter-does-not-work-as-expected/16125/1 "2020-07-27T06:07:14Z")

</div>

If you aren’t running the latest version of Ghost, the first thing we will ask you to do is update to the latest version of Ghost.

- **What’s your URL**? Still on local, just trying out the API
- **What version of Ghost are you using?** The latest one, just pulled today via ghost cli on 27 of July 2020

And

- How was Ghost installed and configured? Local with sqllite
- What Node version, database, OS & browser are you using? Chrome, NPM lts v12.18.1

Hey guys,

I just started using ghost today. Was planning to use it for my company’s small internal blog. I’ve followed and skimmed all the docs, its clear, concise and easy to follow!

I was ready to integrate it with our system, our front end is using React so its straightforward. However we might need it to go through our backend first to filter request according to role etc etc.

The point is i may not be able to use javascript SDK, thus I’m reading how to use the api without it.

My problem is with the filtering, now i’m in postman and here’s the url

`{{host}}/ghost/api/v3/content/posts?key={{contentKey}}&include=authors,tags&order=published_at%20DESC&filter=author%3Arobert%2Btag%3Ahursville`

As you can see, i’m trying to filter with `filter=author:robert+tag:hursville`

If i filter with each one of them, it works. However combining them doesn’t seem to work. Any chance i’m missing something?

I’m following official [docs](https://ghost.org/docs/api/v3/content/#filtering) and some [examples](https://gist.github.com/ErisDS/f516a859355d515aa6ad)

and Yes, posts that i’m trying to get is by author robert AND tagged hurstville

Really appreciate any help atm… Thanks!

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [July 28, 2020, 3:18pm UTC](https://forum.ghost.org/t/content-api-filter-does-not-work-as-expected/16125/2 "2020-07-28T15:18:02Z")

</div>

Looks like a typo in your tag name to me 😬 `filter=author:robert+tag:hursville` is missing a `t`.

Works perfectly on the demo site: [https://demo.ghost.io/ghost/api/v3/content/posts/?key=22444f78447824223cefc48062&include=authors,tags&order=published\_at%20DESC&filter=author%3Aghost%2Btag%3Agetting-started](https://demo.ghost.io/ghost/api/v3/content/posts/?key=22444f78447824223cefc48062&include=authors,tags&order=published_at%20DESC&filter=author%3Aghost%2Btag%3Agetting-started)

---

<div class="post-metadata">

**Author:** ![Bluefitdev](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@Bluefitdev](https://forum.ghost.org/u/Bluefitdev)\
**Post date:** [July 29, 2020, 12:58am UTC](https://forum.ghost.org/t/content-api-filter-does-not-work-as-expected/16125/3 "2020-07-29T00:58:04Z")

</div>

> [@Bluefitdev](#):
>
> ta

Not sure what happened with my postman, but all I did was delete the whole value and rewrite it… possibly some weird invisible char was there

haha thanks!
