# API request über zwei Tabellen möglich?

**URL:** <https://forum.shopware.com/t/api-request-ueber-zwei-tabellen-moeglich/101541>\
**Category:** Shopware 6 (German)\
**Created:** [11. Oktober 2023 um 09:54 UTC](https://forum.shopware.com/t/api-request-ueber-zwei-tabellen-moeglich/101541 "2023-10-11T09:54:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genjiro](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Genjiro](https://forum.shopware.com/u/Genjiro)\
**Post date:** [11. Oktober 2023 um 09:54 UTC](https://forum.shopware.com/t/api-request-ueber-zwei-tabellen-moeglich/101541/1 "2023-10-11T09:54:48Z")

</div>

Hallo,  
ist es möglich einen API request über zwei Tabellen, wie mit einem JOIN, über zwei Tabellen zu machen?  
Also z.B.

```auto
SELECT pgot.property_group_option_id FROM property_group_option_translation pgot JOIN property_group_option pgo ON pgo.id = pgot.id
WHERE pgo.property_group_id = "1234" AND pgot.name = "black"

```

Ich frage mich, ob das mit einer „association“ funktionieren kann. Z.B.:

```auto
"associations": {
        "propertyGroupOption": {
            "filter": [
                {
                    "type": "equals",
                    "field": "groupId",
                    "value": "018acc0ce5a070e2bbc1f8ca6c921ae2"
                }
            ]
        }
    }

```

Dann müsste der value aber „propertyGroupOptionTanslation.id“.
