Bilbasen Dk Scraper avatar
Bilbasen Dk Scraper

Pricing

Pay per usage

Go to Apify Store
Bilbasen Dk Scraper

Bilbasen Dk Scraper

Pricing

Pay per usage

Rating

0.0

(0)

Developer

BDB Sql

BDB Sql

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Share

🚗 Bilbasen.dk Vehicle Scraper

Bilbasen.dk Vehicle Scraper

This Apify actor allows you to scrape vehicle listings from Bilbasen.dk, Denmark's largest vehicle marketplace. Extract comprehensive vehicle data including pricing, specifications, images, and dealer information for cars, vans, trucks, and other vehicles.


🚀 Key Features

  • 🔎 Scrape vehicle listings from any Bilbasen.dk search URL
  • 🚙 Support for all vehicle types (cars, vans, trucks, motorcycles)
  • 💰 Extract pricing data (retail, leasing, wholesale prices)
  • 🖼️ High-resolution vehicle images extraction
  • 📍 Dealer information and logos
  • 🏷️ Ad types detection (KlikXtra, Plus Ads, promoted listings)
  • 🔧 Vehicle specifications (make, model, variant)
  • 🌐 Proxy support for stable, anonymous scraping
  • 📄 Structured JSON-LD data extraction
  • 📊 Automatic pagination support

❓ Why Use This Actor

  • ✅ Automate vehicle listing collection from Bilbasen.dk
  • ✅ Build datasets for Danish automotive market analysis
  • ✅ Monitor vehicle prices and availability trends
  • ✅ Compare prices across dealers and listing types
  • ✅ Integrate vehicle data into comparison platforms
  • ✅ Track leasing and financing options

👥 Who Is This Actor Suitable For?

  • 🚗 Auto dealers and vehicle comparison websites
  • 📈 Automotive market researchers and analysts
  • 🧠 Data scientists studying Danish vehicle markets
  • 🧰 Developers building automotive platforms
  • 💼 Fleet managers evaluating purchase options
  • 📚 Academic researchers studying automotive markets

📥 Input Schema

The actor uses a simple single-field input for maximum flexibility:

{
"startUrl": "https://www.bilbasen.dk/brugt/bil?leasingtype=operational&pricetype=Leasing",
"maxItems": 100,
"proxyConfiguration": {
"useApifyProxy": false
}
}

Input Parameters

ParameterTypeDescriptionRequiredDefault
startUrlstringBilbasen.dk search URL to scrapeYes-
maxItemsintegerMaximum number of vehicles to scrape. Set to 0 for unlimited.No100
proxyConfigurationobjectProxy settings for scrapingNo{ "useApifyProxy": false }

📤 Output Schema

The actor outputs structured vehicle listing data in JSON format:

[
{
"externalId": 6749515,
"uri": "https://www.bilbasen.dk/klikxtra/6749515?pageid=102",
"media": [
{
"mediaType": "Picture",
"url": "https://billeder.bilbasen.dk/bilinfo/72e057e3-a676-43e0-91f7-f03d20f9c8c9.jpeg?class=S640X640"
},
{
"mediaType": "Picture",
"url": "https://billeder.bilbasen.dk/bilinfo/2f4a74a8-6cac-4bea-aacc-6cf34a960b07.jpeg?class=S640X640"
},
{
"mediaType": "DealerLogo",
"url": "https://billeder.bilbasen.dk/bilinfo/3bbb2b0d-afe7-435b-b911-78f1863e4958.jpg?class=S400X400"
}
],
"price": {
"price": 199800.0,
"displayPrice": "199.800 kr",
"unit": "kr",
"originalPrice": 219800.0,
"priceType": "RetailExclVat"
},
"make": "VW",
"model": "Crafter 30",
"variant": "2,0 TDi 177 Kassevogn L3H2",
"isKlikXtra": true,
"isExtraPromoted": false,
"isPlusAd": false,
"saleType": "Detailsalg"
}
]

Output Fields

Basic Information:

  • externalId: Unique vehicle listing identifier
  • uri: Direct link to the vehicle listing page
  • make: Vehicle manufacturer (e.g., "VW", "BMW", "Audi")
  • model: Vehicle model name
  • variant: Specific variant/trim information

Pricing:

  • price.price: Numeric price value for calculations
  • price.displayPrice: Formatted price with currency (e.g., "199.800 kr")
  • price.unit: Currency unit (typically "kr" for DKK)
  • price.originalPrice: Original price before discount (optional)
  • price.priceType: Type of pricing (e.g., "RetailExclVat", "LeasingExclVat", "Wholesale")

Media:

  • media: Array of media objects
    • mediaType: Type of media ("Picture" or "DealerLogo")
    • url: Direct URL to the image

Ad Features:

  • isKlikXtra: Whether this is a premium KlikXtra listing
  • isExtraPromoted: Whether the listing is extra promoted
  • isPlusAd: Whether this is a Plus advertisement
  • saleType: Sale type (e.g., "Detailsalg", "Privat")

🎯 Usage Examples

Example 1: Scrape Operational Leasing Vehicles

{
"startUrl": "https://www.bilbasen.dk/brugt/bil?leasingtype=operational&pricetype=Leasing",
"maxItems": 100
}

Example 2: Scrape VW Crafter Vans

{
"startUrl": "https://www.bilbasen.dk/brugt/bil/vw/crafter",
"maxItems": 50
}

Example 3: Scrape Electric Vehicles (BMW, Audi, Tesla)

{
"startUrl": "https://www.bilbasen.dk/brugt/bil?fuel=3&fuel=2&fuel=11&fuel=12&make=bmw&make=audi&make=tesla",
"maxItems": 200
}

Example 4: Scrape Used Cars with Price Range

{
"startUrl": "https://www.bilbasen.dk/brugt/bil?PriceFrom=100000&PriceTo=300000&YearFrom=2020",
"maxItems": 150
}

Example 5: Scrape Specific Search Results Page

{
"startUrl": "https://www.bilbasen.dk/brugt/bil/audi/a4?fuel=3&YearFrom=2018&PriceFrom=0&PriceTo=500000&page=1",
"maxItems": 0
}

📊 Data Views

The actor provides a pre-configured data view in the Apify platform:

Overview

Displays essential vehicle information:

  • Vehicle ID, Make, Model, Variant
  • Vehicle URL and Images
  • Price (display format and raw value)
  • Price Type and Sale Type
  • Ad Features (KlikXtra, Plus Ad status)

⚠️ Important Notes

  1. URL Format: Use any valid Bilbasen.dk search URL with your preferred filters
  2. Pagination: The actor automatically handles pagination - just provide the first page URL
  3. maxItems: Set to 0 for unlimited scraping (will scrape all results from the search)
  4. Data Source: Extracts data from JSON-LD structured data embedded in the page HTML
  5. Proxy Recommended: For large scraping jobs, using Apify Proxy is recommended for stability
  6. Rate Limiting: The actor uses maxConcurrency: 5 to respect server resources

🏗️ Technical Details

How It Works

  1. Accepts any Bilbasen.dk search URL as input
  2. Fetches the HTML page using CheerioCrawler
  3. Extracts JSON-LD structured data from <script type="application/ld+json"> tags
  4. Parses the ItemList schema containing vehicle listings
  5. Automatically handles pagination by incrementing the page parameter
  6. Respects the maxItems limit across all pages

This actor is for educational and research purposes. Please review Bilbasen.dk's terms of service and robots.txt before extensive scraping. Always respect rate limits and server resources.