# Krak — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 businesses and people in Denmark, retrieve detailed information like contact details and company profiles, and look up phone numbers to identify callers or report spam statistics. Find what you're looking for in the Danish business and person directory with instant access to company details, personal information, and caller identification data.

**Category:** Business Directories | **Website:** [krak.dk/](https://krak.dk/) | **Docs:** [parse.bot/marketplace/5eda22e8-c358-4efe-ac6b-894633080576/krak-dk-api](https://parse.bot/marketplace/5eda22e8-c358-4efe-ac6b-894633080576/krak-dk-api)

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

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/krak/`
**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 company details

Get full details for a company including contact info, opening hours, description, categories, and geographic location. Requires the company ID and slug from search_companies results. Returns structured data extracted from the company's page on krak.dk.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Company ID from search_companies results |
| `slug` | string | Yes | Company slug from search_companies results |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/krak/get-company-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### Get person details

Get full details for a person including address, phone, and geographic coordinates. Requires the person ID and slug from search_persons results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Person ID from search_persons results |
| `slug` | string | Yes | Person slug from search_persons results |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/krak/get-person-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### Get who called overview

Get the 'Hvem Ringede' overview page with the most searched and recently searched phone numbers on krak.dk. No parameters required. Returns two lists of phone numbers with their search counts or timestamps.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/krak/get-who-called-overview \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search companies

Full-text search for companies/businesses by name or keyword on krak.dk. Returns paginated results (25 per page) with basic info: name, ID, slug, URL, address, and phone. Address and phone may be empty for some listings. Use get_company_details with the returned id and slug for full information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword or company name |

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

### Search persons

Search for persons by name on krak.dk. Returns paginated results (25 per page) with basic info: name, ID, slug, URL, address, and phone. Use get_person_details with the returned id and slug for full information including geographic coordinates.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Person name to search for |

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

### Suggestions

Get search suggestions/autocomplete results for a query from krak.dk. Returns matching suggestions with type (companies/persons) and relative URL. Useful for building search-ahead interfaces or discovering valid search terms.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query for autocomplete |

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

### Who called

Look up reports and search statistics for a phone number on krak.dk's 'Hvem Ringede' feature. Returns how many times the number has been searched (this week and total) and any spam/telemarketing reports filed by users.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `phone` | string | Yes | Phone number to look up (Danish format, e.g. '70200000') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/krak/who-called \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"phone":"<string>"}'
```

## Next steps

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