Skip to content
Scrappa Get API key
Just Eat Takeaway API 1 credit / request

Just Eat Takeaway Allergens API Documentation

GET https://scrappa.co/api/justeat/allergens

Just Eat Takeaway Allergens API Documentation Get the product information of one menu item: allergens with level and type, additives, ingredients, nutrition table, Nutri-Score, brand and GTIN. The upstream fills these fields only where the restaurant published them, mostly grocery partners. When nothing is published, allergens_provided is false and the lists are empty; the call still costs 1 credit, because the upstream answered. Take the restaurant id from the restaurants endpoint and the product id from the id of a menu item. Cost: 1 credit per successful request.

Just Eat Takeaway Allergens API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/justeat/allergens
Auth header
x-api-key
Cost
1 credit / request
country = US restaurant_id = 1234567890 product_id = 1234567890
Response preview
200 OK
{
    "data": {
        "gtin": null,
        "brand": null,
        "country": "de",
        "servings": 1,
        "additives": [],
        "allergens": [],
        "nutrition": null,
        "legal_name": null,
        "product_id": "503880c5-0941-44e5-9206-a145a217f032",
        "ingredients": null,
        "nutri_score": null,
        "restaurant_id": "10614123",
...

Parameters

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

Runnable path

3 required parameters needed before sending a request.

country string Required

Country code: de, nl, it, be, at, ch, es, pl or uk.

Example value US
restaurant_id string Required

Restaurant id from the restaurants endpoint, for example 10614123.

Example value 1234567890
product_id string Required

Item id from the menu endpoint.

Example value 1234567890

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": {
        "gtin": null,
        "brand": null,
        "country": "de",
        "servings": 1,
        "additives": [],
        "allergens": [],
        "nutrition": null,
        "legal_name": null,
        "product_id": "503880c5-0941-44e5-9206-a145a217f032",
        "ingredients": null,
        "nutri_score": null,
        "restaurant_id": "10614123",
        "additives_provided": false,
        "allergens_provided": false,
        "additional_information": null
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "justeat_allergens"
    },
    "success": true
}

Errors

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

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "product_id": [
            "The product id is required. Use an item id from the menu endpoint."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

No such restaurant, product or page exists. Use the ids and slugs from the restaurants endpoint. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "No such restaurant, product or page was found. Use the ids from the restaurants endpoint."
    },
    "success": false
}
503

Service Unavailable

Just Eat Takeaway could not be reached or is busy. Retry in a few seconds. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Just Eat Takeaway API is temporarily unavailable. Please retry."
    },
    "success": false
}
502

Bad Gateway

Just Eat Takeaway answered in a form this API does not know. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false
    },
    "error": {
        "code": "PARSER_DRIFT",
        "message": "Just Eat Takeaway rejected the request. Check the parameters and try again."
    },
    "success": false
}

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.