Extract M&S product, price and stock data at SKU level

Every marksandspencer.com product URL ends in a two-letter type code, the letter p and eight digits, and the shelf behind it counts colourways rather than products.

Plans from €169 a month · Free project assessment · Reply within 1 business day

CSV · Excel · JSON · XML · FTP · SFTP · Amazon S3 · Google Cloud

marksandspencer.com
Extract M&S product, price and stock data at SKU level
marksandspencer.comwhat you get
Typical fields for online stores
titlepricecurrencyin_stockskuratingreviews
Delivery

API, JSON feed or CSV, XLSX and JSON files

Schedule

One-time, monthly, weekly, daily or 3 times a day

How we deliver it

  1. You send

    Marks & Spencer pages, filters, fields and a schedule

  2. We run the scrapers

    Built, monitored and repaired by our team

  3. You receive the data

    API, JSON feed or CSV, XLSX and JSON files

We take a scope - a set of shelves, a brand, a category tree, or the full UK product sitemap set - and build the crawler around it. Output goes out as CSV, JSON, XLSX or an API, on the schedule you set.

Two M&S rules shape the build. Listing rows are colourways, not products, so shelf totals overstate the range unless you deduplicate on productExternalId. And listings page in fixed blocks of 48 through ?page=N, with a request past the last page redirecting back to the unpaginated listing URL, which is what a crawler should read as the end of the shelf.

We run at a rate that leaves the storefront unaffected.

Fields we extract from a Marks & Spencer product record

An M&S page ships a server-rendered Next.js payload alongside a schema.org Product block. The payload is the deeper of the two, so we read it and reconcile against the markup.

  • IdentifiersproductExternalId, the eight-digit productId in the URL, strokeId in both its compact and slashed forms, departmentId, and the per-SKU upc and mfPartnumber.
  • Colourseach colourway is a ProductVariant with its own id, colour in capitals such as "MEDIUM INDIGO", exactColourForBeauty in title case, and a colourSwatchAssetId.
  • SizesprimarySize and secondarySize under the labels the page declares, which on jeans read primarySizeLabel "Waist" and secondarySizeLabel "Inside Leg", with secondary values "Short/Petite", "Regular" and "Long".
  • Stockinventory.quantity, quantityOnHand and quantityAdvised on every SKU, plus stockLevelIndicator on listing cards.
  • PricecurrentPrice, previousPrice, currencyPrefix, unitPrice and offerText, which reads "Special Offer" on a marked-down line.
  • SparkssparksOffers on the card and productLoyaltyPromotion on the page, each carrying loyaltyPromoCode, promoName, shortDesc and the full terms in longDesc.
  • Copy and caremasterProductDescription, masterAspirationalText, compositionList, productContains and fit, with care instructions as coded strings such as PDP-CC_WASH40 and PDP-CC_DONOTTUMBLEDRY.
  • ReviewsaverageOverallRating, totalReviewCount, recommendedCount, ratingDistribution, and the secondary axes M&S scores clothing on: TrueToSize, TrueToSizeClothingLength, Value, Material and Style.
  • ImagesassetCrossReferences typed MAIN, ALTERNATIVE and CUT_OUT, served from assets.digitalcontent.marksandspencer.app, with the asset id carrying the stroke id and a two-letter colour code.
  • FulfilmentdeliveryInformationPanel keys such as DEL-GMHOME and DEL-FTO, leadTime on furniture lines, and the service names "Next-day Click & Collect", "Store Collection" and "Nominated Day Delivery".
Fields we extract from a Marks & Spencer product record
What Marks & Spencer scraping shows between runs

What Marks & Spencer scraping shows between runs

A single crawl of marksandspencer.com dates quickly, and the sitemaps will not tell you what moved. Every entry in the UK product sitemaps carried the same lastmod for every entry, so the file stamps the crawl rather than the change. Diffing snapshots is the only reliable way to see it.

