# Krak Scraper

Retrieve business information from Krak by entering keywords, including business name, address, telephone number, email, and more.

- Template page: [https://www.octoparse.com/template/krak-scraper](https://www.octoparse.com/template/krak-scraper)
- Categories: Directories, Lead Generation
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from search-results pages, detail pages.

## Output

The current workflow extracts 19 fields, including `About`, `Address`, `Business_name`, `CVR_number`, `Category`, `Current_Page_URL`, `Detail_URL`, `Email`, `Gross_profit`, `Keyword`, `Latitude`, `Longitude`, `Municipality`, `Number_of_employees`, `Opening_hours`, `Postal_Code`, `Rate_of_return`, `Start_date`, `Telephone`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Keyword (up to 10,000 per run) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keyword (up to 10,000 per run)

Required. Enter a list of keywords to search on Krak. Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=5000.

## How to Use

### Krak Scraper – Template Guide

Collects business and contact information from [Krak](https://www.krak.dk/) search results.

**Pricing:** Free (no per‑line fee; Octoparse plan/resource limits may apply).

---

#### Output Fields

- `Keyword`
- `Current_Page_URL`
- `Detail_URL`
- `Business_name`
- `Address`
- `Latitude`
- `Longitude`
- `Category`
- `Postal_Code`
- `Municipality`
- `Opening_hours`
- `Telephone`
- `Email`
- `About`
- `Gross_profit`
- `Rate_of_return`
- `Number_of_employees`
- `Start_date`
- `CVR_number`

---

#### Input

- **Keyword** (Required) – One or more search terms. Up to **10,000 entries** per run.

---

#### How to Use

1. Open Krak Scraper and click **Try it!**.
2. Enter keywords in the **Keyword** field.
3. Choose a local or cloud run in Octoparse and start the task.
4. Export the data (fields include `Business_name`, `Current_Page_URL`, `Address`, etc.).

---

#### Tips

- Start with a focused keyword to review results before scaling up.
- Keep the `Keyword` field in your export to trace each row back to its search input.

## Notes

If the template doesn't work well, feel free to report it to us with the parameters you test We also provide managed template/crawler customization services. If you're interested, please contact template@octoparse.com with your project details

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [eBay Listing Page Scraper (by keyword)](https://www.octoparse.com/template/ebay-product-list-scraper-by-keyword)
- [eBay Scraper](https://www.octoparse.com/template/ebay-scraper)
- [Bic Camera Search Results Scraper](https://www.octoparse.com/template/bic-camera-search-results-scraper)
- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)

## Input Schema

```json
{
  "title": "Krak Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keyword": {
      "title": "Keyword (up to 10,000 per run)",
      "description": "Enter a list of keywords to search on Krak.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keyword"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keyword": [
    "school"
  ]
}
```

Example 2

```json
{
  "keyword": [
    "[\"school\"]"
  ]
}
```

Example 3

```json
{
  "keyword": [
    "heating and cooling Atlanta GA"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "About": {
      "type": "string",
      "description": ""
    },
    "Address": {
      "type": "string",
      "description": ""
    },
    "Business_name": {
      "type": "string",
      "description": ""
    },
    "CVR_number": {
      "type": "string",
      "description": ""
    },
    "Category": {
      "type": "string",
      "description": ""
    },
    "Current_Page_URL": {
      "type": "string",
      "description": ""
    },
    "Detail_URL": {
      "type": "string",
      "description": ""
    },
    "Email": {
      "type": "string",
      "description": ""
    },
    "Gross_profit": {
      "type": "string",
      "description": ""
    },
    "Keyword": {
      "type": "string",
      "description": ""
    },
    "Latitude": {
      "type": "string",
      "description": ""
    },
    "Longitude": {
      "type": "string",
      "description": ""
    },
    "Municipality": {
      "type": "string",
      "description": ""
    },
    "Number_of_employees": {
      "type": "string",
      "description": ""
    },
    "Opening_hours": {
      "type": "string",
      "description": ""
    },
    "Postal_Code": {
      "type": "string",
      "description": ""
    },
    "Rate_of_return": {
      "type": "string",
      "description": ""
    },
    "Start_date": {
      "type": "string",
      "description": ""
    },
    "Telephone": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Krak Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "About": "",
  "Address": "",
  "Business_name": "",
  "CVR_number": "",
  "Category": "",
  "Current_Page_URL": "https://www.krak.dk/",
  "Detail_URL": "",
  "Email": "",
  "Gross_profit": "",
  "Keyword": "",
  "Latitude": "",
  "Longitude": "",
  "Municipality": "",
  "Number_of_employees": "",
  "Opening_hours": "",
  "Postal_Code": "",
  "Rate_of_return": "",
  "Start_date": "",
  "Telephone": ""
}
```

Example 2

```json
{
  "About": "",
  "Address": "Seminarievej 239681 RanumRuteplan",
  "Business_name": "Ranum Efterskole",
  "CVR_number": "27763227",
  "Category": "Efterskole",
  "Current_Page_URL": "https://www.krak.dk/school/firmaer/2",
  "Detail_URL": "https://www.krak.dk/ranum+efterskole+ranum/67131292/firma",
  "Email": "",
  "Gross_profit": "-",
  "Keyword": "[\"school\"]",
  "Latitude": "56.8986092",
  "Longitude": "9.2341051}",
  "Municipality": "Kommune",
  "Number_of_employees": "138",
  "Opening_hours": "[{\"dayOfWeek\":[\"https://schema.org/Monday\",\"https://schema.org/Tuesday\",\"https://schema.org/Wednesday\",\"https://schema.org/Thursday\",\"https://schema.org/Friday\"]",
  "Postal_Code": "9681",
  "Rate_of_return": "-",
  "Start_date": "",
  "Telephone": "+4596664400"
}
```

Example 3

```json
{
  "About": "",
  "Address": "",
  "Business_name": "",
  "CVR_number": "",
  "Category": "",
  "Current_Page_URL": "https://www.krak.dk/heating+and+cooling+atlanta+ga/firmaer?spc=true&spcs=healing%20and%20cooling%20atlantia%20ga&nohit=true#gsc.tab=0&gsc.q=heating%20and%20cooling%20atlanta%20ga",
  "Detail_URL": "",
  "Email": "",
  "Gross_profit": "",
  "Keyword": "heating and cooling atlanta ga",
  "Latitude": "",
  "Longitude": "",
  "Municipality": "",
  "Number_of_employees": "",
  "Opening_hours": "",
  "Postal_Code": "",
  "Rate_of_return": "",
  "Start_date": "",
  "Telephone": ""
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "krak-scraper",
  "taskName": "Krak Scraper",
  "parameters": "{\"keyword\":[\"school\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"keyword\":[\"school\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "krak-scraper",
        "taskName": "Krak Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "krak-scraper",
  "taskName": "Krak Scraper",
  "parameters": "{\"keyword\":[\"school\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `krak-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/krak-scraper.json)
- [Manifest](https://www.octoparse.com/templates/krak-scraper-manifest.json)
