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

Sainsbury's Search API Documentation

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

Search public Sainsbury's grocery products. Each item has name, brand, size, price, promotion, unit price, image, rating and category. Prices are GBP. 1 credit per successful request with data.

Sainsbury's Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/sainsburys/search
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "page": 1,
        "items": [
            {
                "id": "product_uid",
                "name": "Sainsbury's Milk",
                "price": 1.4,
                "currency": "GBP"
            }
        ],
        "query": "milk"
    },
    "meta": {
...

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.

3 optional filters available.

query string Required

Search text, for example milk.

Example value coffee shops
page integer Optional

Page from 1 to 20, default 1.

Example value 1
sort string Optional

-relevance, price, -price or -customer rating.

Example value relevance
category string Optional

Category id from filters or taxonomy.

Example value example

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": {
        "page": 1,
        "items": [
            {
                "id": "product_uid",
                "name": "Sainsbury's Milk",
                "price": 1.4,
                "currency": "GBP"
            }
        ],
        "query": "milk"
    },
    "meta": {
        "credits": 1,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

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

422

Filter Not Honoured

The requested sort or category was not returned by the source.

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.