# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-thuisbezorgd-nl-api-27b84cb3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-thuisbezorgd-nl-api-27b84cb3/get_address_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-thuisbezorgd-nl-api-27b84cb3/get_restaurant_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-thuisbezorgd-nl-api-27b84cb3/search_addresses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-thuisbezorgd-nl-api-27b84cb3/search_restaurants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cuisine":"<string>","latitude":"<string>","limit":"<integer>","longitude":"<string>","service_type":"<string>"}'
```