Stock moves fastest. inventory.quantity is held per size within per colour, so a jeans line with two colours and a waist by inside-leg grid holds dozens of numbers that move independently of each other.

Price moves next. previousPrice sits at 0 on a full-price line and fills in when a cut lands, while offerText flips to "Special Offer". Sparks promotion codes attach to and detach from a product without the shelf price changing at all.

Range rotation is slower and more consequential. Codes retire, and a retired code stops resolving rather than redirecting, so a snapshot history is the only record that the line existed. The payload also carries an isOffSale flag before a page goes.

Ireland runs on its own clock. The /ie/ storefront serves the same product code and the same SKU ids in euro, so both markets can be captured in one run and compared line by line.

Marks & Spencer as a data source

Source
marksandspencer.com
Category
online stores
Delivery
API, JSON feed, CSV, XLSX
Plans
From €169 a month
Get a quote

Marks & Spencer sells Clothing & Home, Beauty, Furniture, Flowers, Hampers, Gift Cards and Food to Order on one UK storefront. The weekly grocery range is not there. M&S Food reaches shoppers online through the Ocado joint venture, so marksandspencer.com holds celebration cakes, party platters, wine and hampers rather than a supermarket shop.

A product URL is a slug, then /p/, then a two-letter type code, the letter p, and eight digits: /high-waisted-frayed-kickflare-jeans/p/clp22135670. The site splits that string itself. Its page payload names productTypeCode "cl" and productId "22135670". Clothing is cl, home and beauty hb, furniture ft, food to order fd, flowers fl, hampers hp, cakes ck and gift cards gc. The same eight digits return as the schema.org sku "P22135670" and as productExternalId in the payload. Every product id in every UK product sitemap is eight digits long.

Next to it sits the buying code M&S calls the strokeId. Listing cards print it twice inside one field, compact and slashed, as "T176006M,T17/6006M". Products also carry a departmentId, G5 for general merchandise and F5 for food, flowers and hampers.

Third-party labels sell on the same URLs. The Brand filter separates "M&S Brands" from "Other Brands" before it lists any name, and a Brands at M&S line is flagged by a category with brandSalesCategory set to true.

25Developers
500+Customers
1.5BPages extracted
15,000+Hours saved for our clients

Marks & Spencer scraping plans and pricing

Airplane

€199one-time

Setup fee included

100,000
One-time
Up to 5 days
7 days

Helicopter

€169/ mo

Setup fee €499

250,000
Monthly
Up to 5 days
14 days

Glasses

€229/ mo

Setup fee €499

1,000,000
Weekly
Up to 5 days
30 days

Microscope popular

€349/ mo

Setup fee €499

2,000,000
Daily
Same day
60 days

DNA

€549/ mo

Setup fee €799

3,000,000
3 times daily
Same day
90 days

Delivery: CSV, JSON or XLSX files, our API or a JSON feed. MCP server on request.

Full plan details

Why buyers scrape Marks & Spencer data

UK apparel teams use M&S as a mid-market price anchor. A listing card carries listPrice and previousPrice together, so one pass over a shelf returns both the live price and the line it was cut from, without waiting for a second snapshot to establish a baseline.

Brand owners trading through Brands at M&S watch their own pages. Because the Brand filter separates "M&S Brands" from "Other Brands" before naming labels, a single shelf shows how much room third-party stock takes against M&S Collection, Autograph and Per Una in the same category.

Merchandisers use the size grid. inventory.quantity sits on each size within each colour, so a run shows which sizes have gone and which colourway is still holding stock, which is the practical read on how a line is selling.

Review teams use the fit axes. M&S scores clothing on TrueToSize and TrueToSizeClothingLength separately from the headline rating, so returns risk is legible as a number rather than only as free text.

Buying teams track rotation. Shelves such as /l/offers/price-drop hold the marked-down set and turn over through the season.

About ScrapeIt

