# Problems with API

**URL:** <https://forum.shopware.com/t/problems-with-api/66253>\
**Category:** Programming (EN)\
**Created:** [14. April 2020 um 14:58 UTC](https://forum.shopware.com/t/problems-with-api/66253 "2020-04-14T14:58:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lot](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Lot](https://forum.shopware.com/u/Lot)\
**Post date:** [14. April 2020 um 14:58 UTC](https://forum.shopware.com/t/problems-with-api/66253/1 "2020-04-14T14:58:26Z")

</div>

Can somebody help me to create a valid GET-Query for a filter:

https:// … /sales-channel-api/v1/product?filter[stock]=50&nbsp; &nbsp; &nbsp; works fine

&nbsp;

But how can I create things like:

https:// … /sales-channel-api/v1/product?&nbsp; &nbsp; &nbsp; &nbsp; with a filter described in the docs like&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { “filter”: [{ “type”: “equals”, “field”: “stock”, “value”: 1 }] }

---

<div class="post-metadata">

**Author:** ![Lot](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Lot](https://forum.shopware.com/u/Lot)\
**Post date:** [15. April 2020 um 09:15 UTC](https://forum.shopware.com/t/problems-with-api/66253/2 "2020-04-15T09:15:37Z")

</div>

Hallo, bin mittlerweile selbst ein Stück weiter gekommen:

Die komplexere Form der Filterabfrage muss über einen POST-Request laufen.
