# How to get only products from a particular category using the API?

**URL:** <https://forum.shopware.com/t/how-to-get-only-products-from-a-particular-category-using-the-api/67604>\
**Category:** General Questions (EN)\
**Created:** [11. Juni 2020 um 09:55 UTC](https://forum.shopware.com/t/how-to-get-only-products-from-a-particular-category-using-the-api/67604 "2020-06-11T09:55:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssali](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@ssali](https://forum.shopware.com/u/ssali)\
**Post date:** [11. Juni 2020 um 09:55 UTC](https://forum.shopware.com/t/how-to-get-only-products-from-a-particular-category-using-the-api/67604/1 "2020-06-11T09:55:08Z")

</div>

i would like to get all products from a particular category using the API, i am using the [https://xxxxxxx.com/api/v1/product](https://xxxxxxx.com/api/v1/product) to get all products from the shop but is there a way of getting only products from one category not all products using the API.

---

<div class="post-metadata">

**Author:** ![sfranze](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sfranze](https://forum.shopware.com/u/sfranze)\
**Post date:** [25. Juni 2020 um 13:30 UTC](https://forum.shopware.com/t/how-to-get-only-products-from-a-particular-category-using-the-api/67604/2 "2020-06-25T13:30:03Z")

</div>

Hi ssali,

If you need the products for exactly one category (not a category path) there is an easy way. You just need turn around you&nbsp; search. So instead of searching for products and check what category they are assigned to you can query the products of a category itself:

The api endpoint would be&nbsp;

```
POST https://shop.domain/api/v{version}/search/category/014c55d9156e40188f34b6b99e957069/products

```

&nbsp;

This is also described in the shopware documentation.

[https://docs.shopware.com/en/shopware-platform-dev-en/admin-api-guide/reading-entities?category=shopware-platform-dev-en/admin-api-guide](https://docs.shopware.com/en/shopware-platform-dev-en/admin-api-guide/reading-entities?category=shopware-platform-dev-en/admin-api-guide)

Hope this helps you :)&nbsp;
