# Connecting to the storefront API

**URL:** <https://forum.shopware.com/t/connecting-to-the-storefront-api/58854>\
**Category:** Shopware 6 (German)\
**Created:** [1. April 2019 um 08:23 UTC](https://forum.shopware.com/t/connecting-to-the-storefront-api/58854 "2019-04-01T08:23:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hesedel](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@hesedel](https://forum.shopware.com/u/hesedel)\
**Post date:** [1. April 2019 um 08:23 UTC](https://forum.shopware.com/t/connecting-to-the-storefront-api/58854/1 "2019-04-01T08:23:27Z")

</div>

Hi,

I’m trying to simply get the list of categories with the following JS script but all I get is a 404 error.

The docs also say that&nbsp;"The Storefront API does only require the client\_id, which you can find in the Administration -\> Sales Channel.&nbsp;"

But I can’t find a client\_id in the Administration.

```
fetch('https://escada-7427.pg.shopware.com/storefront-api/category', {
  headers: new Headers({
    'x-sw-access-key': 'SWSCY2NIOUYWUEVHEES4BTVFQQ'
  })
}).then(result => result.json().then(result => {
  console.log(result);
}))

```

&nbsp;
