# Dahuasecurity — 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.

> Browse Dahua’s product category tree and navigation structure, including major product families and their links and images.

**Category:** E-commerce | **Website:** [dahuasecurity.com/](https://dahuasecurity.com/) | **Docs:** [parse.bot/marketplace/3755ca00-fb63-4dfc-8cb2-d5df917c3392/dahuasecurity-com-api](https://parse.bot/marketplace/3755ca00-fb63-4dfc-8cb2-d5df917c3392/dahuasecurity-com-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-dahuasecurity-com-api-3755ca00/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Fetch the complete navigation category tree from Dahua's website. Returns top-level categories (Products, Solutions, Support) with nested children representing the full product and solution hierarchy. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dahuasecurity-com-api-3755ca00/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Search for Dahua security products by keyword. Returns paginated results including product models, descriptions, images, datasheets, manuals, firmware, and drawings. Each page returns up to 6 results. Product names may contain HTML highlight tags around the matched keyword.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Search keyword for product lookup (e.g. 'IPC', 'NVR', 'PTZ', 'camera') |
| `page` | integer | No | Page number for pagination. Each page returns up to 6 results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dahuasecurity-com-api-3755ca00/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","page":"<integer>"}'
```
