# Megekko (Netherlands) — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and browse products from Megekko's electronics catalog, getting detailed specifications, pricing, and category information to compare items and find exactly what you're looking for. Explore the full product hierarchy to discover items across all categories and subcategories available on the store.

**Category:** E-commerce | **Website:** [megekko.nl/](https://megekko.nl/) | **Docs:** [parse.bot/marketplace/796c58bb-22fa-4761-828e-e7b43dea5d79/megekko-nl-api](https://parse.bot/marketplace/796c58bb-22fa-4761-828e-e7b43dea5d79/megekko-nl-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-megekko-nl-api-796c58bb/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_products

List products in a leaf-level category with pagination (50 items per page). Requires a category path discoverable via get_category_tree. Intermediate/parent paths may return empty results. Products include name, price, availability, and detail URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_path` | string | Yes | Leaf-level category path from the URL, without leading slash (e.g. 'Computer/Componenten/Videokaarten/Nvidia-Videokaarten'). Use get_category_tree to discover valid paths. |
| `page` | integer | No | Page number for pagination (1-indexed). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-megekko-nl-api-796c58bb/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_path":"<string>","page":"<integer>"}'
```

### get_category_tree

Retrieve the full category hierarchy from megekko.nl's main navigation. Returns top-level categories each with a URL path and an array of subcategories. Use subcategory paths as input to get_category_products.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-megekko-nl-api-796c58bb/get_category_tree \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Fetch full product detail page including technical specifications grouped by category, user reviews, comparable product suggestions, and availability. Requires the full megekko.nl product URL obtainable from search_products or get_category_products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the product page on megekko.nl (e.g. 'https://www.megekko.nl/product/1963/297161/Nvidia-Videokaarten/Gigabyte-GeForce-RTX-5070-WINDFORCE-OC-12G-Videokaart'). Obtainable from search_products results[*].url or get_category_products results[*].url. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-megekko-nl-api-796c58bb/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_products

Full-text search over megekko.nl product catalog. Returns matching products with pricing, availability, category, and direct URLs. Results are ordered by relevance. A single request returns all matches (no server-side pagination).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword (e.g. 'RTX 4090', 'Intel Core i9', 'Samsung SSD'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-megekko-nl-api-796c58bb/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
