Parsing Products through API doesn't work

Hello.

I want to parse my products from https://shop.spreadshirt.co.uk/yaroslav-shcherban-shop/

and output it in my mobile app.

I used this manual https://developer.spreadshirt.net/display/API/ but it doesn’t work

USER ID: 120948125

Shop ID:
100681236

Shop name:
yaroslav-shcherban-shop

You need to publish products to your shop for this to work :slight_smile:

1 Like

Hello ! What means ‘publish products…’. I’ve published products and you can see them here by link:

But API doesn’t return it

Also I can connect to API without Api Key, just adding this string to Header (Authorization): SprdAuth apiKey="" and getting response. It’s a bug I think.

Not sure what the problem is exactly (you would have to be a little more specific) but https://api.spreadshirt.net/api/v1/shops/100681236/sellables?page=0 this is for example a sellable in your shop.

1 Like

Good. It works ! How to implement pagination in this way and how to get product URL through API ?

Have you read this? https://developer.spreadshirt.net/display/API/Build+your+own+shop+system

Yes, of course. There is no information how to use pagination and get product link through API. I’m not using Javascript library, I use REST API.

Please also have a look at this example https://github.com/spreadshirt/shop-api-example-integration
Our developers do not know what else to tell you. The info you are looking for is in there!