# API Get Products from SalesChannel

**URL:** https://forum.shopware.com/t/api-get-products-from-saleschannel/96495
**Category:** Shopware 6 (German)
**Tags:** programming
**Created:** [3. Oktober 2022 um 17:58 UTC](https://forum.shopware.com/t/api-get-products-from-saleschannel/96495 "2022-10-03T17:58:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gean](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@gean](https://forum.shopware.com/u/gean)
#### Post date: [3. Oktober 2022 um 17:58 UTC](https://forum.shopware.com/t/api-get-products-from-saleschannel/96495/1 "2022-10-03T17:58:20Z")

</div>

Hallo,

ich bin bei Shopware noch ein Anfänger, möchte aber gerne meine Produkte des SalesChannels in meiner Angular Anwendung darstellen - dazu brauche ich die Informationen für die Produkte.  
Die Informationen möchte ich dabei von der API bekommen. Laut den Youtube Videos, Anleitungen und Foren Einträgen habe ich die Store-API zu verwenden.

Die Abfrage von [https://shop.geanious-notify.com/store-api/category/1b131c](https://shop.geanious-notify.com/store-api/category/1b131c)… erhalte ich eine Menge an Informationen - daher habe ich die Abfrage mit Includes immer weiter reduziert:

```auto
{
    "includes": {
        "category": [
            "name",
            "cmsPage"
        ],
        "cms_page": [
            "sections"
        ],
        "cms_section": [
            "blocks"
        ],
        "cms_block": [
            "slots"
        ],
        "cms_slot": [
            "data"
        ],
        "product_listing": [
            "elements"
        ]
    }
}

```

Die Reduzierung der Ausgabe auf den Typen „product-listing“ bzw „product\_listing“ mit Filtern einzuschränken funktioniert dabei jedoch überhaupt nicht… Bei „field“ habe ich bereits unterschiedliches Varianten durch (category.cmsPage.sections.blocks… bis category.cms\_page.cms\_section.cms\_block…)

```auto
{
    "includes": {
        "category": [
            "name",
            "cmsPage"
        ],
        "cms_page": [
            "sections"
        ],
        "cms_section": [
            "blocks"
        ],
        "cms_block": [
            "slots"
        ],
        "cms_slot": [
            "data"
        ],
        "product_listing": [
            "elements"
        ]
    },
    "filter": [
        {
            "type": "equals",
            "field": "type",
            "value": "product-listing"
        }
    ]
}

```

Habe ich dabei einen Denkfehler bzw. ist mein Vorgehen ansich richtig?

Besten Dank im Voraus!

LG, Andreas

---

<div class="post-metadata">

### Author: ![gean](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@gean](https://forum.shopware.com/u/gean)
#### Post date: [4. Oktober 2022 um 23:28 UTC](https://forum.shopware.com/t/api-get-products-from-saleschannel/96495/2 "2022-10-04T23:28:34Z")

</div>

Warum kompliziert, wenns einfach auch geht?

Mit dem Request [https://shop.xy.com/store-api/product-listing/1b131c6ada](https://shop.xy.com/store-api/product-listing/1b131c6ada)… bekommt man ein sauberes product-listing, welches man mit

```auto
{
    "includes": {
        "category": [
            "product_listing"
        ],
        "product_listing": [
            "elements"
        ]
    }
}

```

noch weiter reduzieren kann…

LG, Andreas
