# Golfbox Rankings Scraper (`rainminer/golfbox-dk-scraper`) Actor

Extract Birdie Points golf rankings from Golf.dk. Get player positions, points, handicap, and region, or switch to the club ranking for member counts and average Birdie Points — no login. Schedule runs, export JSON, CSV, or Excel, and pull the data through the Apify API.

- **URL**: https://apify.com/rainminer/golfbox-dk-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** Sports, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 ranking row scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Golfbox Rankings Scraper do?

**Golfbox Rankings Scraper** extracts **Birdie Points golf rankings** from [Golf.dk](https://www.golf.dk/) — the Danish Golf Union's public ranking lists powered by GolfBox. Paste `https://www.golf.dk/sektionsside/dgu-ranglister` and export the **player ranking** (position, points, handicap, region, club) or the **club ranking** (`?type=club`: club name, members, average Birdie Points) as JSON, CSV, or Excel, **without writing any code**.

The Actor reads the **public JSON API** behind the golf.dk front end, so it returns clean, structured records reliably and does not need a browser or proxy.

### Why scrape Golf.dk rankings?

- **Golf analytics** — Track Danish player rankings and Birdie Points over the season.
- **Club benchmarking** — Compare average Birdie Points and member counts across all Danish golf clubs.
- **Player research** — Follow players by handicap band and region.
- **Data pipelines** — Feed rankings into dashboards or research datasets.
- **Apify platform** — Schedule runs, export JSON/CSV/Excel, monitor failures, and integrate via API.

### What data can you extract?

| Field               | Player ranking                  | Club ranking            |
| ------------------- | ------------------------------- | ----------------------- |
| position            | Rank position                   | —                       |
| name                | Player name                     | Club name               |
| points              | Birdie Points                   | —                       |
| hcp                 | Handicap                        | —                       |
| region              | Danish region                   | —                       |
| clubName            | —                               | Club name               |
| clubMembers         | —                               | Registered members      |
| clubAveragePoints   | —                               | Average Birdie Points   |
| listType            | `player`                        | `club`                  |

### Input

| Input            | Description                                                                        |
| ---------------- | ---------------------------------------------------------------------------------- |
| **Start URLs**   | `https://www.golf.dk/sektionsside/dgu-ranglister` (player ranking) or the same URL with `?type=club` (club ranking). A `?page=N` start value is honored. |
| **Max rows**     | Maximum ranking rows per start URL (default 100)                                    |
| **Proxy**        | Datacenter traffic works by default                                                 |

### Tips

- Run **two start URLs** in one run: one for players, one with `?type=club` for clubs.
- The ranking updates **daily** — schedule runs to snapshot movements.
- Export to **CSV or Excel** directly from the dataset view.

### Pricing

This Actor uses **pay-per-event pricing**: you pay only for the ranking rows actually returned, one row per charged event. See the **Pricing** tab on the Store for current prices.

### Support

Open an issue in the Actor's issue tracker, or contact `rainminer` on the Apify Store.

# Actor input Schema

## `startUrls` (type: `array`):

Golf.dk URLs: https://www.golf.dk/sektionsside/dgu-ranglister scrapes the player ranking list; add ?type=club for the club ranking list. A ?page=N start value is honored.

## `maxItems` (type: `integer`):

Maximum number of ranking rows to return per start URL.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. The public golf.dk API answers datacenter traffic by default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.golf.dk/sektionsside/dgu-ranglister"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.golf.dk/sektionsside/dgu-ranglister"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/golfbox-dk-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.golf.dk/sektionsside/dgu-ranglister" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/golfbox-dk-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.golf.dk/sektionsside/dgu-ranglister"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rainminer/golfbox-dk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/golfbox-dk-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MG0fSqpYjIqaQ7am4/builds/qtfdlfuwKkBHIrcc0/openapi.json
