# REST API - Pfad zu Artikelbild

**URL:** <https://forum.shopware.com/t/rest-api-pfad-zu-artikelbild/34913>\
**Category:** Programmierung\
**Created:** [29. Februar 2016 um 14:14 UTC](https://forum.shopware.com/t/rest-api-pfad-zu-artikelbild/34913 "2016-02-29T14:14:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)\
**Post date:** [29. Februar 2016 um 14:14 UTC](https://forum.shopware.com/t/rest-api-pfad-zu-artikelbild/34913/1 "2016-02-29T14:14:11Z")

</div>

/article/id

gibt&nbsp;

```
[images] => Array
        (
            [0] => Array
                (
                    [id] => 870
                    [articleId] => 192
                    [articleDetailId] => 
                    [description] => 
                    [path] => MF4813_SYRAH_MAG-350x569
                    [main] => 1
                    [position] => 1
                    [width] => 0
                    [height] => 0
                    [relations] => 
                    [extension] => png
                    [parentId] => 
                    [mediaId] => 749
                )

        )

```

zurück.

der Pfad ist allerdings&nbsp;  
[https://shop.xxx.de/media/image/45/e0/11/MF4813\_SYRAH\_MAG-350x569](https://shop.xxx.de/media/image/45/e0/11/MF4813_SYRAH_MAG-350x569)

Kann ich das Bild auch per URL über die mediaID&nbsp;aufrufen, oder wie komme ich an den kompletten Pfad?

Danke.&nbsp;

---

<div class="post-metadata">

**Author:** ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)\
**Post date:** [29. Februar 2016 um 15:04 UTC](https://forum.shopware.com/t/rest-api-pfad-zu-artikelbild/34913/2 "2016-02-29T15:04:59Z")

</div>

Pfad steht natürlcih im media Objekt

---

<div class="post-metadata">

**Author:** ![DanielNogel](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@DanielNogel](https://forum.shopware.com/u/DanielNogel)\
**Post date:** [29. Februar 2016 um 17:06 UTC](https://forum.shopware.com/t/rest-api-pfad-zu-artikelbild/34913/3 "2016-02-29T17:06:37Z")

</div>

Hi,

da kannst du sonst auch gerne ein Ticket für anlegen, ich denke es macht schon Sinn, dass man in der REST-API nicht den „virtuellen“, sondern den physikalischen Pfad zurück bekommt. Das spart dann ggf. auch den Umweg über die Medien-Ressource.

Daniel
