Skip to main contentSkip to navigation
← Back to documentation

Search Products

Full-text search across 5M+ products with filtering by country, brand, category, price range, and more.

Search Products
GET /v1/products/search

Full-text search across 5M+ products with filtering by country, brand, category, price range, and more.

Request

Headers

HeaderRequiredDescription
AuthorizationYesBearer <api_key>

Query Parameters

ParameterTypeRequiredDescription
qstringYesSearch query (full-text search)
country_codestringNoTwo-letter country code: SG, US, MY, TH, ID, VN, PH. Default: SG
regionstringNoSEA for all Southeast Asian markets
categorystringNoCategory name filter (case-insensitive partial match)
brandstringNoBrand name filter (case-insensitive partial match)
domainstringNoRetailer domain filter, e.g. amazon.sg, lazada
min_pricenumberNoMinimum price in inferred currency
max_pricenumberNoMaximum price in inferred currency
currencystringNoPrice currency. Default: inferred from country_code
sortstringNorelevance (default), price_asc, price_desc, discount_desc, newest
availabilitystringNoin_stock, out_of_stock, preorder, discontinued
limitintegerNoResults per page. Default: 20, max: 100
offsetintegerNoPagination offset. Default: 0
pageintegerNoPage number (alternative to offset). offset = (page - 1) * limit
fieldsstringNoComma-separated list of fields to return (see below)
compactbooleanNotrue for smaller payloads optimized for AI agents

Available Fields

When using the fields parameter, you can request any combination of:

id, name, price, url, merchant, category, country, description, image_url, images, brand, sku, mpn, gtin, availability, compare_at_price, rating, title, country_code, region, original_price, discount_pct, structured_specs, comparison_attributes, metadata

Example Request

curl -s "https://api.buywhere.ai/v1/products/search?q=wireless+headphones&country_code=SG&max_price=200&sort=price_asc&limit=5" \
  -H "Authorization: Bearer $BUYWHERE_API_KEY"

Response

{
  "results": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "title": "Sony WH-1000XM5 Wireless Headphones",
      "price": {
        "amount": 349.00,
        "currency": "SGD"
      },
      "merchant": "amazon.sg",
      "url": "https://www.amazon.sg/dp/B09XS7JWHH",
      "image_url": "https://m.media-amazon.com/images/I/51aXvjzcukL.jpg",
      "region": "SG",
      "country_code": "SG",
      "updated_at": "2026-05-16T10:30:00Z",
      "metadata": {
        "brand": "Sony",
        "category_path": ["Electronics", "Headphones"],
        "rating": 4.7,
        "review_count": 1250
      },
      "original_price": 549.00,
      "discount_pct": 36
    }
  ],
  "total": 1842,
  "page": {
    "limit": 5,
    "offset": 0
  },
  "response_time_ms": 145,
  "cached": false
}

Response Fields

FieldTypeDescription
resultsarrayArray of product objects
results[].idstring (UUID)Unique product identifier
results[].titlestringProduct name
results[].price.amountnumberCurrent price
results[].price.currencystringCurrency code (SGD, USD, etc.)
results[].merchantstringRetailer domain
results[].urlstringProduct page URL
results[].image_urlstringPrimary product image URL
results[].regionstringGeographic region
results[].country_codestringTwo-letter country code
results[].updated_atstring (ISO 8601)Last data refresh timestamp
results[].original_pricenumberPrice before discount (if discounted)
results[].discount_pctnumberDiscount percentage (if discounted)
results[].metadataobjectAdditional product data (brand, category, ratings)
totalintegerTotal matching products
page.limitintegerResults per page
page.offsetintegerCurrent offset
response_time_msintegerServer processing time in ms
cachedbooleanWhether the response was served from cache

More Examples

Filter by brand

curl -s "https://api.buywhere.ai/v1/products/search?q=running+shoes&brand=Nike&limit=5" \
  -H "Authorization: Bearer $BUYWHERE_API_KEY"

Search US products under $50

curl -s "https://api.buywhere.ai/v1/products/search?q=bluetooth+speaker&country_code=US&max_price=50&limit=5" \
  -H "Authorization: Bearer $BUYWHERE_API_KEY"

Compact mode for AI agents

curl -s "https://api.buywhere.ai/v1/products/search?q=laptop+stand&compact=true&limit=10" \
  -H "Authorization: Bearer $BUYWHERE_API_KEY"

Select specific fields

curl -s "https://api.buywhere.ai/v1/products/search?q=keyboard&fields=id,title,price,url&limit=5" \
  -H "Authorization: Bearer $BUYWHERE_API_KEY"

Get the best deals weekly

Price drops, new markets, and AI shopping tips — straight to your inbox.