# OBI — 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 hardware and home improvement products at OBI Germany stores and instantly view detailed product information along with real-time stock availability at specific locations near you. Find exactly what you need and confirm it's in stock before making the trip to your local store.

**Category:** E-commerce | **Website:** [www.obi.de/](https://www.obi.de/) | **Docs:** [parse.bot/marketplace/004322ab-eb82-424b-9cdb-ccbd4785f929/obi-de-api](https://parse.bot/marketplace/004322ab-eb82-424b-9cdb-ccbd4785f929/obi-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-obi-de-api-004322ab/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### check_store_availability

Check per-store branch-level stock for a product near a German postal code. Returns the 10 nearest OBI stores with their stock quantity, reserve-and-collect eligibility, address, distance, and opening hours. Also reports whether home delivery is available to that postal code with seller ID, delivery cost, and estimated delivery date.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_id` | string | Yes | Numeric OBI article number (e.g. '9540337'). Obtained from search_products results. |
| `postal_code` | string | Yes | 5-digit German postal code (PLZ), e.g. '04103' for Leipzig. |

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

### get_product_detail

Retrieve full product details by OBI article number. Returns pricing, description, brand, energy class, images, rating, schema.org availability status, and marketplace/seller identification. The article_id comes from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_id` | string | Yes | Numeric OBI article number (e.g. '9540337'). Obtained from search_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-obi-de-api-004322ab/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"article_id":"<string>"}'
```

### search_products

Full-text search across the OBI product catalog. Returns matching products with article IDs, names, URLs, and marketplace indicators. Results are auto-iterated; the SDK walks all pages. Each product exposes an article_id usable with get_product_detail and check_store_availability. Marketplace status (is_marketplace, merchant_name) is null in search results; use get_product_detail for definitive seller identification.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword(s) in German, e.g. 'mobiles Klimagerät', 'Ventilator', 'Klimaanlage'. |

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