Skip to content

API Reference parrot_tools.retail.bby

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.retail.bby

View source

BestBuy API Toolkit - Unified toolkit for BestBuy operations.

Provides methods for:

  • Product search and information
  • Store availability checking
  • Inventory lookup

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Attribute BESTBUY_API_KEY

Class BestBuyToolkit

Toolkit for interacting with BestBuy API and services.

Provides methods for:

  • Searching for products
  • Getting product information
  • Checking store availability
  • Finding nearby stores
Parameter Type Default Description
api_key Optional[str] None BestBuy API key. If None, uses config.get('BESTBUY_APIKEY')
use_proxy bool True Whether to use proxy for requests
proxy_type str 'oxylabs' Type of proxy to use (default: oxylabs)
**kwargs {} Additional toolkit configuration

Method BestBuyToolkit.search_products

Search for products on BestBuy using product names or search terms.

Returns detailed product information including:

  • SKU (needed for availability checks)
  • Product name
  • Sale price
  • Customer reviews and ratings
  • Manufacturer and model number

search_products(search_terms: Optional[str] = None, product_name: Optional[str] = None) -> Dict[str, Any]

Parameter Type Default Description
search_terms Optional[str] None Comma-separated search terms (e.g., "oven,stainless,steel")
product_name Optional[str] None Specific product name to search for

Returns: Dict[str, Any] — Dictionary with list of matching products or error message

Method BestBuyToolkit.check_availability

Check product availability at a specific BestBuy store.

:param zipcode: ZIP code for the store. :param sku: Product SKU to check. :param location_id: Store location ID. :param show_only_in_stock: If True, only return if in stock. :return: Availability dictionary.

check_availability(zipcode: str, sku: str, location_id: str, show_only_in_stock: bool = False) -> Dict[str, Any]

Parameter Type Default Description
zipcode str
sku str
location_id str
show_only_in_stock bool False

Returns: Dict[str, Any]

Method BestBuyToolkit.find_stores

Find BestBuy stores near a ZIP code.

find_stores(zipcode: str, radius: int = 25) -> Dict[str, Any]

Parameter Type Default Description
zipcode str ZIP code to search near
radius int 25 Search radius in miles

Returns: Dict[str, Any] — Dictionary with list of stores

Method BestBuyToolkit.get_product_details

Get detailed information for a specific product by SKU.

get_product_details(sku: str) -> Dict[str, Any]

Parameter Type Default Description
sku str Product SKU

Returns: Dict[str, Any] — Dictionary with detailed product information

Attribute CTT_LIST

Class ProductAvailabilityInput

Input schema for checking product availability.

Fields:

Field Type Default Description
zipcode str ZIP code to check availability in
sku str Product SKU to check
location_id str Store location ID to check
show_only_in_stock bool False Whether to only show stores with product in stock

Class ProductSearchInput

Input schema for product search.

Fields:

Field Type Default Description
search_terms Optional[str] None Search terms separated by commas (e.g., 'oven,stainless,steel')
product_name Optional[str] None Specific product name to search for

Attribute SID_LIST

Class StoreLocatorInput

Input schema for finding stores.

Fields:

Field Type Default Description
zipcode str ZIP code to search near
radius int 25 Search radius in miles

Alias tool_schema

Re-exported from parrot_tools.decorators.tool_schema.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally