Skip to content

Instantly share code, notes, and snippets.

@eshea
Created March 25, 2014 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshea/9763284 to your computer and use it in GitHub Desktop.
Save eshea/9763284 to your computer and use it in GitHub Desktop.
DSG Product API

The DSG Product API returns only products and skus that are marked as active "A" in the product feed. To override this behavior all APIs support sending an "unfiltered=true" parameter that will return all results.

Search

  • Search by PID(s) Supports the JSONP callback parameter
http://api.dsg.com/api/v1/products/search?pids=<pid1,pid2,pid3>

Example:

http://api.dsg.com/api/v1/products/search?pids=24673966,30830856
  • Search by SKU(s) Supports the JSONP callback parameter
http://api.dsg.com/api/v1/products/search?skus=<sku1,sku2,sku3>

Example:

http://api.dsg.com/api/v1/products/search?skus=16969931,17773632
  • Full Text Search Supports the JSONP callback parameter Example:
http://api.dsg.com/api/v1/products/search?name=nike%20running
http://api.dsg.com/api/v1/products/search?name=under%20armour%20sunglasses

Images

  • Product image by PID:
    • Size defaults to small, options are [small, regular, wide, large]
http://api.dsg.com/api/v1/products/<pid>/images/<size>

Examples:

http://api.dsg.com/api/v1/products/24673966/images
http://api.dsg.com/api/v1/products/24673966/images/large
http://api.dsg.com/api/v1/products/30830856/images
http://api.dsg.com/api/v1/products/30830856/images/small
http://api.dsg.com/api/v1/products/30830856/images/regular
http://api.dsg.com/api/v1/products/30830856/images/wide
http://api.dsg.com/api/v1/products/30830856/images/large
  • SKU image by Sku model number:
    • Size defaults to small, options are [small, regular, wide, large]
http://api.dsg.com/api/v1/skus/<sku>/images/<size>

Examples:

http://api.dsg.com/api/v1/skus/16969931/images
http://api.dsg.com/api/v1/skus/16969931/images/small
http://api.dsg.com/api/v1/skus/16969931/images/regular
http://api.dsg.com/api/v1/skus/16969931/images/wide
http://api.dsg.com/api/v1/skus/16969931/images/large
http://api.dsg.com/api/v1/skus/17773632/images
http://api.dsg.com/api/v1/skus/17773632/images/small
http://api.dsg.com/api/v1/skus/17773632/images/regular
http://api.dsg.com/api/v1/skus/17773632/images/wide
http://api.dsg.com/api/v1/skus/17773632/images/large

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment