# HTTP API

Read-only JSON endpoints, no key, CORS open, cached for about a minute. For anything beyond reading the catalogue, use the [MCP server](/agents/mcp).

## Search and list products

`GET https://begad.ae/api/agent/catalog`

| Parameter | Description |
|---|---|
| `q` | Search words, English or Arabic (the store's own search) |
| `category` | Category slug or id (includes subcategories) |
| `brand` | Brand slug or id |
| `min_price`, `max_price` | AED |
| `on_sale` | `1` for discounted products only |
| `sort` | `relevance`, `price_low`, `price_high`, `newest`, `biggest_discount` |
| `limit` | 1-50, default 20 |
| `offset` | For the next page |

```bash
curl -s 'https://begad.ae/api/agent/catalog?q=air%20fryer&sort=price_low&limit=5'
```

## One product

`GET https://begad.ae/api/agent/products/{id or slug}`

## Current prices for many products

`GET https://begad.ae/api/agent/prices?ids=123,456` (up to 200 ids). With `brand=<slug>&details=1`: every product of one brand with names, photos and links.

## Other machine-readable files

- Product feed (Google Merchant format): [https://begad.ae/product-feed.xml](https://begad.ae/product-feed.xml)
- Sitemap: [https://begad.ae/sitemap.xml](https://begad.ae/sitemap.xml)
- [llms.txt](https://begad.ae/llms.txt) and [llms-full.txt](https://begad.ae/llms-full.txt)
- MCP server description: [https://begad.ae/.well-known/mcp.json](https://begad.ae/.well-known/mcp.json)

## Cart link

`https://begad.ae/en/cart?add_items=ID:QTY,ID:QTY&checkout=1` (Arabic: `/ar/cart`). A Begad SKU works too: `add_sku=SKU:QTY`.
