# Using the API to get posts matching multiple tags

**URL:** <https://meta.discourse.org/t/using-the-api-to-get-posts-matching-multiple-tags/46364>\
**Category:** Development\
**Created:** [23.Июнь.2016 18:27:34 UTC](https://meta.discourse.org/t/using-the-api-to-get-posts-matching-multiple-tags/46364 "2016-06-23T18:27:34Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

[cappslock](/t/-/46364/1) asks if the API supports searching for posts containing multiple specific tags, such as "foo" and "bar". [supermathie](/t/-/46364/6) confirms that this is possible by using the search syntax `tags:foo tags:bar`.

<div class="post-metadata">

**Author:** ![cappslock](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cappslock/32/120789_2.png) [@cappslock](https://meta.discourse.org/u/cappslock)\
**Post date:** [23.Июнь.2016 18:27:35 UTC](https://meta.discourse.org/t/using-the-api-to-get-posts-matching-multiple-tags/46364/1 "2016-06-23T18:27:35Z")

</div>

Is it possible to use the API to search for posts which have a list of tags?

For example, could I search for posts that have the tags “foo” and “bar”?

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [29.Январь.2020 17:45:25 UTC](https://meta.discourse.org/t/using-the-api-to-get-posts-matching-multiple-tags/46364/6 "2020-01-29T17:45:25Z")

</div>

Поиск с использованием `tags:foo tags:bar` работает, как и ожидалось. Например:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/e/0e2b07c9cd52d7a708ff33ce1238685074711b70.png)
