# API wie die Varianten auslesen?

**URL:** <https://forum.shopware.com/t/api-wie-die-varianten-auslesen/106924>\
**Category:** Shopware 6 (German)\
**Created:** [28. März 2025 um 12:30 UTC](https://forum.shopware.com/t/api-wie-die-varianten-auslesen/106924 "2025-03-28T12:30:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [28. März 2025 um 12:30 UTC](https://forum.shopware.com/t/api-wie-die-varianten-auslesen/106924/1 "2025-03-28T12:30:53Z")

</div>

Ja, ich stehe jetzt irgendwie total auf dem Schlauch.

Wie lese ich per Admin-API die Varianten zu einem Produkt aus?

Nun, per „/api/product/{id}“ bekomme ich nur die Stamminformationen und die Anzahl der Varianten übermittelt. Aber wie komme ich an die IDs der Varianten heran?

Mit „/api/search/product-configurator-setting“ kann ich nur die Infos zu den Optionen holen.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [28. März 2025 um 13:18 UTC](https://forum.shopware.com/t/api-wie-die-varianten-auslesen/106924/2 "2025-03-28T13:18:18Z")

</div>

/api/search/product

`{"page":1,"limit":25,"filter":[{"type":"equals","field":"product.parentId","value":"0195d6e1b9377370bf992bab4a168d5d"},{"type":"multi","operator":"AND","queries":[]}],"sort":[{"field":"product.options.name","order":"DESC","naturalSorting":false},{"field":"product.productNumber","order":"DESC","naturalSorting":false}],"associations":{"media":{"sort":[{"field":"position","order":"ASC","naturalSorting":false}],"associations":{"media":{"total-count-mode":1}},"total-count-mode":1},"options":{"sort":[{"field":"groupId","order":"ASC","naturalSorting":false},{"field":"id","order":"ASC","naturalSorting":false}],"total-count-mode":1}},"total-count-mode":1}`

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [27. April 2025 um 13:18 UTC](https://forum.shopware.com/t/api-wie-die-varianten-auslesen/106924/3 "2025-04-27T13:18:30Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
