#26494 Example: Singapore product catalog API (BuyWhere) as an agent tool via LiteLLM
## BuyWhere + LiteLLM: Real-time Product Data for AI Agents
Hi LiteLLM team,
Wanted to flag a data source that pairs naturally with LiteLLM for agentic workflows: **[BuyWhere](https://buywhere.ai)**, a real-time Singapore product catalog API.
BuyWhere lets agents fetch live prices from Singapore e-commerce stores (Harvey Norman, Shopee, Lazada) via a single REST call. Great for demonstrating LiteLLM routing with tool use.
### Example Pattern ```python import litellm
def search_singapore_products(query: str) -> dict: import requests return requests.get(f"https://api.buywhere.ai/search?q={query}").json()
tools = [{ "type": "function", "function": { "name": "search_singapore_products", "description": "Search real-time Singapore product prices (Harvey Norman, Shopee, Lazada)", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}} } }]
response = litellm.completion( model="claude-3-5-sonnet-20241022", messages=[{"role": "user", "content": "Where is the cheapest iPhone 16 in Singapore?"}], tools=tools ) ```
Full API docs at https://buywhere.ai/developers/. Happy to contribute a cookbook example or pro…