# Net A Porter Product Scraper (`harvester/net-a-porter-product-scraper`) Actor

A Product Web scraper for the Net-A-Porter website. It only requires URLs of the targeted products. Then it returns all the variants of the products, including all important fields such as prices, designer name, colors, sizes, the first time the product became visible, and codes.

- **URL**: https://apify.com/harvester/net-a-porter-product-scraper.md
- **Developed by:** [Gilfoyle](https://apify.com/harvester) (community)
- **Categories:** E-commerce, Integrations, Developer tools
- **Stats:** 24 total users, 0 monthly users, 96.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 products

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

### 🚀 [Net-A-Porter](https://www.net-a-porter.com) Product Web scraper

This scraper will take as an input a list of one product URL or more and return for you these fields as the table below shows

| Field             | Format  | Description                                                               |
|-------------------|---------|---------------------------------------------------------------------------|
| id                | text    | A Unique identifier for each product/variant.                             |
| sku               | text    | The SKU code for this product/variant.                                    |
| brand             | text    | The brand name of this product/variant.                                   |
| name              | text    | The product/variant name with its color/size/brand add to the name.       |
| price             | number  | The current price of this product/variant.                                |
| currency          | text    | The currency of the extracted price.                                      |
| Link              | link    | A direct link/URL to this product.                                        |
| Image             | image   | The main image of this product/variant.                                   |
| category          | array   | A list of the category breadcrumbs leading to this product/variant.       |
| buyable           | boolean | Whether this product/variant is available to buy from the website or not. |
| promotion\_message | text    | If this product have a promotion line showed, it will be here.            |
| discount\_price    | number  | If this product/variant have a discount, it will appear here.             |
| firstVisibleDate  | date    | The first time this product became visible on the website.                |

#### Output example

So this [product](https://www.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537) will result in two variants like below:

```json
[
  {
    "identifier": "3074457345627511200",
    "sku": "1647597332592537",
    "brand": "LUCY DELIUS",
    "name": "LUCY DELIUS Chubby Love rhodium-plated diamond hoop earrings, Gold",
    "price": 8625,
    "currency": "USD",
    "url": "https://www.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537",
    "image_url": "https://www.net-a-porter.com/variants/images/1647597332592537/in/w2000_q60.jpg",
    "category": [
      "Jewelry and Watches",
      "Fine Jewelry",
      "Earrings"
    ],
    "buyable": 1,
    "promotion_message": "",
    "discount_price": 0,
    "firstVisibleDate": "2024-09-13T16:00:12.000Z"
  },
  {
    "identifier": "3074457345628672678",
    "sku": "1647597351017932",
    "brand": "LUCY DELIUS",
    "name": "LUCY DELIUS Baby Chubby Love rhodium-plated 14-karat gold diamond hoop earrings, Gold",
    "price": 4980,
    "currency": "USD",
    "url": "https://www.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/baby-chubby-love-rhodium-plated-14-karat-gold-diamond-hoop-earrings/1647597351017932",
    "image_url": "https://www.net-a-porter.com/variants/images/1647597351017932/in/w2000_q60.jpg",
    "category": [
      "Jewelry and Watches",
      "Fine Jewelry",
      "Earrings"
    ],
    "buyable": 1,
    "promotion_message": "",
    "discount_price": 0,
    "firstVisibleDate": "2024-09-13T16:00:12.000Z"
  }
]
```

In this spider all products will be extracted using a new external premium residential proxy for each request to maximize anonymity so you don't worry about anything.

My method has been used thousands of times to extract all products on this website for all regions without any issues or blocking. See for yourself and have fun!

#### Input parameters

We only require a list of one product or more which you want to extract

The input will be like this for one product

```json
{
   "urls": ["https://www.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537"]
}
```

or more as you want

```json
{
   "urls": [
     "https://www.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537",
     "https://www.net-a-porter.com/en-us/shop/product/carolina-bucci/jewelry-and-watches/bracelets/kiss-large-18-karat-rose-and-white-gold-bracelet/1647597354840746"
   ]
}
```

# Actor input Schema

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

Array of products URLs you want to get its data from the website.

## Actor input object example

```json
{
  "urls": [
    "https://www.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537"
  ]
}
```

# 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.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("harvester/net-a-porter-product-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.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537"] }

# Run the Actor and wait for it to finish
run = client.actor("harvester/net-a-porter-product-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.net-a-porter.com/en-us/shop/product/lucy-delius/jewelry-and-watches/earrings/chubby-love-rhodium-plated-diamond-hoop-earrings/1647597332592537"
  ]
}' |
apify call harvester/net-a-porter-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,harvester/net-a-porter-product-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/3aVPXlITlRG16SodG/builds/PDh40siqpsqvwnLM1/openapi.json
