Attributes:
active
: Identifies if product is currently supported in the BESTBUY.COM catalogcategory_path
: A hierarchical view of a product returned as a collectionalternate_categories
: Alternative categories of the productimages
: An array of Imagesname
: Product nameoffers
: An array of Offersregular_price
: Product’s regular selling pricesale_price
: Current item selling priceshipping_cost
: Provides product’s lowest shipping costsshipping_levels_of_service
: An array of Shipping levels of servicesku
: Best Buy unique 7-digit product identifiertype
: Best Buy product type. See Product type details in the Best Buy API reference for further informationupc
: Universal Product Code (UPC)url
: URL to BESTBUY.COM product detail pageraw_attributes
: Hash containing all information returned by the Best Buy API about the product. Any attribute returned not present in the object can be found here.
Attributes:
height
: Height of the imagewidth
: Width of the imageunit_of_measure
: Unit in which height and width are expressedhref
: URL of the imageprimary
: If it's the main image or notrel
: Name of the image
Attributes:
id
: Offer identifieroffer_name
: Offer namecontent_notes
: Notes about the offerstart_date
: Offer start dateend_date
: Offer end datetext
: Offer descriptiontype
: Offer types can include: special_offer, digital_insert and deal_of_the_day (See the oficial documentation for further info)url
: URL of offer information on BESTBUY.COM
Represents the shipping options of the product, with their own prices.
Attributes:
service_level_id
: ID of the shipping level of serviceservice_level_name
: Name of the shipping level of serviceunit_shipping_price
: Price of the shipping level of service
(For more methods, check the common API interface)
Params:
-
conditions
: A hash including certain search conditions. All of them are optional.:category_id
: The ID of a category. Returns only products of that category.:min_price
: Minimum price allowed for the returned products. It will take into account products on sale.:max_price
: Maximum price allowed for the returned products. It will take into account products on sale.:item_condition
: The condition all returned products must have. Can be eithernew
,pre-owned
orrefurbished
.:pagination
: See Pagination
Returns: a CollectionsResponse
object
conditions = {
category_id: 'cat02015',
min_price: 10,
max_price: 15,
item_condition: 'new',
pagination: { page: 4, page_size: 100 }
}
BestBuy::Products.new(your_api_key).get_by(conditions)