# Marktplaats · Search

Get product, price and seller data with Marktplaats · Search from Alexandria through one Spiral API key. Finding second-hand or new items for sale in the Netherlands: call with a query, then narrow with category_id/subcategory_id from categories, filters from filters, min_price/max_price, postcode/distance_km, condition or sort. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: E-commerce
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `marktplaats-nl/listings/search`
- Page: https://spiral.ai/tools/alexandria/marktplaats-nl/listings/search

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `page` | number | 1 to 200 | 1 | Result page, 30 listings per page; pass next_page from the previous result. The site serves at most max_page pages. |
| `sort` | one of | relevance, newest, oldest, price_asc, price_desc | — | Result order from the site's sort menu: relevance (default), newest or oldest listing date, price low to high, price high to low. |
| `query` | text |  | — | Search keywords as typed in the Marktplaats search box, e.g. 'fiets' or 'iphone 15'. Optional when category_id is given. |
| `filters` | JSON |  | — | Chosen filters as key/value pairs: keys are a returned filter's key, values one of its values[].value (or an array of them for multi_select filters). Example: {"delivery": "Verzenden", "offeredSince": "Een week", "storage": ["128 GB", "256 GB"]}. A key or value the search does not offer is rejected as invalid_input. |
| `postcode` | text |  | — | Dutch postcode, e.g. '1012 AB'. Results then carry their distance from it. Pattern: ^[1-9][0-9]{3} ?[A-Za-z]{2}$. |
| `condition` | list |  | — | Item condition (Nieuw, Zo goed als nieuw, Gebruikt, Refurbished, Niet werkend); several values match any of them. Same as filters {"condition": [...]}. |
| `max_price` | number | 0 to 100000000 | — | Highest price in EUR. |
| `min_price` | number | 0 to 100000000 | — | Lowest price in EUR. |
| `category_id` | number | 1 to 99999999 | — | Top-level category id from a previous result's categories (an entry with parent_id null), e.g. 445 Fietsen en Brommers. |
| `distance_km` | number | 1 to 300 | — | Only listings within this many km of postcode; needs postcode. |
| `subcategory_id` | number | 1 to 99999999 | — | Subcategory id from categories (an entry whose parent_id is category_id); needs category_id. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "marktplaats-nl/listings/search",
    "input": {
      "query": "<query>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=marktplaats-nl%2Flistings%2Fsearch

## Common questions

### Marktplaats · Search

**How much does Marktplaats · Search cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Marktplaats · Search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "marktplaats-nl/listings/search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Marktplaats · Search?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Marktplaats · Search?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

