Search

Our search feature supports search terms and filtering strings as described below.
 
Syntax: http://api.sierratradingpost.com/api/1.0/products/search~{search-term-url-encoded-with-hyphens}/?api_key=YourApiKey

Examples: To search for "columbia jackets", append the term "columbia-jackets" at the end of .../products/search~
  • http://api.sierratradingpost.com/api/1.0/products/search~columbia-jackets/?api_key=YourApiKey

Filters:
You could pass the following request parameters in conjunction with a search term, list of reviews or products to filter your results.

type parameter {values} 
description 
 
int page {1-N}  
Current page number, default 1. 
 
int perpage {1-100}
Number of items per page, default 24. 
 
enum sort { RatingHighToLow, RatingLowToHigh, HelpfulScoreHighToLow, HelpfulScoreLowToHigh, SubmissionDateNewToOld, SubmissionDateOldToNew }
-Sorting method for a list of reviews, default in bold. 
 
enum sort { Brand, Newest, SavingsHighToLow, DiscountHighToLow, LowestPrice, HighestPrice, HighestRated, MostReviewed, SearchRanking, CostAndQuantityAscending, OnSale, TopSellersScore, EndecaRelevance }
-Sorting method for a list of products, default in bold.

Example: 
 -The request below will returned a list of products for the search term "columbia jackets" starting from page#2 showing 100 products per page and sort by SearchRanking.

http://api.sierratradingpost.com/api/1.0/products/search~columbia-jacket/?page=2&perpage=100&sort=SearchRanking&api_key=YourApiKey

Ready to Try? Interact with our API...discover, test, debug live calls using our Active Docs Interface.