# Fast way to get article details

**URL:** <https://forum.shopware.com/t/fast-way-to-get-article-details/32272>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [16. November 2015 um 17:17 UTC](https://forum.shopware.com/t/fast-way-to-get-article-details/32272 "2015-11-16T17:17:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AynDev](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AynDev](https://forum.shopware.com/u/AynDev)\
**Post date:** [16. November 2015 um 17:17 UTC](https://forum.shopware.com/t/fast-way-to-get-article-details/32272/1 "2015-11-16T17:17:29Z")

</div>

Hello Shopware Community, I’m trying to update all article stocks. For that I need our article number. The REST-API provides the controller /api/articles where all articles can be fetched. However, when I’m using this controller for all articles I’m not getting the article details(which contain our article number). Is there a way to fetch the articles with the article details in a batch or do I need to fetch the details article by article? P.S.: only using the API. Not changing the Shop itself. Another solution would be a controller where I could put in a custom sql query.

---

<div class="post-metadata">

**Author:** ![tarkka](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tarkka](https://forum.shopware.com/u/tarkka)\
**Post date:** [25. November 2015 um 10:29 UTC](https://forum.shopware.com/t/fast-way-to-get-article-details/32272/2 "2015-11-25T10:29:04Z")

</div>

Number is a property of article-detail (variant) and not article. If you are using Shopware 5 I suggest using “/api/variants” to get it. For Shopware 4 I suggest adding custom API. Tutorial how to do it can be found [here](http://community.shopware.com/%5C_detail%5C_1574.html).
