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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/get_company_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/get_person_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/get_who_called_overview \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/search_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/search_persons \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-krak-dk-api-5eda22e8/who_called \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone":"<string>"}'
```
