Marks & Spencer Product Scraper avatar

Marks & Spencer Product Scraper

Pricing

from $10.00 / 1,000 marks & spencer product scrapers

Go to Apify Store
Marks & Spencer Product Scraper

Marks & Spencer Product Scraper

Collect Marks & Spencer product records from public search/listing pages. Get IDs, titles, prices, ratings, variants, and stock indicators. Run with queries or M&S URLs; no sign-in. Pricing: Free: $0.01 per dataset item + $0.00005 per Actor start.

Pricing

from $10.00 / 1,000 marks & spencer product scrapers

Rating

0.0

(0)

Developer

Vitalii Bondarev

Vitalii Bondarev

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

Extract product records from public search results and listing pages on marksandspencer.com, including IDs, prices, ratings, variants, images and stock indicators. The Actor reads embedded page data and does not require an account or sign-in.

  • Scrape public M&S search and listing pages using search terms, URLs, or both.
  • Monitor product prices and previous prices across distinct product records.
  • Research catalog structure with product IDs, brands, categories, labels and product URLs.
  • Compare ratings, review counts, variants, images and stock indicators for product analysis.
  • Deduplicate repeated products across searches and supplied URLs.

What you get

The Actor reads product data embedded in public M&S pages. A field is omitted from the record when the page does not supply it.

Field or familyTypeDescription
product_idstringM&S product ID. Omitted when the page does not supply it.
product_external_idstringExternal product identifier. Omitted when the page does not supply it.
titlestringProduct name.
brandstringProduct brand. Omitted when the page does not supply it.
categorystringProduct category or product definition. Omitted when the page does not supply it.
urlstringProduct URL on marksandspencer.com.
pricenumberCurrent product price extracted from the page. Omitted when the page does not supply it.
currencystringCurrency associated with price. Omitted when the page does not supply it.
previous_pricenumberPrevious price when supplied by the page. Omitted when the page does not supply it.
ratingnumberProduct average rating when supplied. Omitted when the page does not supply it.
review_countintegerTotal review count when supplied. Omitted when the page does not supply it.
image_urlsarray of stringsProduct image URLs found on the listing or search page. Omitted when the page does not supply it.
variantsarray of objectsColour and size variants, including colour, size, sku, upc and variant price when present. Omitted when the page does not supply it.
labelsarray of objectsProduct labels with a name and associated string values. Omitted when the page does not supply it.
stock_indicatorstringThe site's stock-level indicator when supplied. Omitted when the page does not supply it.
online_onlybooleanWhether the page marks the product as online only. Omitted when the page does not supply it.
is_rangedbooleanWhether the page marks the product as ranged. Omitted when the page does not supply it.
scraped_atISO 8601 stringUTC timestamp generated when the record is created; not empty on returned records.

Sample output

This sample is shortened by omitting the record's image_urls, variants and scraped_at fields. The values shown are copied from one real dataset record.

{
"product_id": "61218892",
"product_external_id": "P60744571",
"title": "Pure Cashmere Crew Neck Jumper",
"brand": "Autograph",
"category": "Jumpers",
"url": "https://www.marksandspencer.com/pure-cashmere-crew-neck-jumper/p/clp60744571?color=NIGHTSHADE&image=SD_03_T30_4140A_Q5_X_EC_90",
"price": 99,
"currency": "GBP",
"rating": 4.466216216216216,
"review_count": 148,
"stock_indicator": "M",
"online_only": false,
"is_ranged": false
}

Pricing

The live billing model is pay per event.

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

EventWhat it coversFree-plan price
apify-actor-startCharged when the Actor starts, once per GB of run memory, with a minimum of one event.$0.00005 per event
apify-default-dataset-itemOne scraped result with all fields.$0.01 per event

On the Free plan, 10 results = $0.10005; 1,000 results = 1,000 × $0.01 + $0.00005 = $10.00005; and 10,000 results = 10,000 × $0.01 + $0.00005 = $100.00005. These examples use one minimum start event.

Apify Free plan includes $5 of monthly platform usage credit. The $5 monthly Free-plan credit covers 499 results in one run.

How to use

  1. Open the Actor in your Apify account and create a run.
  2. Enter one or more product search terms in queries, such as cashmere jumper.
  3. Add M&S category, product listing or search result pages in urls when you want to collect from supplied pages. The two inputs can be combined.
  4. Set maxResults to the maximum number of distinct product records to return.
  5. Start the run and inspect the dataset. The Actor follows available result pages, deduplicates repeated products, and stops when it reaches maxResults.
  6. Repeat the run through Apify Schedules; daily is a suitable starting point for monitoring listings or prices.
{
"queries": [
"cashmere jumper"
],
"maxResults": 10
}

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

Input parameters

ParameterWhat it doesDefault
queriesArray of product search terms for marksandspencer.com. Each non-empty query is searched separately.—
urlsOptional array of M&S category, product listing or search result URLs. Only valid marksandspencer.com or its subdomain URLs are used.—
maxResultsInteger limit for distinct product records across all queries and URLs. The minimum accepted value is 1. A value that cannot be read as an integer falls back to 50.50
proxyConfigurationApify proxy configuration. If proxy is disabled or not supplied, the Actor connects directly.Apify Proxy, RESIDENTIAL group

Limits and edge cases

ConditionWhat the buyer seesWhat to do
No non-empty queries and no valid urls are suppliedThe Actor logs Provide at least one M&S search query or listing URL and returns without collecting records.Supply at least one search term or valid M&S URL.
A supplied URL is not a marksandspencer.com URL, or contains a username or passwordThe URL is ignored and a warning is logged for a non-M&S URL.Use a URL whose host is marksandspencer.com or a subdomain, without embedded credentials.
maxResults is zero or negativeThe Actor logs that maxResults must be greater than zero and returns without collecting records.Use an integer of at least 1.
A product is repeated across searches or supplied URLsThe repeated product is skipped, so the dataset can contain fewer items than the number of matching cards.Add more relevant queries or URLs if you need more distinct products.
The run reaches maxResultsThe Actor stops after the configured number of distinct records, even if more products or pages remain.Increase maxResults for a larger collection.
A source has more than 100 result pages availableThe Actor processes no more than 100 pages for that source.Use additional relevant M&S source URLs or narrower searches if the required products are beyond that range.
A fetched page produces no product cards in the expected embedded dataThe Actor logs No product cards found and stops processing that source.Check that the URL is an M&S search or listing page and try the run again.
A page fetch raises an errorThe fetch operation makes up to three attempts. If it still raises an error, the Actor logs a warning and stops processing the current source.Check the source URL and run again. Records already pushed before that source error remain in the dataset.
A source page does not provide an optional valueThe corresponding field, such as previous_price, image_urls or labels, is omitted from that record.Treat source-derived optional fields as conditional and use the fields present in each record.

FAQ

How much does it cost to scrape Marks & Spencer products?

See the Pricing section.

Why did my run return no products?

See Limits and edge cases for the conditions that produce an empty or short dataset and for the log messages to check.

Why is the Actor not working for one of my pages?

See Limits and edge cases for what happens when a page fails to load or has no product cards.

The Actor accesses public search results and product listing pages on marksandspencer.com and does not require an account or sign-in. Source terms and applicable law depend on the buyer's use case, so review the relevant source terms and legal requirements for your intended use; this Actor does not provide a legal guarantee.

Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as USAGE_STATS in your own Apify key-value store.

To opt out, set disableUsageStats to true in the input. Nothing is sent then.

Full list of collected fields