Discover/marksandspencer.com API
live

marksandspencer.com APImarksandspencer.com

Access M&S UK food products, nutrition info, ingredients, allergens, and category listings via 4 structured endpoints.

Endpoints
4
Updated
14d ago
Try it

No input parameters required.

api.parse.bot/scraper/f50bd5ad-301e-4278-8cf4-a5ef67ba5897/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/f50bd5ad-301e-4278-8cf4-a5ef67ba5897/get_food_catalogue_categories' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Get the top-level food categories from the M&S food catalogue. Returns category names, URLs, and URL slugs that can be used with get_category_products.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "categories": "array of objects with name, url, and slug for each food category"
  },
  "sample": {
    "data": {
      "categories": [
        {
          "url": "https://www.marksandspencer.com/food/l/fruit-and-vegetables",
          "name": "Fruit & Vegetables",
          "slug": "fruit-and-vegetables"
        },
        {
          "url": "https://www.marksandspencer.com/food/l/meat",
          "name": "Meat",
          "slug": "meat"
        },
        {
          "url": "https://www.marksandspencer.com/food/l/dairy",
          "name": "Dairy",
          "slug": "dairy"
        }
      ]
    },
    "status": "success"
  }
}

About the marksandspencer.com API

The Marks & Spencer Food Catalogue API covers 4 endpoints that expose M&S UK food product data including category navigation, product listings, keyword search, and full product details. The get_product_details endpoint returns nutrition tables, ingredients, allergen information, storage instructions, and product images for any individual item. Category and search responses include product weight, brand, labels, and SEO URLs used to drill into product-level detail.

Category Navigation and Product Listings

The get_food_catalogue_categories endpoint returns the top-level food category tree — each entry includes a name, url, and slug. Those slugs feed directly into get_category_products, which accepts a required category_slug plus optional subcategory_slug and sub_subcategory_slug parameters to navigate up to three levels of hierarchy (for example, fruit-and-vegetablesfresh-fruitberries-and-cherries). The listing response includes products, subcategories, filters, total_items, total_pages, and current_page for full pagination control.

Search and Product Discovery

search_food_products accepts a query string (e.g. 'milk', 'chocolate cake') and an optional page integer. Results mirror the listing shape: an array of product objects each carrying id, title, weight, brand, labels, seoUrl, and imageUrl. The search_term field in the response echoes back the query used, which is useful when logging or caching results.

Full Product Detail

get_product_details takes a product_id (the numeric segment from the seoUrl after fdp) and a product_slug. It returns the deepest data available: a nutrition object with a categories array and a values array, an ingredients string, a storage string, breadcrumbs for category context, labels such as 'Eat Well' or 'New In', and an images array. The ingredients field may be empty for unprocessed fresh produce where M&S does not publish ingredient declarations.

Common use cases
  • Build a grocery comparison tool using weight, brand, and nutrition data from get_product_details.
  • Aggregate allergen and ingredient data across the M&S food range for dietary filtering apps.
  • Crawl the full product catalogue hierarchically using get_food_catalogue_categories then get_category_products subcategory slugs.
  • Power a meal-planning feature that displays calorie and macro data from the nutrition response field.
  • Monitor product label changes (e.g. 'New In', 'Eat Well') across categories for market trend tracking.
  • Index M&S food product images and descriptions for a visual search or product catalog application.
  • Search for specific products by keyword with search_food_products and surface results with pricing context from a parallel data source.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Marks & Spencer have an official public developer API?+
Marks & Spencer does not publish a public developer API for its food catalogue. This Parse API provides structured access to the product, nutrition, and category data available on marksandspencer.com.
What does `get_product_details` return beyond basic product info?+
It returns a nutrition object (with categories and values arrays), an ingredients string, storage instructions, labels, breadcrumbs, and an images array. The ingredients field may be empty for fresh unprocessed items where M&S does not publish an ingredients declaration.
Does the API cover customer reviews or star ratings for M&S food products?+
Not currently. The API covers product listings, nutrition, ingredients, allergens, storage, labels, and images. You can fork it on Parse and revise to add an endpoint targeting product review data.
Does the API return pricing for M&S food products?+
Not currently. The product objects returned by get_category_products and search_food_products include title, weight, brand, labels, and imageUrl, but not price fields. You can fork the API on Parse and revise it to add a pricing field to the product detail endpoint.
How does pagination work across endpoints?+
Both get_category_products and search_food_products accept an optional page integer. Responses include current_page, total_pages, and total_items, so you can iterate through the full result set programmatically. get_food_catalogue_categories and get_product_details are single-response endpoints with no pagination.
Page content last updated . Spec covers 4 endpoints from marksandspencer.com.
Related APIs in Food DiningSee all →
dia.es API
Browse and search products across Día supermarket's catalog, view product details, categories, and current offers available on dia.es. Find specific items, explore product categories and subcategories, and discover active promotions.
kroger.com API
Find Kroger grocery store locations across the US organized by state, city, and search parameters. Get detailed store information including directories and specifics for any Kroger location in your area.
coupons.com API
Search and discover coupons, printable offers, and store-specific deals from Coupons.com. Browse top featured offers, find deals across thousands of retailers, and access aggregated coupon data including discount amounts, usage conditions, and expiration details.
vivino.com API
Search and discover wines across thousands of options while accessing detailed information like user reviews, pricing, winery profiles, and food pairing recommendations. Explore grape varieties, compare wines side-by-side, and find the perfect bottle based on ratings and availability.
winecompanion.com.au API
Browse and explore Australian wineries from Wine Companion's comprehensive directory, including contact details, ratings, and regional locations. Search and filter by state, region, or facilities to find wineries across Australia.
liquor.com API
Find and browse thousands of cocktail recipes with ratings and user reviews, search drinks by ingredient or category, and read curated articles about spirits and mixology. Get detailed recipe instructions, comments from other users, and expert content all in one place.
bigbasket.com API
Browse and search BigBasket's online grocery catalog. Retrieve product details, pricing, stock availability, category trees, search suggestions, homepage promotions, and delivery coverage — all in one API.
opentable.com API
Search for restaurants across the US with ratings, reviews, photos, and pricing information, plus get real-time availability and autocomplete suggestions as you type. Check reservation openings and explore detailed restaurant features to find and book your perfect dining experience.