# /api/v3/search/product gibt ohne der Angabe von associations keine Daten mehr zurück

**URL:** <https://forum.shopware.com/t/api-v3-search-product-gibt-ohne-der-angabe-von-associations-keine-daten-mehr-zuruck/69085>\
**Category:** Programmierung\
**Created:** [21. August 2020 um 08:55 UTC](https://forum.shopware.com/t/api-v3-search-product-gibt-ohne-der-angabe-von-associations-keine-daten-mehr-zuruck/69085 "2020-08-21T08:55:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebcom](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@ebcom](https://forum.shopware.com/u/ebcom)\
**Post date:** [21. August 2020 um 08:55 UTC](https://forum.shopware.com/t/api-v3-search-product-gibt-ohne-der-angabe-von-associations-keine-daten-mehr-zuruck/69085/1 "2020-08-21T08:55:42Z")

</div>

Updatebedingt musste ich von API V1 auf V3 umstellen.

Ein search/product wie

```
 stdClass Object ( [total-count-mode] =\> 1 [limit] =\> 500 [page] =\> 1 [includes] =\> stdClass Object ( [product] =\> Array ( [0] =\> productNumber [1] =\> id ) ) )

```

bring nun keine Daten mehr zurück, in V1 ging das ohne Probleme.

Was funktioniert ist jeweils eine association mitzugeben:

```
 stdClass Object ( [total-count-mode] =\> 1 [limit] =\> 500 [page] =\> 1 [includes] =\> stdClass Object ( [product] =\> Array ( [0] =\> productNumber [1] =\> id ) ) [associations] =\> stdClass Object ( [cover] =\> Array ( [0] =\> total-count-mode [1] =\> 1 ) ) )

```

&nbsp;

Ich will lediglich eine Liste von id / productNumber. Gibt es hierzu einen besseren Ansatz?
