Skip to content
Scrappa Get API key
Albert Heijn API 1 credit / request

Albert Heijn Search API Documentation

GET https://scrappa.co/api/albert-heijn/search

Albert Heijn Search API searches public products by query or by a taxonomyId from the Categories route. One of the two is required. Pages are 0-based and the requested page and size are honoured. Results are deduplicated on product id.

Prices are numbers with EUR, with the previous price and discount where published. Images use a larger rendition. Supported filters are bonus, brand and dieet. An unsupported filter returns 422. Filters cannot be combined with taxonomyId or a non-default sort. Filtered answers have no total counts; has_next_page reflects a full page. Costs 1 credit per successful page; failed and empty answers are free.

Albert Heijn Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/albert-heijn/search
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "page": 0,
        "size": 5,
        "count": 5,
        "items": [
            {
                "id": "582865",
                "name": "Halfvolle melk",
                "price": 1.19,
                "currency": "EUR",
                "discount": 0.2,
                "position": 1,
                "unit_price": "EUR 0.79 per liter",
...

Parameters

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

Runnable path

This endpoint has no required query parameters.

8 optional filters available.

query string Optional

Search words, for example melk. Required unless taxonomyId is sent

Example value coffee shops
taxonomyId string Optional

Category id from the Categories route. Required unless query is sent

Example value example
page integer Optional

0-based page number, default 0

Example value 1
size integer Optional

Page size from 1 to 100, default 20

Example value 10
sortOn string Optional

RELEVANCE, PRICELOWHIGH, PRICEHIGHLOW, TAXONOMY or NUTRISCORE

Example value example
bonus boolean Optional

Only bonus products; false is the same as no filter

Example value true
brand string Optional

Brand slug filter, for example ah

Example value example
dieet string Optional

Diet property filter, for example biologisch

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": 0,
        "size": 5,
        "count": 5,
        "items": [
            {
                "id": "582865",
                "name": "Halfvolle melk",
                "price": 1.19,
                "currency": "EUR",
                "discount": 0.2,
                "position": 1,
                "unit_price": "EUR 0.79 per liter",
                "regular_price": 1.39
            }
        ],
        "query": "melk",
        "total_pages": 187
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

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

422

Unsupported filter

The requested filter cannot be honoured. Not billed.

503

Data unavailable

The source could not be reached. Not billed.

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.