# Bilweb.se Scraper - Swedish Car Listings (`studio-amba/bilweb-scraper`) Actor

Scrape car listings from Bilweb.se, a Swedish car marketplace. Used and new cars with price, mileage, model year, fuel, power, VIN, registration number, equipment, photos and dealer. No login needed.

- **URL**: https://apify.com/studio-amba/bilweb-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** 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.20 / 1,000 result scrapeds

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

## Bilweb.se Scraper

Scrape car listings from Bilweb.se, a Swedish car marketplace where dealers list used and new cars. Each vehicle comes back as one structured row: price in Swedish kronor, mileage, model year, fuel type, power, transmission, body type, colour, VIN, registration number, equipment, photos and the selling dealer.

### Why use this actor?

- Price, mileage, model year, fuel type, power in horsepower and transmission on every vehicle
- VIN and registration number when the dealer publishes them
- Technical data such as engine size, CO2 emissions, fuel consumption, top speed, weight, doors and seats
- Inspection dates for cars that have had a Swedish inspection
- Equipment list and the full dealer description
- Dealer name and the dealer's page on Bilweb
- All photos of the vehicle
- Filter by make, county, model year and price
- Runs on plain HTTP, no login and no browser, so a run of 100 vehicles finishes in about a minute

### How to scrape Bilweb.se data

1. Open the actor on Apify and press Try for free.
2. Type a make in the Make field if you want only one, for example `volvo`. Leave it empty for all makes.
3. Type a county if you want only one region, for example `stockholms-lan`. Leave it empty for all of Sweden.
4. Set a model year range and a price range if you need one.
5. Set Max results. The default is 50, the maximum is 20,000 per run.
6. Press Start. The vehicles appear in the Output tab and can be exported as JSON, CSV, Excel or through the API.

Example input for Volvo cars in Stockholm county from 2020 or later:

```json
{
  "make": "volvo",
  "county": "stockholms-lan",
  "minYear": 2020,
  "maxResults": 100
}
```

Example input for cars under 150,000 SEK across Sweden:

```json
{
  "maxPrice": 150000,
  "maxResults": 200
}
```

### Input

| Field | Type | Description |
|---|---|---|
| `make` | string | Make as it appears in the listing address, for example `volvo`, `volkswagen`, `bmw`, `mercedes-benz`. Empty means all makes. |
| `county` | string | County (län) as it appears in the listing address, for example `stockholms-lan`, `skane-lan`. Several values can be separated with commas. Empty means all of Sweden. |
| `minYear`, `maxYear` | integer | Model year range. |
| `minPrice`, `maxPrice` | integer | Price range in Swedish kronor. |
| `maxResults` | integer | Maximum vehicles per run, 1 to 20,000. Default 50. |
| `proxyConfiguration` | object | Apify proxy settings. The automatic pool is the default. |

### Output

Each row has these fields. A field the listing does not state is `null`.

| Field | Description |
|---|---|
| `listingId` | Bilweb vehicle id |
| `url` | Vehicle page |
| `title` | Listing title |
| `make`, `model`, `variant` | Make, model and the variant name |
| `modelYear`, `firstRegistered` | Model year and date of first registration |
| `price`, `currency` | Price as a number and the currency (SEK) |
| `priceType` | `total` for a purchase price, `monthly` when the dealer's lease or loan campaign lists the monthly cost as the price |
| `condition` | `new` or `used` |
| `mileageKm` | Mileage in kilometres |
| `fuelType`, `engineType` | Fuel (petrol, diesel, electric) and the engine type (hybrid, electric) |
| `powerHp` | Engine power in horsepower |
| `transmission` | Manual or automatic |
| `bodyType`, `color` | Body type and colour |
| `vin`, `registrationNumber` | Chassis number and Swedish registration plate |
| `owners` | Number of previous owners |
| `engineCc`, `euroClass` | Engine size in cm3 and Euro emission class |
| `co2GramsPerKm`, `consumptionLPer100km` | WLTP CO2 and fuel consumption |
| `topSpeedKmh`, `curbWeightKg`, `doors`, `seats` | Top speed, curb weight, doors and seats |
| `lastInspection`, `inspectionValidUntil` | Latest Swedish inspection and the date it stays valid |
| `county` | County as it appears in the address |
| `dealerName`, `dealerUrl` | Selling dealer and its Bilweb page |
| `description` | Full dealer description in Swedish |
| `equipment` | Equipment list |
| `imageUrl`, `imageUrls` | Main photo and all photos |
| `lastModified` | Last change date from the site's sitemap |
| `specs` | Every vehicle information row shown on the page |
| `scrapedAt` | Timestamp of the scrape |

