# Thuisbezorgd — 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 for restaurants on Thuisbezorgd.nl by location and cuisine type. Retrieve delivery times, ratings, fees, and menu details for restaurants across the Netherlands, with support for address lookup and cuisine filtering.

**Category:** Food & Dining | **Website:** [thuisbezorgd.nl/](https://thuisbezorgd.nl/) | **Docs:** [parse.bot/marketplace/27b84cb3-9f04-436b-903a-750169ec7736/thuisbezorgd-nl-api](https://parse.bot/marketplace/27b84cb3-9f04-436b-903a-750169ec7736/thuisbezorgd-nl-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/thuisbezorgd/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get address detail

Resolve a place ID (from search_addresses) into full address detail including latitude/longitude coordinates. The coordinates can then be used with search_restaurants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `place_id` | string | Yes | Place ID from search_addresses results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/thuisbezorgd/get-address-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"place_id":"<string>"}'
```

### Get restaurant info

Get detailed restaurant operational information including delivery ETA range, star ratings, delivery fee bands, and availability status. Requires both the restaurant_id (from search_restaurants) and the delivery coordinates.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `latitude` | string | Yes | Latitude of delivery location (e.g., '52.3676') |
| `longitude` | string | Yes | Longitude of delivery location (e.g., '4.9041') |
| `restaurant_id` | string | Yes | Restaurant ID from search_restaurants results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/thuisbezorgd/get-restaurant-info \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"latitude":"<string>","longitude":"<string>","restaurant_id":"<string>"}'
```

### Search addresses

Autocomplete address search for the Netherlands. Returns address suggestions with place IDs usable in get_address_detail to resolve coordinates. Paginates as a single page up to the limit.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results (1-20) |
| `query` | string | Yes | Address search query (e.g., 'Amsterdam', 'Damrak 1') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/thuisbezorgd/search-addresses \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```

### Search restaurants

Search for restaurants delivering to a given latitude/longitude. Returns restaurant listings with ratings, cuisines, delivery ETA, and fees. Optionally filter by cuisine name. Results are a single page capped by limit.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cuisine` | string | No | Filter by cuisine type (e.g., 'Indian', 'Pizza', 'Chinese') |
| `latitude` | string | Yes | Latitude of the delivery location (e.g., '52.3676') |
| `limit` | integer | No | Maximum number of restaurants to return |
| `longitude` | string | Yes | Longitude of the delivery location (e.g., '4.9041') |
| `service_type` | string | No | Service type filter |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/thuisbezorgd/search-restaurants \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cuisine":"<string>","latitude":"<string>","limit":"<integer>","longitude":"<string>","service_type":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.