Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Domains

The official domains for accessing the API are: 

  • EU platform
    • API - api.spreadshirt.net
    • Images - image.spreadshirtmedia.net
  • NA platform
    • API - api.spreadshirt.com
    • Images - image.spreadshirtmedia.com

HTTPS

The API can only be accessed using HTTPS:

User Agent

The API can only be accessed providing a valid User-Agent: 

API Key

The API (read api.spreadshirt.net, api.spreadshirt.com) can only be access providing at least an API Key: 

  • Authorization: SprdAuth apiKey=”8e5bb312-9060-446f-ada2-8c319327745a”

Test API Compatibility

You can test that your application works with the new requirements by accessing shop data and providing an X-Api-Key-Test header: 

curl -v 'http://api.spreadshirt.net/api/v1/shops/205909'

vs. 

curl -H 'X-Api-Key-Test: yes' 'http://api.spreadshirt.net/api/v1/shops/205909'

No from there on 

  • switch to HTTPS
  • provide a User-Agent
  • provide an API Key (use your own API Key otherwise we will block you in the near future)

curl -v -H 'X-Api-Key-Test: yes' -H 'User-Agent: MyApp/0.1 (https://www.myapp.com; admin@myapp.com)' -H 'Authorization: SprdAuth apiKey="..."' 'https://api.spreadshirt.net/api/v1/shops/205909' > /tmp/out

 

 


  • No labels