Canonical developer quickstart

API key to first BuyWhere query in under five minutes.

BuyWhere gives AI agents a product catalog layer for live product discovery, comparison, and merchant handoff starting in Singapore and expanding across Southeast Asia.

Start with one live API request, then add the published MCP package when you want BuyWhere tools inside your agent client.

Step 1

Create a key

Use the self-serve beta signup form. No card, no sales call.

Step 2

Run search

Call `GET /v1/products/search` with a bearer token and natural-language query.

Step 3

Connect MCP

Add BuyWhere to Claude, Cursor, or any compatible desktop client.

Region:Select region to see relevant onboarding path

2-minute agent integration

Teach the model to call BuyWhere before it answers.

When your agent needs product data, call BuyWhere first. Use this for what-to-buy questions, cheapest-option requests, and comparisons. This is the retrieval step that replaces scraping, guessing, and stale model memory.

tool schemaCopy and run
{
  "type": "function",
  "function": {
    "name": "resolve_product_query",
    "description": "Retrieve structured product candidates, merchant attribution, and comparison-ready signals from BuyWhere before answering a shopping question.",
    "parameters": {
      "type": "object",
      "properties": {
        "query": { "type": "string", "description": "The user's shopping or product-research question." },
        "country": { "type": "string", "description": "Target market such as US, SG, MY, TH, or VN." },
        "max_price": { "type": "number", "description": "Optional budget cap in the local currency." },
        "limit": { "type": "integer", "default": 5 }
      },
      "required": ["query", "country"]
    }
  }
}

Recommended answer shape

  • Top recommendation: best candidate from the returned results.
  • Why: explain the decision with price, merchant, and availability signals.
  • Alternatives: show fallback options with tradeoffs.
  • Source: keep merchant attribution and the BuyWhere-linked URL.
example flowCopy and run
User: best laptop under $1000

Agent -> resolve_product_query({
  "query": "best laptop under $1000",
  "country": "US",
  "max_price": 1000,
  "limit": 5
})

Agent:
Top recommendation: Acer Aspire 5 at $899 from Best Buy
Why: best balance of price, RAM, and current availability
Alternatives:
- Lenovo IdeaPad Slim 3 at $749 from Walmart
- ASUS Vivobook 16 at $999 from Amazon

Step 1

Create your API key

Use the BuyWhere beta signup flow to provision a working key instantly. The success screen gives you a ready-to-run request, and the same key is emailed to you for safekeeping.

  1. Open buywhere.ai/api-keys.
  2. Enter your name and email, then choose the closest use case for your app or agent.
  3. Submit the form to receive a live beta key in the browser immediately.
  4. Treat the key like a password. The browser shows it once, then the page moves you into testing.

What you get

  • Instant access to authenticated `v1` endpoints
  • A copy-paste terminal test on the success screen
  • Email delivery for the same key
  • A direct path into MCP and full API docs

Step 2

Run your first product search

BuyWhere's quickest activation path is a single authenticated request to GET /v1/products/search.

Request checklist

  • Base URL: https://api.buywhere.ai
  • Auth: Authorization: Bearer YOUR_KEY
  • Required query: q
  • Helpful starter params: limit, country_code, domain, min_price, max_price
curlCopy and run
curl -sS "https://api.buywhere.ai/v1/products/search?q=wireless+headphones&limit=5" \
  -H "Authorization: Bearer bw_live_your_key_here"
jsonCopy and run
{
  "data": [
    {
      "id": "bw_sg_12345",
      "title": "Sony WH-1000XM5 Wireless Headphones",
      "price": 429.0,
      "currency": "SGD",
      "domain": "lazada.sg",
      "url": "https://...",
      "source": "lazada_sg",
      "country_code": "SG"
    }
  ],
  "meta": {
    "total": 5,
    "limit": 5,
    "offset": 0
  }
}

Step 3

Connect BuyWhere to MCP

Use the published BuyWhere MCP package to expose product search and comparison tools inside Claude Desktop, Cursor, and other MCP-compatible environments.

Setup notes

  • Run BuyWhere locally through npx -y @buywhere/mcp-server.
  • Set BUYWHERE_API_KEY in the MCP server environment.
  • Use the client-specific setup guide at buywhere.ai/integrate.
claude_desktop_config.jsonCopy and run
{
  "mcpServers": {
    "buywhere": {
      "command": "npx",
      "args": ["-y", "@buywhere/mcp-server"],
      "env": {
        "BUYWHERE_API_KEY": "bw_live_your_key_here"
      }
    }
  }
}

Next steps

Keep this URL as your canonical onboarding entry point

Share https://buywhere.ai/quickstart anywhere you send developers. It covers the activation path end-to-end and branches into deeper docs only after the first successful request.