# HORNBACH — 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 building and home improvement products at HORNBACH Germany and instantly access detailed pricing, delivery information, and real-time stock availability across all store locations. Check which items are in stock near you and get complete product specifications to make informed purchasing decisions.

**Category:** E-commerce | **Website:** [www.hornbach.de/](https://www.hornbach.de/) | **Docs:** [parse.bot/marketplace/63624d12-24c5-4f21-bef2-bf13d855c2dd/hornbach-de-api](https://parse.bot/marketplace/63624d12-24c5-4f21-bef2-bf13d855c2dd/hornbach-de-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-hornbach-de-api-63624d12/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### check_store_availability

Check product availability at a specific HORNBACH store. Provide either a store_id directly or a German postal_code to find the nearest store. Returns in-store reservation status, online ordering status with merchant identity, store address details, and delivery information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_number` | string | Yes | HORNBACH article number to check (e.g. '10332618'). Obtain from search_products results. |
| `postal_code` | string | No | German postal code (PLZ) to find the nearest HORNBACH store (e.g. '04109' for Leipzig). Used only when store_id is not provided. |
| `store_id` | string | No | HORNBACH store ID (e.g. '540' for Leipzig, '638' for Leipzig Alte Messe). If omitted, postal_code is used to find the nearest store. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hornbach-de-api-63624d12/check_store_availability \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"article_number":"<string>","postal_code":"<string>","store_id":"<string>"}'
```

### get_product_detail

Get full product detail by article number including name, description, price, delivery/shipping information, and availability at the selected store. Optionally specify a store_id to check availability at a specific branch.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_number` | string | Yes | HORNBACH article number (e.g. '12489804'). Obtain from search_products results. |
| `store_id` | string | No | HORNBACH store ID to check in-store availability (e.g. '540' for Leipzig). Obtain from check_store_availability or omit for a default store. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hornbach-de-api-63624d12/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"article_number":"<string>","store_id":"<string>"}'
```

### search_products

Search HORNBACH products by keyword. Returns a list of matching products with name, price, article number, availability, and merchant information. The site may redirect keyword searches to a best-matching category page; results reflect the server's interpretation of the query.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword for products (e.g. 'mobiles Klimagerät', 'Heizlüfter'). |

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