# Detect Shopware Version through API

**URL:** https://forum.shopware.com/t/detect-shopware-version-through-api/64512
**Category:** Programming (EN)
**Created:** [6. Februar 2020 um 07:47 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512 "2020-02-06T07:47:11Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [6. Februar 2020 um 07:47 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/1 "2020-02-06T07:47:11Z")

</div>

Hello,  
Thank you in advance.

Is there any way to check Shopware version through API. for example shop URL - **[https://example.shop.com](https://example.shop.com)** &nbsp;is a running Shopware 5 or Shopware 6 without using any credentials.

---

<div class="post-metadata">

### Author: ![tinect](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tinect/32/7704_2.png) [@tinect](https://forum.shopware.com/u/tinect)
#### Post date: [6. Februar 2020 um 08:00 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/2 "2020-02-06T08:00:55Z")

</div>

You should be able to detect version in&nbsp;storefronts, by looking into the source.  
For safety reasons there isn’t a safe way to detect version on default.

Additionally, there are Browser-Extensions trying to display what is running on sites.

What do you want with this information? 🙂

---

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [6. Februar 2020 um 10:05 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/3 "2020-02-06T10:05:45Z")

</div>

> [@tinect schrieb:](https://forum.shopware.com/profile/20858/tinect "tinect")
> 
> Thank You so much for your help,
> 
> Actually i want to call API based on version as there is difference in API call and response in shopware 5 and shopware 6.

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [6. Februar 2020 um 10:47 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/4 "2020-02-06T10:47:12Z")

</div>

Hello,

I answered you on stackoverflow&nbsp;[Detect Shopware Version through API - Stack Overflow](https://stackoverflow.com/questions/60089949/detect-shopware-version-through-api/)

Best regards from Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [6. Februar 2020 um 11:54 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/5 "2020-02-06T11:54:15Z")

</div>

> [@Michael Telgmann schrieb:](https://forum.shopware.com/profile/17553/Michael%20Telgmann "Michael%20Telgmann")
> 
> Hello,&nbsp;Michael Telgmann
> 
> Yes i have get help from your stackoverflow answer, than you so much

---

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [6. Februar 2020 um 12:43 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/6 "2020-02-06T12:43:44Z")

</div>

Hello&nbsp;Michael Telgmann,

I need one more help, is there any details documents for Shopware 6 API like of Shopware 5? for example. there are API docs to create product using API and Shopware is giving the format (Array format) to pass post data to the API while there is no specific format and informations for Shopware 6, have you anything that can help me please

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [6. Februar 2020 um 13:00 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/7 "2020-02-06T13:00:06Z")

</div>

Hi,

you can find our Docs here:&nbsp;[https://docs.shopware.com/en/shopware-platform-dev-en/api](https://docs.shopware.com/en/shopware-platform-dev-en/api)  
You could also use our Swagger Examples, just call „[http://your-domain.com/api/v1/\_info/swagger.html](http://your-domain.com/api/v1/_info/swagger.html)“

Best regards from Schöppingen

![cool](http://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/shopware.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [6. Februar 2020 um 13:10 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/8 "2020-02-06T13:10:30Z")

</div>

> [@Michael Telgmann schrieb:](https://forum.shopware.com/profile/17553/Michael%20Telgmann "Michael%20Telgmann")
> 
> Hi,&nbsp;Michael Telgmann
> 
> &nbsp;
> 
> Thank you for your help but&nbsp;[http://your-domain.com/api/v1/\_info/swagger.html](http://your-domain.com/api/v1/_info/swagger.html)&nbsp;is return response like
> 
> {  
> &nbsp; &nbsp; „errors“: [  
> &nbsp; &nbsp; &nbsp; &nbsp; {  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; „code“: „0“,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; „status“: „405“,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; „title“: „Method Not Allowed“,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; „detail“: „No route found for "POST /api/v1/\_info/swagger.html": Method Not Allowed (Allow: GET)“  
> &nbsp; &nbsp; &nbsp; &nbsp; }  
> &nbsp; &nbsp; ]  
> }

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [6. Februar 2020 um 13:33 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/9 "2020-02-06T13:33:00Z")

</div>

as the error says, you try to make a POST request, you should use GET (as the error says)

---

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [6. Februar 2020 um 13:56 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/10 "2020-02-06T13:56:05Z")

</div>

> [@Michael Telgmann schrieb:](https://forum.shopware.com/profile/17553/Michael%20Telgmann "Michael%20Telgmann")
> 
> as the error says, you try to make a POST request, you should use GET (as the error says)
> 
> With the get method, it is saying&nbsp; &nbsp; **Unexpected 'in response**

---

<div class="post-metadata">

### Author: ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)
#### Post date: [7. Februar 2020 um 09:10 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/11 "2020-02-07T09:10:17Z")

</div>

It’s HTML not JSON. You need to open it in your Browser.

---

<div class="post-metadata">

### Author: ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)
#### Post date: [7. Februar 2020 um 09:11 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/12 "2020-02-07T09:11:16Z")

</div>

> [@simkli schrieb:](https://forum.shopware.com/profile/16741/simkli "simkli")
> 
> It’s HTML not JSON. You need to open it in your Browser.
> 
> Thank you for your help, yes tried opening in browser but authorization header will be missing

---

<div class="post-metadata">

### Author: ![Shaimole](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Shaimole](https://forum.shopware.com/u/Shaimole)
#### Post date: [28. Juli 2020 um 14:15 UTC](https://forum.shopware.com/t/detect-shopware-version-through-api/64512/13 "2020-07-28T14:15:43Z")

</div>

You can get the exact Shopware 6 Version via getRequest to

api/v1/\_info/config

&nbsp;

&nbsp;
