Skip to content
Scrappa Get API key
Sainsbury's API 1 credit / request

Sainsbury's PDP API Documentation

GET https://scrappa.co/api/sainsburys/pdp

Read public product data from the JSON-LD block on a Sainsbury's product page. Use this fallback when the feed is thin. 1 credit per successful request with data.

Sainsbury's PDP API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/sainsburys/pdp
Auth header
x-api-key
Cost
1 credit / request
url = https://example.com/product
Response preview
200 OK
{
    "data": {
        "product": {
            "name": "Sainsbury's Milk",
            "price": 1.4,
            "currency": "GBP"
        }
    },
    "meta": {
        "credits": 1,
        "endpoint_family": "product"
    },
    "success": true
}

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

url string Required
Open example

Sainsbury's product page URL, for example https://www.sainsburys.co.uk/gol-ui/product/milk.

Example value https://example.com/product

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "product": {
            "name": "Sainsbury's Milk",
            "price": 1.4,
            "currency": "GBP"
        }
    },
    "meta": {
        "credits": 1,
        "endpoint_family": "product"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

404

Not Found

No product data was found on the page.

503

Source Unavailable

The public source could not be reached.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.