# Mountain Project Climbing Route Scraper (`lulzasaur/mountainproject-scraper`) Actor

Scrape climbing routes from Mountain Project. Search by area, difficulty, and type. Extract grades, ratings, descriptions, GPS coordinates, and route details.

- **URL**: https://apify.com/lulzasaur/mountainproject-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Mountain Project Climbing Route Scraper

Scrape climbing routes from [Mountain Project](https://www.mountainproject.com), the largest rock climbing route database. Extract grades, ratings, descriptions, GPS coordinates, and detailed route information.

### Features

- **Search** for routes by difficulty, type, and area using the route finder
- **Direct scraping** of specific route URLs
- **Rich route data**: grade, type, pitches, length, elevation, first ascent
- **Star ratings** and vote counts
- **GPS coordinates** for each route
- **Location breadcrumbs** from area hierarchy
- **Description and protection** notes

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` to use route finder, `route` to scrape specific URLs |
| `area` | string | `""` | Area or state to search (e.g. "colorado"). Search mode only. |
| `routeType` | string | `rock` | Route type: rock, ice, mixed, boulder, aid |
| `difficultyMin` | string | `800` | Min difficulty value (800=5.0, 1000=5.4, 5500=5.10a) |
| `difficultyMax` | string | `12400` | Max difficulty value (12400=5.15d) |
| `startUrls` | array | `[]` | Direct route URLs to scrape. Route mode only. |
| `limit` | integer | `50` | Maximum number of routes to scrape |
| `proxyConfiguration` | object | - | Optional proxy settings |

### Output

Each result includes:

| Field | Description |
|-------|-------------|
| `name` | Route name |
| `grade` | Difficulty grade (YDS system, e.g. "5.10a") |
| `type` | Climbing type (Trad, Sport, Boulder, Aid, etc.) |
| `rating` | Average star rating (0-4 scale) |
| `votes` | Number of rating votes |
| `pitches` | Number of pitches |
| `length` | Route length (e.g. "3000 ft") |
| `elevation` | Commitment grade (e.g. "Grade VI") |
| `location` | Location breadcrumb array |
| `fa` | First ascent info |
| `description` | Full route description |
| `protection` | Protection/gear notes |
| `imageUrl` | Route photo URL |
| `latitude` | GPS latitude |
| `longitude` | GPS longitude |
| `sourceUrl` | Full route URL on Mountain Project |
| `scrapedAt` | ISO timestamp |

### Usage Examples

#### Search for rock routes in difficulty range

```json
{
    "mode": "search",
    "routeType": "rock",
    "difficultyMin": "1000",
    "difficultyMax": "5500",
    "limit": 100
}
```

#### Scrape specific routes

```json
{
    "mode": "route",
    "startUrls": [
        { "url": "https://www.mountainproject.com/route/105924807/the-nose" },
        { "url": "https://www.mountainproject.com/route/105833381/midnight-lightning" }
    ]
}
```

#### Search for boulder problems

```json
{
    "mode": "search",
    "routeType": "boulder",
    "difficultyMin": "800",
    "difficultyMax": "5500",
    "limit": 50
}
```

### How It Works

1. **Search mode**: Queries Mountain Project's route finder with difficulty, type, and sort parameters. Parses result pages for route links, then visits each route page for full data. Follows pagination automatically.

2. **Route mode**: Directly visits provided route URLs and extracts all available data from the SSR HTML.

3. **Data extraction**: On each route page, parses the server-rendered HTML for route details, star ratings, GPS coordinates, location breadcrumbs, description, and protection notes.

# Actor input Schema

## `mode` (type: `string`):

Search for routes via route finder, or scrape specific route URLs directly.

## `area` (type: `string`):

Area or state to search in (e.g. 'colorado', 'yosemite'). Used in search mode.

## `routeType` (type: `string`):

Type of climbing route to search for.

## `difficultyMin` (type: `string`):

Minimum difficulty value for route finder (e.g. '800' for 5.0, '1000' for 5.4, '5500' for 5.10a). See Mountain Project URL params.

## `difficultyMax` (type: `string`):

Maximum difficulty value for route finder (e.g. '5500' for 5.10a, '12400' for 5.15d).

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

Direct route URLs to scrape (e.g. https://www.mountainproject.com/route/105924807/the-nose). Used in route mode.

## `limit` (type: `integer`):

Maximum number of routes to scrape.

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

Optional proxy configuration.

## Actor input object example

```json
{
  "mode": "search",
  "area": "colorado",
  "routeType": "rock",
  "difficultyMin": "800",
  "difficultyMax": "12400",
  "limit": 50
}
```

# 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 = {
    "area": "colorado",
    "difficultyMin": "800",
    "difficultyMax": "12400"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/mountainproject-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 = {
    "area": "colorado",
    "difficultyMin": "800",
    "difficultyMax": "12400",
}

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/mountainproject-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 '{
  "area": "colorado",
  "difficultyMin": "800",
  "difficultyMax": "12400"
}' |
apify call lulzasaur/mountainproject-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lulzasaur/mountainproject-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/4lJ1gseUjfe08xLfR/builds/3gz3qmFV00CaS0TzO/openapi.json
