You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was messing around with amazon and found out that it is possible to filter search results based on their main departments. Let me explain.
You know how when using amazon you can select the department like books/toys & games etc in the search bar? Some network requests capturing and html source fiddling led me to believe filtering/searching by department is possible, albeit only for either one or all departments.
If you view the source of the dropdown selector you find this:
<selectclass="nav-search-dropdown searchSelect" data-nav-digest="" data-nav-selected="0" id="searchDropdownBox" name="url" tabindex="18" title="Search in" style="top: 0px;"><optionselected="selected" value="search-alias=aps">All Departments</option><optionvalue="search-alias=alexa-skills">Alexa Skills</option><optionvalue="search-alias=instant-video">Amazon Video</option><optionvalue="search-alias=warehouse-deals">Amazon Warehouse Deals</option><optionvalue="search-alias=appliances">Appliances</option><optionvalue="search-alias=mobile-apps">Apps & Games</option><optionvalue="search-alias=arts-crafts">Arts, Crafts & Sewing</option><optionvalue="search-alias=automotive">Automotive Parts & Accessories</option><optionvalue="search-alias=baby-products">Baby</option><optionvalue="search-alias=beauty">Beauty & Personal Care</option><optionvalue="search-alias=stripbooks">Books</option><optionvalue="search-alias=popular">CDs & Vinyl</option><optionvalue="search-alias=mobile">Cell Phones & Accessories</option><optionvalue="search-alias=fashion">Clothing, Shoes & Jewelry</option><optionvalue="search-alias=fashion-womens"> Women</option><optionvalue="search-alias=fashion-mens"> Men</option><optionvalue="search-alias=fashion-girls"> Girls</option><optionvalue="search-alias=fashion-boys"> Boys</option><optionvalue="search-alias=fashion-baby"> Baby</option><optionvalue="search-alias=collectibles">Collectibles & Fine Art</option><optionvalue="search-alias=computers">Computers</option><optionvalue="search-alias=courses">Courses</option><optionvalue="search-alias=financial">Credit and Payment Cards</option><optionvalue="search-alias=digital-music">Digital Music</option><optionvalue="search-alias=electronics">Electronics</option><optionvalue="search-alias=gift-cards">Gift Cards</option><optionvalue="search-alias=grocery">Grocery & Gourmet Food</option><optionvalue="search-alias=handmade">Handmade</option><optionvalue="search-alias=hpc">Health, Household & Baby Care</option><optionvalue="search-alias=local-services">Home & Business Services</option><optionvalue="search-alias=garden">Home & Kitchen</option><optionvalue="search-alias=industrial">Industrial & Scientific</option><optionvalue="search-alias=digital-text">Kindle Store</option><optionvalue="search-alias=fashion-luggage">Luggage & Travel Gear</option><optionvalue="search-alias=luxury-beauty">Luxury Beauty</option><optionvalue="search-alias=magazines">Magazine Subscriptions</option><optionvalue="search-alias=movies-tv">Movies & TV</option><optionvalue="search-alias=mi">Musical Instruments</option><optionvalue="search-alias=office-products">Office Products</option><optionvalue="search-alias=lawngarden">Patio, Lawn & Garden</option><optionvalue="search-alias=pets">Pet Supplies</option><optionvalue="search-alias=pantry">Prime Pantry</option><optionvalue="search-alias=software">Software</option><optionvalue="search-alias=sporting">Sports & Outdoors</option><optionvalue="search-alias=tools">Tools & Home Improvement</option><optionvalue="search-alias=toys-and-games">Toys & Games</option><optionvalue="search-alias=vehicles">Vehicles</option><optionvalue="search-alias=videogames">Video Games</option><optionvalue="search-alias=wine">Wine</option></select>
Some of them seem to be main departments plus some sub departments too. The search-alias seems to be added to the completion engine fields if any of them are selected.
For example lets say I want to search for books, you get search-alias=stripbooks appended to the completion engine request. If I want to search for the book "lab girl". An example completion engine call would be
Hey that's pretty impressive! Thanks for noting that. I'm definitely working on it. Labeling it as New Feature and will be releasing this feature soon. Thanks again, that's a pretty good contribution.
Was messing around with amazon and found out that it is possible to filter search results based on their main departments. Let me explain.
You know how when using amazon you can select the department like books/toys & games etc in the search bar? Some network requests capturing and html source fiddling led me to believe filtering/searching by department is possible, albeit only for either one or all departments.
If you view the source of the dropdown selector you find this:
Some of them seem to be main departments plus some sub departments too. The
search-alias
seems to be added to the completion engine fields if any of them are selected.For example lets say I want to search for books, you get
search-alias=stripbooks
appended to the completion engine request. If I want to search for the book "lab girl". An example completion engine call would beI can see how this would be useful and certainly adds more functionality to the existing project
The text was updated successfully, but these errors were encountered: