# Marktplaats Product Search Scraper (`ecomscrape/marktplaats-product-search-scraper`) Actor

Advanced Marktplaats.nl scraper for extracting comprehensive product listings, pricing, seller information, and detailed attributes from Netherlands' largest marketplace with 8+ million monthly visitors.

- **URL**: https://apify.com/ecomscrape/marktplaats-product-search-scraper.md
- **Developed by:** [ecomscrape](https://apify.com/ecomscrape) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Security:** Full permissions
- **Stats:** 22 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Contact

If you encounter any issues or need to exchange information, please feel free to contact us through the following link:
[My profile](https://apify.com/ecomscrape)

## **Marktplaats Scraper: Extract Fashion Data Across Europe**

### Introduction

Marktplaats.nl, established in 1999, stands as the Netherlands' largest online marketplace, attracting over 8 million monthly visitors and hosting approximately 10 million active advertisements. As the dominant classified advertising platform in the Dutch market, Marktplaats serves as a treasure trove of valuable market intelligence, pricing data, and consumer behavior insights that businesses, researchers, and entrepreneurs desperately need access to.

The challenge lies in manually collecting this vast amount of data from Marktplaats' extensive product listings spanning categories from automobiles and electronics to books and household items. This is where a specialized Marktplaats scraper becomes invaluable, automating the data extraction process and transforming hours of manual work into minutes of automated efficiency.

### Comprehensive Marktplaats Data Extraction Solution

Our Marktplaats Product Search Scraper is engineered specifically to navigate and extract data from Marktplaats.nl's complex structure, handling everything from simple product listings to detailed seller information and advanced marketplace features. The scraper is designed to work with Marktplaats' dynamic content loading, anti-bot measures, and diverse product categories while maintaining high accuracy and reliability.

The tool excels at extracting data from various Marktplaats sections including automotive listings, electronics, books, home goods, and specialized categories. It's particularly valuable for market researchers conducting competitive analysis, businesses monitoring pricing trends, data analysts studying consumer behavior, and entrepreneurs seeking market opportunities in the Dutch marketplace.

Whether you're tracking competitor pricing, analyzing market trends, or building comprehensive product databases, this scraper provides the foundation for data-driven decision making in the Netherlands' most significant online marketplace.

### Input and Output Details

Example url 1: https://www.marktplaats.nl/l/auto-s/#f:10882

Example url 2: https://www.marktplaats.nl/l/auto-s/bmw/#f:10882

Example url 3: https://www.marktplaats.nl/l/boeken/

Example Screenshot of product information page:

![](https://i.ibb.co/vvX77qWT/Screenshot-from-2025-08-20-11-59-19.png)

#### Input Format

The scraper accepts configuration through a JSON object with several key parameters:

##### Scrape with URLs:

```json
{
  "max_retries_per_url": 2, // Maximum number of retry attempts for each URL
  "proxy": { // Proxy configuration to avoid bot detection
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL" 
    ],
    "apifyProxyCountry": "NL" // Choose a country that matches your target data location
  },
  "max_items_per_url": 20, // Total number of items you want to scrape
  "urls": [ // Product list page URLs to scrape
    "https://www.marktplaats.nl/l/auto-s/#f:10882",
    "https://www.marktplaats.nl/l/auto-s/bmw/#f:10882",
    "https://www.marktplaats.nl/l/boeken/"
  ],
  "ignore_url_failures": true // Continue scraping even if some URLs fail
}
```

**The `urls` parameter**: List of product/listing page URLs that you want to scrape. You can add URLs one by one, or use the Bulk edit section to add a prepared list.

**The `ignore_url_failures` parameter**: If set to `true`, the scraper will continue running even if some URLs fail to be scraped after reaching the maximum number of retries. This ensures that one problematic URL doesn't stop your entire scraping job.

*When you provide a list of URLs for scraping, all options in the "Scrape with search filters" section will be disabled. The system will only collect data from the URLs you specified.*

##### Scrape with Search Filters:

```json
{
  "max_retries_per_url": 2, // Maximum number of retry attempts for each search filter
  "proxy": { // Proxy configuration to avoid bot detection
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL" 
    ],
    "apifyProxyCountry": "NL" // Choose a country that matches your target data location
  },
  "max_items_per_url": 20, // Total number of items you want to scrape
  "keyword": "bmw", // Search keyword to find items
  "sort_by": "PRICE-INCREASING", // Sort items by specific criteria
  "page": 1 // Starting page number for search results
}
```

**The `keyword` parameter**: The search keyword to find items (e.g., "bmw", "fiets", "auto", "meubels").

**The `sort_by` parameter**: Sort items by various criteria:

- `"OPTIMIZED-DECREASING"` - Standard (optimized/recommended sorting)
- `"SORT_INDEX-DECREASING"` - Date (new to old) - newest listings first
- `"SORT_INDEX-INCREASING"` - Date (old to new) - oldest listings first
- `"PRICE-INCREASING"` - Price (low to high)
- `"PRICE-DECREASING"` - Price (high to low)

**The `page` parameter**: Starting page number for scraping, useful for continuing interrupted scrapes or targeting specific result ranges.

*When using search filters for scraping, you need to leave the `urls` field empty (or set it to `null`) in the "Scrape with URLs" configuration.*

##### General Options:

**The `max_items_per_url` parameter**: Limits the number of items extracted from each listing page or search results page. The default value is 20, providing a manageable batch size while allowing for comprehensive data collection.

**The `max_retries_per_url` parameter**: Sets the maximum number of retry attempts for each URL or search filters if the scrape is detected as a bot or the page fails to load. The default value is 2, providing a good balance between thoroughness and efficiency.

**The `proxy` parameter**: Proxy configuration is essential for maintaining anonymity and avoiding detection. The residential proxy option ensures that your scraping activities appear as legitimate browsing, reducing the risk of being blocked or rate-limited. You should choose a country that matches the location of the website you're scraping (e.g., Netherlands/NL for marktplaats.nl).

#### Output Format

You get the output from the Stockx.com Product Search Scraper stored in a tab. The following is an example of the Information Fields collected after running the Actor.

```json
[ // List of product information
  {
  "item_id": "m2297024590",
  "title": "SEAT Leon 1.8 TSI FR Business Intense | Beats | Carplay | Pa",
  "description": "Seat leon 1.8 Tsi fr business intense | beats | carplay | pano algemene informatie aantal deuren: 5 modelreeks: 2017 - 2020 kleur:",
  "category_specific_description": "Seat leon 1.8 Tsi fr business intense | beats | carplay | pano algemene informatie aantal deuren: 5 modelreeks: 2017 - 2020 kleur: midnight black technische informatie vermogen: 132 kw (179 pk) koppel: 250 nm transmissie: 7 versnellingen, automaat tankinhoud...",
  "thin_content": false,
  "price_info": {
    "price_cents": 1999500,
    "price_type": "FIXED",
    "suppress_zero_cents": true
  },
  "location": {
    "city_name": "Amersfoort",
    "country_name": "Nederland",
    "country_abbreviation": "NL",
    "distance_meters": -1000,
    "is_buyer_location": false,
    "on_country_level": false,
    "abroad": false,
    "latitude": 52.165184866186,
    "longitude": 5.3490164965681
  },
  "date": "Vandaag",
  "image_urls": [
    "//images.marktplaats.com/api/v1/listing-mp-p/images/0b/0bcbce52-3d94-4564-9213-7e95d0b6d464?rule=ecg_mp_eps$_82.jpg",
    "//images.marktplaats.com/api/v1/listing-mp-p/images/a3/a36774ec-c17b-4aaf-bdcd-59af4a13be27?rule=ecg_mp_eps$_82.jpg",
    "//images.marktplaats.com/api/v1/listing-mp-p/images/69/69b105be-ed0c-4ecb-9cb3-f5352433d36b?rule=ecg_mp_eps$_82.jpg"
  ],
  "seller_information": {
    "seller_id": 899525,
    "seller_name": "ESE Automotive",
    "show_soi_url": true,
    "show_website_url": false,
    "seller_logo_url": "//images.marktplaats.com/api/v1/profile-mp-p/images/b5/b5616da9-a28f-4fb3-b6a6-024f5f44aad9?rule=ecg_mp_eps$_82",
    "is_verified": false
  },
  "category_id": 150,
  "priority_product": "DAGTOPPER",
  "opval_sticker_text": "Pano-Dsg-Leder",
  "video_on_vip": true,
  "urgency_feature_active": false,
  "nap_available": false,
  "trust_indicators": [
    {
      "key": "FinanceAvailable"
    },
    {
      "key": "LezSuitable"
    }
  ],
  "highlights": [
    {
      "key": "FinanceAvailable"
    },
    {
      "key": "LezSuitable"
    }
  ],
  "attributes": [
    {
      "key": "constructionYear",
      "value": "2018",
      "values": [
        "2018"
      ]
    },
    {
      "key": "mileage",
      "value": "118223",
      "unit": "km",
      "values": [
        "118223"
      ]
    },
    {
      "key": "energyLabel",
      "value": "D",
      "values": [
        "D"
      ]
    },
    {
      "key": "fuel",
      "value": "Benzine",
      "values": [
        "Benzine"
      ]
    },
    {
      "key": "transmission",
      "value": "Automaat",
      "values": [
        "Automaat"
      ]
    },
    {
      "key": "body",
      "value": "Hatchback",
      "values": [
        "Hatchback"
      ]
    },
    {
      "key": "model",
      "value": "Leon",
      "values": [
        "Leon"
      ]
    },
    {
      "key": "options",
      "value": "Lichtsensor",
      "values": [
        "Cruise Control",
        "Climate control",
        "Parkeersensor",
        "Panoramadak",
        "Lichtsensor",
        "Startonderbreker",
        "Sportstoelen",
        "Elektrische buitenspiegels",
        "Verwarmde buitenspiegels",
        "Verkeersbordherkenning",
        "Alarm",
        "Airbags",
        "Boordcomputer",
        "Keyless entry",
        "Airconditioning",
        "ABS",
        "Radio",
        "Stoelverwarming",
        "Lederen bekleding",
        "Electronic Stability Program (ESP)",
        "Apple Carplay",
        "Elektrische ramen",
        "Spraakbediening",
        "Lane Departure Warning",
        "Navigatiesysteem",
        "LED verlichting",
        "Open dak",
        "Regensensor",
        "Mistlampen",
        "Android Auto"
      ]
    },
    {
      "key": "priceType",
      "value": "Te koop",
      "values": [
        "Te koop"
      ]
    }
  ],
  "extended_attributes": [
    {
      "key": "emptyWeightCars",
      "value": "1227 kg",
      "values": [
        "1227 kg"
      ]
    },
    {
      "key": "condition",
      "value": "Gebruikt",
      "values": [
        "Gebruikt"
      ]
    },
    {
      "key": "euronormBE",
      "value": "Euro 6",
      "values": [
        "Euro 6"
      ]
    },
    {
      "key": "numberOfCilindersCars",
      "value": "4 cilinders",
      "values": [
        "4 cilinders"
      ]
    }
  ],
  "traits": [
    "MICROTIP",
    "EXTRA_BRANDING",
    "ETALAGE",
    "TRADE_IN_REQUEST_AVAILABLE",
    "NO_COMMERCIAL_CONTENT",
    "DAG_TOPPER_7DAYS",
    "WARRANTY_LABEL",
    "FEED_BOOSTER_HIGH",
    "TEST_DRIVE_REQUEST_AVAILABLE",
    "CALL_BACK_REQUEST_AVAILABLE",
    "FINANCE_AVAILABLE",
    "VIDEO",
    "PACKAGE_PREMIUM",
    "AUTOMOTIVE_EXTENDED_ASQ",
    "REQUEST_BUYER_LOCATION_IN_ASQ",
    "EXTRA_LARGE_PHOTOS",
    "EXTRA_IMAGES_SNIPPET",
    "HIGHLIGHTS",
    "CONTACT_SALES_REPRESENTATIVES",
    "DEALER_PACKAGE_PREMIUM",
    "EXTERNAL_REVIEWS",
    "NO_RESPONSE_TIME_IN_VIP",
    "COMPANY_PHOTO_AND_LOGO"
  ],
  "verticals": [
    "seat",
    "cars",
    "automotive"
  ],
  "pictures": [
    {
      "id": 0,
      "media_id": "",
      "url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/0b/0bcbce52-3d94-4564-9213-7e95d0b6d464?rule=ecg_mp_eps$_#.jpg",
      "extra_small_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/0b/0bcbce52-3d94-4564-9213-7e95d0b6d464?rule=ecg_mp_eps$_14.jpg",
      "medium_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/0b/0bcbce52-3d94-4564-9213-7e95d0b6d464?rule=ecg_mp_eps$_82.jpg",
      "large_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/0b/0bcbce52-3d94-4564-9213-7e95d0b6d464?rule=ecg_mp_eps$_83.jpg",
      "extra_extra_large_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/0b/0bcbce52-3d94-4564-9213-7e95d0b6d464?rule=ecg_mp_eps$_85.jpg",
      "aspect_ratio": {
        "width": 1024,
        "height": 683
      }
    },
    {
      "id": 0,
      "media_id": "",
      "url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/a3/a36774ec-c17b-4aaf-bdcd-59af4a13be27?rule=ecg_mp_eps$_#.jpg",
      "extra_small_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/a3/a36774ec-c17b-4aaf-bdcd-59af4a13be27?rule=ecg_mp_eps$_14.jpg",
      "medium_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/a3/a36774ec-c17b-4aaf-bdcd-59af4a13be27?rule=ecg_mp_eps$_82.jpg",
      "large_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/a3/a36774ec-c17b-4aaf-bdcd-59af4a13be27?rule=ecg_mp_eps$_83.jpg",
      "extra_extra_large_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/a3/a36774ec-c17b-4aaf-bdcd-59af4a13be27?rule=ecg_mp_eps$_85.jpg",
      "aspect_ratio": {
        "width": 1024,
        "height": 683
      }
    },
    {
      "id": 0,
      "media_id": "",
      "url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/69/69b105be-ed0c-4ecb-9cb3-f5352433d36b?rule=ecg_mp_eps$_#.jpg",
      "extra_small_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/69/69b105be-ed0c-4ecb-9cb3-f5352433d36b?rule=ecg_mp_eps$_14.jpg",
      "medium_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/69/69b105be-ed0c-4ecb-9cb3-f5352433d36b?rule=ecg_mp_eps$_82.jpg",
      "large_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/69/69b105be-ed0c-4ecb-9cb3-f5352433d36b?rule=ecg_mp_eps$_83.jpg",
      "extra_extra_large_url": "https://images.marktplaats.com/api/v1/listing-mp-p/images/69/69b105be-ed0c-4ecb-9cb3-f5352433d36b?rule=ecg_mp_eps$_85.jpg",
      "aspect_ratio": {
        "width": 1024,
        "height": 683
      }
    }
  ],
  "search_type": "TokenMatch",
  "reserved": false,
  "vip_url": "/v/auto-s/seat/m2297024590-seat-leon-1-8-tsi-fr-business-intense-beats-carplay-pa",
  "from_url": "https://www.marktplaats.nl/l/auto-s/p/2/#f:10882"
}, // ... Many other product details
]
```

The scraper delivers an extensive dataset for each product listing, capturing both basic and advanced marketplace information:

**Core Product Information:**

- **Item ID**: Unique Marktplaats identifier for tracking and reference
- **Title**: Product headline as displayed to users
- **Description**: Full product description provided by sellers
- **Category Specific Description**: Tailored descriptions based on product category

**Commercial Data:**

- **Price Info**: Complete pricing information including currency and special offers
- **Location**: Seller's geographical location for logistics planning
- **Date**: Listing publication and update timestamps

**Visual Content:**

- **Image URLs**: Complete collection of product images for analysis
- **Pictures**: Additional image metadata and formatting information
- **Video on VIP**: Premium video content for enhanced listings

**Seller Intelligence:**

- **Seller Information**: Comprehensive seller profiles and credibility data
- **Trust Indicators**: Verification badges and reliability metrics
- **NAP Available**: Name, Address, Phone availability status

**Advanced Marketplace Features:**

- **Category ID**: Precise categorization for systematic organization
- **Priority Product**: Premium listing status indicators
- **Opval Sticker Text**: Special promotional labels and badges
- **Urgency Feature Active**: Time-sensitive listing indicators
- **Highlights**: Featured product attributes and selling points
- **Attributes**: Structured product specifications and characteristics
- **Extended Attributes**: Additional detailed product metadata
- **Traits**: Behavioral and categorical product markers
- **Verticals**: Industry-specific classification data
- **Search Type**: Discovery method and listing type classification
- **Reserved**: Reservation status for pending transactions
- **VIP URL**: Premium listing access links

This comprehensive data structure enables deep market analysis, competitive intelligence, pricing optimization, and consumer behavior research across the Netherlands' largest online marketplace.

### Implementation Guide and Best Practices

**Step-by-Step Usage:**

**Option A - URL-Based Implementation:**

1. **Configuration Setup**: Navigate to Marktplaats.nl and use the website's category navigation and filtering features to find the listings you need. Copy the complete URLs from category pages or search results.

2. **Proxy Configuration**: Configure residential proxies matching the Netherlands (NL) or nearby regions for optimal access.

3. **Rate Limiting**: Set appropriate retry limits and item counts (`max_items_per_url`) to avoid overwhelming the target website.

4. **Execution**: Launch the scraper with `ignore_url_failures: true` and monitor progress through the extraction process.

5. **Data Processing**: Export and process the structured JSON output for your specific use case.

**Option B - Filter-Based Implementation:**

1. **Define Search Parameters**: Configure your search using the built-in filters:
   - Set `keyword` for specific items (e.g., "laptop", "fiets", "auto BMW")
   - Select `sort_by` to organize results (standard, date, or price sorting)
   - Set `page` to start from a specific results page

2. **Proxy Configuration**: Configure Netherlands (NL) residential proxies for authentic access.

3. **Rate Limiting**: Set `max_items_per_url` and `max_retries_per_url` appropriately.

4. **Execution**: Launch the scraper and monitor progress. The system will automatically build search URLs based on your filters.

5. **Data Processing**: Export and analyze the structured output data.

**Optimization Tips:**

**Method Selection:**

- Use URL-based scraping for complex category hierarchies or when you need specific pre-filtered results with multiple parameters
- Use filter-based scraping for simple keyword searches with standard sorting options

**Scraping Strategy:**

- For URL-based: Use category-specific URLs for focused data collection rather than broad searches
- For filter-based: Start with broad keywords and refine based on results
- Implement delays between requests to maintain sustainable scraping practices
- Regularly rotate proxy configurations to ensure consistent access
- Monitor for changes in Marktplaats' website structure that may affect data extraction

**Sorting Strategy:**

- Use `"SORT_INDEX-DECREASING"` (newest first) to track new listings in real-time
- Use `"PRICE-INCREASING"` or `"PRICE-DECREASING"` for price-sensitive searches
- Use `"OPTIMIZED-DECREASING"` (standard) for general browsing with Marktplaats' recommended sorting

**Filter Optimization:**

- For filter-based scraping: Test keyword variations in Dutch for better results
- Combine specific keywords with appropriate sorting (e.g., keyword: "iPhone", sort_by: "PRICE-INCREASING")
- Use pagination (`page` parameter) to systematically collect large datasets

**Common Issue Resolution:**

- **Access Blocked**:
  - Switch to Netherlands (NL) proxy regions or reduce request frequency
  - Enable `ignore_url_failures` to continue scraping even if some requests fail

- **Incomplete Data**:
  - For URL-based: Verify URL formatting and category accessibility
  - For filter-based: Check keyword spelling and try broader search terms

- **Rate Limiting**:
  - Implement longer delays and reduce concurrent requests
  - Lower `max_items_per_url` and process data in smaller batches

- **Empty Results**:
  - For filter-based: Verify keyword is in Dutch or commonly used on Marktplaats
  - Try different `sort_by` options if results seem limited

- **Date Filtering**:
  - Use `"SORT_INDEX-DECREASING"` to get newest listings first
  - Use `"SORT_INDEX-INCREASING"` to get oldest listings (useful for historical analysis)

### Business Applications and Strategic Value

The Marktplaats scraper delivers immediate value through time efficiency, converting manual data collection tasks that could take days into automated processes completed in hours. This acceleration enables real-time market analysis, competitive monitoring, and trend identification that would otherwise be impossible to maintain manually.

**Practical Applications:**

- **Competitive Intelligence**: Monitor competitor pricing, product offerings, and market positioning
- **Market Research**: Analyze consumer preferences, pricing trends, and demand patterns
- **Inventory Management**: Track product availability and market saturation levels
- **Business Development**: Identify market gaps and emerging product opportunities

The extracted data supports strategic decision-making across industries, from retail and e-commerce to market research and business consulting, providing the foundation for data-driven growth in the Dutch marketplace.

### Conclusion

The Marktplaats Product Search Scraper transforms the complex challenge of marketplace data extraction into a streamlined, automated solution. By providing comprehensive access to the Netherlands' largest online marketplace data, it empowers businesses and researchers with the insights needed for competitive advantage and market understanding.

Ready to unlock the power of Marktplaats marketplace data? Start extracting valuable insights today and transform your approach to Dutch market intelligence.

## Related Actors

- [**Marktplaats Product Details Scraper**](https://apify.com/ecomscrape/marktplaats-product-details-scraper): A specialized data extraction solution engineered to harvest comprehensive product information from Marktplaats's exclusive sneaker and streetwear marketplace.

## Your feedback

We are always working to improve Actors' performance. So, if you have any technical feedback about Marktplaats Product Search Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Product list page urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped after the maximum number of retries is reached.

## `keyword` (type: `string`):

Enter the keyword to search for items

## `sort_by` (type: `string`):

Sort items by (e.g., OPTIMIZED-DECREASING, SORT_INDEX-DECREASING, SORT_INDEX-INCREASING, PRICE-INCREASING, PRICE-DECREASING)

## `page` (type: `integer`):

Specify the page number to start scraping from

## `max_items_per_url` (type: `integer`):

Limit the number of items per URL or search filters you want to scrape

## `max_retries_per_url` (type: `integer`):

Limit the number of retries for each URL or search filters if the scrape is detected as a bot or the page fails to load

## `proxy` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "urls": [
    "https://www.marktplaats.nl/l/auto-s/#f:10882"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "urls": [
        "https://www.marktplaats.nl/l/auto-s/#f:10882"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20,
    "max_retries_per_url": 2,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ecomscrape/marktplaats-product-search-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 = {
    "urls": ["https://www.marktplaats.nl/l/auto-s/#f:10882"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
    "max_retries_per_url": 2,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ecomscrape/marktplaats-product-search-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 '{
  "urls": [
    "https://www.marktplaats.nl/l/auto-s/#f:10882"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ecomscrape/marktplaats-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ecomscrape/marktplaats-product-search-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/PuFCQvCRZb31lonqV/builds/eOO9tWNUwhdv2TQ4U/openapi.json
