# Surfmarket Scraper (`dadhalfdev/surfmarket-scraper`) Actor

Scrape Surfmarket.org shop products by category, search, or URL. Returns title, brand, price, SKU, stock, images, and product links.

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

## Pricing

from $3.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 🏄 Surfmarket Scraper

Pull live product data from [Surfmarket.org](https://www.surfmarket.org/en/) — Europe’s big surf / SUP / foil / skate shop — into clean CSV or JSON.

Pick a category, search by keyword, or paste a shop URL. Get titles, prices, stock flags, images, and direct product links.

### 💡 Perfect for...

- **Price monitoring:** Track shortboards, wetsuits, fins, and foil gear across the catalog.
- **Assortment research:** Compare brands like O’Neill, FCS, Futures, Tabou, Next, and more.
- **🤖 AI Agents:** Structured category/search input → product rows with URLs.
- **🔗 Workflows:** Feed Make, n8n, Zapier, or your own stack.

### ✨ Why you'll love this scraper

- 📂 **Browse by category** — surfboards, fins, wetsuits, SUP, foil, skate, windsurf, kite, and more.
- 🔎 **Keyword search** — find “oneill”, “fcs”, “tabou” across the shop.
- 🔗 **Paste a URL** — drop any Surfmarket category or product link.
- 💶 **Price filters** — min/max EUR.
- 📦 **Optional PDP enrich** — SKU, brand, description, and gallery images from the product page.
- 🌍 **Multi-locale** — English, Spanish, Portuguese, French, German, Italian, and more (`/en/shop`, `/pt/loja`, `/es/tienda`, …).

> **Note on language:** Locale changes the site UI and category URLs. Product descriptions are written by Surfmarket/brands and often stay Spanish (or English) even on `/pt/` or `/en/` — the site does not auto-translate catalog text.

### 📦 What's inside the data?

For every product you can get:

- **Product:** name, brand, SKU, short description, full description, category
- **Price:** price, original price (when on offer), currency (EUR)
- **Reviews:** rating (0–5) and review count when available
- **Availability:** in-stock flag and labels (New, Sale, No Stock, …)
- **Media & link:** image URL(s) and Surfmarket product URL
- **Variants:** size / measure options shown on the listing (when present)

### 🚀 Quick start

1. Choose a **locale** (default English).
2. Pick a **category** (or set a custom category path / search / start URL).
3. Optionally enable **Enrich from product page**, set **max items**, and click **Start**.

### 📥 Inputs

| Field | Description |
|--------|-------------|
| `start_urls` | Optional Surfmarket category or product URLs |
| `locale` | Site language / URL space (`en`→`/shop`, `pt`→`/loja`, `es`→`/tienda`, …) |
| `category` | Preset shop category |
| `category_path` | Custom slug under `/shop/` (e.g. `surfing/fins/fcs2`) |
| `search` | Keyword search |
| `price_min` / `price_max` | EUR price filters |
| `include_out_of_stock` | Keep sold-out products (default `true`) |
| `enrich_details` | Fetch each PDP for brand / description / rating / SKU / gallery (default `true`) |
| `max_items` | Cap results (1–2000, default `50`) |

**Example (category):**

```json
{
  "locale": "en",
  "category": "surfing/surfboards/shortboards",
  "max_items": 50
}
```

**Example (search + enrich):**

```json
{
  "locale": "en",
  "search": "oneill",
  "enrich_details": true,
  "max_items": 30
}
```

**Example (URL):**

```json
{
  "start_urls": [
    "https://www.surfmarket.org/en/shop/surfing/surfboards/shortboards/results,1-48"
  ],
  "max_items": 40
}
```

### 📤 Output example

```json
{
  "product_id": "next-easy-rider",
  "sku": "NEXT004",
  "name": "Next Surfboards Easy Rider",
  "brand": "Next Surfboards",
  "price": 439.95,
  "original_price": null,
  "currency": "EUR",
  "rating": null,
  "review_count": 0,
  "in_stock": true,
  "short_description": "Para olas medianas desde 5'10 hasta 6'8",
  "description": "Easy Rider Next. Diseñada para asegurarte un surf fácil y divertido.",
  "category": "Surfboards — Shortboards",
  "category_slug": "surfing/surfboards/shortboards",
  "image_url": "https://www.surfmarket.org/images/stories/virtuemart/product/next-easy-rider-68.jpg",
  "url": "https://www.surfmarket.org/en/shop/surfing/surfboards/shortboards/next-easy-rider-detail",
  "locale": "en"
}
```

# Actor input Schema

## `start_urls` (type: `array`):

Optional. Paste Surfmarket category or product URLs (e.g. https://www.surfmarket.org/en/shop/surfing/surfboards/shortboards/results,1-48). Overrides category when set.

## `locale` (type: `string`):

Site language path (/en/, /es/, …).

## `category` (type: `string`):

Shop category. You can also paste any category slug path in Category path.

## `category_path` (type: `string`):

Optional custom slug under /shop/, e.g. surfing/fins/fcs2 or foil/wings. Overrides the Category dropdown when set.

## `search` (type: `string`):

Optional keyword search (e.g. oneill, fcs, tabou).

## `price_min` (type: `number`):

Only include products at or above this price.

## `price_max` (type: `number`):

Only include products at or below this price.

## `include_out_of_stock` (type: `boolean`):

Keep products labelled as no stock / sold out.

## `enrich_details` (type: `boolean`):

Fetch each product page for brand, description, rating, SKU, and gallery images (recommended).

## `max_items` (type: `integer`):

Maximum products to return (1–2000).

## Actor input object example

```json
{
  "locale": "en",
  "category": "surfing/surfboards/shortboards",
  "include_out_of_stock": true,
  "enrich_details": true,
  "max_items": 50
}
```

# Actor output Schema

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

Table view of products using the dataset 'overview' view.

## `results` (type: `string`):

All items from the default dataset without view transformation.

# 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 = {
    "locale": "en",
    "category": "surfing/surfboards/shortboards",
    "category_path": "",
    "include_out_of_stock": true,
    "enrich_details": true,
    "max_items": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/surfmarket-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 = {
    "locale": "en",
    "category": "surfing/surfboards/shortboards",
    "category_path": "",
    "include_out_of_stock": True,
    "enrich_details": True,
    "max_items": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/surfmarket-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 '{
  "locale": "en",
  "category": "surfing/surfboards/shortboards",
  "category_path": "",
  "include_out_of_stock": true,
  "enrich_details": true,
  "max_items": 50
}' |
apify call dadhalfdev/surfmarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/surfmarket-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/LZP3LhzFaUikyy0r6/builds/nKQz4oYTjYp9K7Lo5/openapi.json