ScrapeIt is a managed scraping agency. We build the crawler, run it, monitor it, and repair it when M&S changes its markup, which happens without notice. You receive data on a schedule, not a codebase to maintain.

Scope, cadence and the field list are agreed before the first run, and a sample extract goes out before the schedule starts.

We are not affiliated with Marks & Spencer. We collect only publicly available data - everything a visitor can see on Marks & Spencer - and we collect it legally, keeping request volumes low.

FAQ

Still unsure? Write to info@scrapeit.io

Do you offer a Marks & Spencer API for product and stock data?

Yes. The ScrapeIt Marks & Spencer API returns productExternalId, strokeId, colour and size SKUs, inventory.quantity, currentPrice and previousPrice as JSON from an endpoint we host, refreshed on the schedule you set. The same data also comes as CSV or XLSX files or straight into your database. The nine UK product sitemaps are the reliable spine of our crawl. On a crawl at the time of writing they listed a little over 28,000 product URLs across clothing, home, beauty, furniture, gifts, flowers, hampers and food to order. Products that are not in those files, the new-in listings among them, we reach through category pages.

Do you get M&S Food and grocery prices?

Not the weekly grocery range. That sells through Ocado under the M&S joint venture, not on marksandspencer.com. What the site carries is Food to Order - celebration cakes, party platters, sandwich selections, wine and hampers - on the same page structure as clothing, with productTypeCode "fd", a populated servings field, and productContains listing what is inside a platter item by item.

Can you get stock at size and colour level?

Yes. Each colour is a variant, each size beneath it is a SKU, and each SKU carries an inventory block with quantity, quantityOnHand and quantityAdvised. On a jeans line that means a number for every waist and inside-leg pairing in every colour. It is stock for the online range, not per-store availability: the anonymous page exposes delivery and collection services such as "Next-day Click & Collect" but no store-level count.

Do M&S Sparks member prices show up in the data?

Not as a member price. An anonymous page carries the promotion catalogue attached to the product: sparksOffers as bare loyaltyPromotionCode values on listing cards, and productLoyaltyPromotion on the page with promoName, shortDesc and full terms in longDesc. Sparks is a personalised scheme where offers are activated before shopping, so the value a given member sees sits behind sign-in and we do not collect it.

Does the data cover Brands at M&S and the Irish site?

Both. Third-party labels such as Levi's, White Stuff and Skechers sit on the same /p/ URLs with the same identifier format; the marker is a category with brandSalesCategory set to true, plus the label name in the attributes block. The Irish storefront at /ie/ reuses the identical product code and SKU ids in euro. The wider international storefronts do not: a UK code does not resolve under /us/, /au/ and /de/, and those sites publish category sitemaps with no product sitemaps.

How it works

  1. 1

    Make a request

    You share your needs, expectations, and desired timeframe. We'll suggest the best solution based on your request and budget.

  2. 2

    We configure the crawlers

    Our specialists configure the crawlers and extract a sample dataset for your review before proceeding with the full-scale extraction.

  3. 3

    Collect and deliver

    Once you approve the sample, we launch the project and start full data collection. We gather, filter, and structure the data for easy use, delivering it on time in your preferred format.

  4. 4

    Maintain and support

    Our team manages ongoing processes, monitors website changes, and supports all data extraction cycles. We can also help integrate data into your systems or create dashboards to simplify analysis.

Request a quote

Tell us which sites, which fields and how often. A couple of lines is enough to start.

  • We reply within 1 business day
  • A sample dataset before the full run
  • We sign an NDA on request
  • Delivery by API, JSON feed or files
Which sites, which fields, how often. A couple of lines is enough.

This form is protected by Google reCAPTCHA, which loads when you start filling it in; the Google Privacy Policy and Terms of Service apply. If you prefer not to use it, email us at info@scrapeit.io. Privacy & Cookie Policy

We reply within 1 business day. No obligation.

Marks & Spencer data from €169/month. Free project assessment, reply within 1 business day.