# Hastnet.se Horse Scraper (`rainminer/hastnet-se-scraper`) Actor

Extract horses for sale on Hastnet.se for Swedish dealers and buyers. Each result includes price in SEK, breed, age, height, discipline, location, and photos from public classifieds. No login required. Export JSON, CSV, or Excel, schedule monitoring, and pull the dataset through the Apify API.

- **URL**: https://apify.com/rainminer/hastnet-se-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** E-commerce
- **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 horses

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?

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

## Hastnet.se horses for sale

![Horses for sale on Hastnet.se](https://www.hastnet.se/images/home/homepage-banner.9534efa21f.webp)

### What does Hastnet.se Horse Scraper do?

**Hastnet.se Horse Scraper** extracts **horses for sale** from [Hastnet.se](https://www.hastnet.se/till-salu/hastar/), the public classifieds site Swedish dealers and riders use to buy and sell horses. Paste a for-sale search URL, a discipline page, a region page, or a single ad, and download structured horse data with **price in SEK**, breed, age, height, discipline, location, and photos. No account login is required.

### Why scrape Hastnet.se horses?

Swedish horse buyers and dealers lose time opening ad after ad to compare price, size, and discipline. A dataset makes that comparison instant.

- **Dealer inventory** — Watch new horses for sale in dressage, show jumping, eventing, or a county you cover.
- **Buyer shortlists** — Filter by age, height in centimetres, breed, and asking price before you travel to a viewing.
- **Price checks** — Compare SEK asking prices for the same breed and discipline across Sweden.
- **Regional sourcing** — Pull horses around Stockholm, Skåne, Västra Götaland, or any other public location page.
- **Photo review** — Open the primary photo and the full gallery without clicking through every ad.
- **Stable matching** — Match height, age, and gender to the rider you are buying for.
- **Breed monitoring** — Track warmbloods, Icelandic horses, ponies, and other breeds as they are listed.
- **Competition horses** — Collect show jumping, dressage, and eventing ads in separate runs.
- **Market snapshots** — Schedule a daily run and see which horses are still for sale.
- **Team handoff** — Export JSON, CSV, or Excel for a spreadsheet, CRM, or internal buyer list.
- **API access** — Run the scraper from the Apify API, Zapier, or Make when a new search should land in your tools.
- **No login** — The Actor reads the same public ads a visitor sees on Hastnet.se.

Apify adds scheduling, monitoring, proxies if you need them, and dataset export on top of the scrape.

### What data can you extract from Hastnet.se?

| Field | Description |
| --- | --- |
| title | Ad headline |
| price | Asking price as a number in SEK |
| priceText | Price as shown, for example 250 000 kr |
| breed | Breed, such as Connemara or Varmblod |
| age | Age in years |
| birthYear | Year of birth |
| heightCm | Height at the withers in centimetres |
| gender | Hingst, sto, or valack |
| discipline | Riding discipline, such as dressyr, hoppning, or fälttävlan |
| dressageLevel | Dressage level when the ad states one |
| jumpingLevel | Jumping height when the ad states one |
| origin | Country of origin |
| location | Town and region |
| horseName | Horse name when the seller published it |
| description | Public ad text |
| imageUrl | Primary photo |
| imageUrls | Photo gallery |
| sellerName | Public seller name on the ad |
| url | Link to the Hastnet.se ad |

### How to scrape Hastnet.se horses for sale

1. Open **Hastnet.se Horse Scraper** in Apify Console.
2. Add one or more **Start URLs**. A full for-sale search looks like `https://www.hastnet.se/till-salu/hastar/`.
3. Set **Maximum items** to the number of horses you want per start URL.
4. Leave **Proxy configuration** disabled unless Hastnet.se blocks your IP.
5. Click **Start** and download the dataset as JSON, CSV, Excel, or HTML.

#### Supported start URL formats

- All horses for sale: `https://www.hastnet.se/till-salu/hastar/`
- Dressage: `https://www.hastnet.se/till-salu/hastar/dressyr/`
- Show jumping: `https://www.hastnet.se/till-salu/hastar/hoppning/`
- A region, for example Stockholm County: `https://www.hastnet.se/till-salu/hastar/nara-mig/sverige/stockholms-lan/`
- One horse ad: `https://www.hastnet.se/annonser/rxvrkmcdb-falttavlan-hopphast-med-hjarta-av-guld-skara/`

The Actor follows later result pages on its own until it reaches **Maximum items** or the last page of that search.

### How much does it cost to scrape Hastnet.se?

Hastnet.se Horse Scraper uses pay per result. Each horse exported to the dataset is one result. On the free plan that is **$1.99 per 1,000 horses** ($0.00199 per horse). Paid plans cost less, down to **$1.49 per 1,000** on the higher tiers. Starting a run costs **$0.00005**. Platform usage is included in the per-horse price, so you do not pay a separate compute bill for a normal run.

A test with the default of 5 horses confirms the fields for a few cents. A 1,000-horse export stays at the per-thousand rate above. Cap a run with **Maximum items** when you want a hard ceiling.

### Output example

```json
{
  "id": "9b32a223-8ee1-41f3-9ea3-7ba5799dc441",
  "title": "Fälttävlan/hopphäst med hjärta av guld",
  "horseName": "Sam",
  "price": 250000,
  "currency": "SEK",
  "priceText": "250 000 kr",
  "breed": "Övriga",
  "gender": "Valack",
  "age": 8,
  "birthYear": 2018,
  "heightCm": 170,
  "discipline": "Fälttävlan",
  "location": "Skara, Västra Götalands län",
  "region": "Västra Götalands län",
  "country": "Sverige",
  "imageUrl": "https://assets.hastnet.se/originalImages/09370f58-cac3-42e8-8294-bcea8bc1feaa/originalImage.jpeg",
  "url": "https://www.hastnet.se/annonser/rxvrkmcdb-falttavlan-hopphast-med-hjarta-av-guld-skara/"
}
```

You can download the dataset extracted by Hastnet.se Horse Scraper in JSON, CSV, Excel, or HTML.

### Is it legal to scrape Hastnet.se?

This Actor collects publicly visible horse ads — the same information any visitor can read without logging in. It does not bypass login, access private messages, or collect account credentials. Results can still contain personal data that sellers chose to publish, such as a first name or a phone number written in the ad text. Personal data is protected by the GDPR in the European Union and by other laws elsewhere. Scrape only when you have a legitimate reason, and confirm that your use complies with Hastnet.se's terms and applicable law. If you are unsure, ask your legal counsel.

### Tips

- Use one start URL per discipline or region when you want a clean export for that search.
- Keep **Maximum items** small for a first test, then raise it for a full county or discipline.
- Schedule the same search every morning if you want newly listed horses.
- Leave the proxy off. Turn it on only if a run starts failing.

### FAQ

#### Does Hastnet.se Horse Scraper need a Hastnet account?

No. It reads public for-sale ads only.

#### Can I scrape dressage and show jumping separately?

Yes. Use the dressage or show jumping search URL as the start URL.

#### What if a horse has no photo or no price?

Those fields are empty when the seller did not publish them. Other fields from the same ad are still saved.

#### Where do I report a problem?

Open the Issues tab on this Actor. Feedback about missing fields or a broken search URL helps keep the scraper maintained.

### Image Credit

Image credit: [hastnet.se](https://www.hastnet.se/)

# Actor input Schema

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

Hastnet.se horse search or individual ad URLs (for example https://www.hastnet.se/till-salu/hastar/ or a single /annonser/ link).

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

Maximum number of horse listings to return per start URL.

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

Proxy settings. Leave disabled unless Hastnet.se blocks your IP.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.hastnet.se/till-salu/hastar/"
    }
  ],
  "maxItems": 5,
  "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.hastnet.se/till-salu/hastar/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/hastnet-se-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.hastnet.se/till-salu/hastar/" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/hastnet-se-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.hastnet.se/till-salu/hastar/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rainminer/hastnet-se-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/hastnet-se-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/qUnOHDyDwdkZKJRSH/builds/T78abBTpUohefiQnw/openapi.json