#### Sample output

```json
{
  "listingId": "463268",
  "title": "Volkswagen Golf I 1.0 eTSI 110 HK DSG / Drag / Navi / ACC",
  "make": "Volkswagen",
  "model": "Golf",
  "modelYear": 2021,
  "firstRegistered": "2021-01-14",
  "price": 194900,
  "currency": "SEK",
  "condition": "used",
  "mileageKm": 106680,
  "fuelType": "Bensin",
  "engineType": "Elhybrid",
  "powerHp": 110,
  "transmission": "Automatisk",
  "bodyType": "Kombi",
  "color": "Vit",
  "vin": "WVWZZZCDZMW319313",
  "county": "stockholms-lan",
  "dealerName": "Din Bil / Seat Sätra"
}
```

### Cost and performance

The actor is billed per result. Each vehicle opens one detail page, so the run time grows in step with Max results. About 150 vehicles are read per minute. The usage cost of a run only settles after the run has SUCCEEDED.

### Limitations

- The site publishes its vehicles in sitemap files, and the actor reads those files in order. A narrow filter, for example one rare make in one county, makes the run read many files before it has enough matches.
- Make and county filters match the spelling in the listing address, for example `mercedes-benz` and `skane-lan`.
- Brand-new cars from dealers often have no mileage, VIN or registration number yet. Those fields are `null`.
- Dealer lease and loan campaigns list a monthly cost, not a purchase price. Those rows have `priceType` set to `monthly`.
- Listings without a stated price have `price` set to `null`.
- Text fields are in Swedish.

### Related Scrapers

- [Blocket Scraper](https://apify.com/studio-amba/blocket-scraper): Swedish classifieds
- [AutoScout24 Scraper](https://apify.com/studio-amba/autoscout24-scraper): European car marketplace
- [Tradera Scraper](https://apify.com/studio-amba/tradera-scraper): Swedish online auctions

### Support

Found an issue or need a field added? Open an issue on the actor's Apify Store page.

Automated runs test this actor against the live site and verify the output is complete. When the website changes, the scraper usually gets repaired the same day.

If this actor works for you, a review on its Store page helps other people find it.

# Actor input Schema

## `make` (type: `string`):

Optional. Car make as in the listing address, for example volvo, volkswagen, bmw, mercedes-benz. Leave empty for all makes.

## `county` (type: `string`):

Optional. County (län) as in the listing address, for example stockholms-lan, skane-lan, vastra-gotalands-lan. Separate several with commas. Leave empty for all of Sweden.

## `minYear` (type: `integer`):

Only vehicles from this model year or later.

## `maxYear` (type: `integer`):

Only vehicles up to this model year.

## `minPrice` (type: `integer`):

Only vehicles priced at or above this amount in Swedish kronor.

## `maxPrice` (type: `integer`):

Only vehicles priced at or below this amount in Swedish kronor.

## `maxResults` (type: `integer`):

Maximum number of vehicles to return. Capped at 20000 per run.

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

The site answers plain requests. The automatic Apify proxy is the default.

## Actor input object example

```json
{
  "make": "volvo",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "make": "volvo",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/bilweb-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 = {
    "make": "volvo",
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/bilweb-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 '{
  "make": "volvo",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/bilweb-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/bilweb-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/p2ZpGeVw0VQwsBh8C/builds/6UFLVgy7c6Rkpwu2e/openapi.json
