Get category taxonomy and IDs from Tesco UK

Retrieve the complete category taxonomy structure with category IDs that can be used with other category endpoints. No parameters required.

GET
/get-category-ids-for-uk

Authorization

RapidApiKey
X-RapidAPI-Key<token>

In: header

Header Parameters

X-RapidAPI-Host*string
Default"tesco-data-api.p.rapidapi.com"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/get-category-ids-for-uk" \  -H "X-RapidAPI-Host: tesco-data-api.p.rapidapi.com"
{
  "success": true,
  "data": {
    "taxonomy": [
      {
        "name": "Marketplace",
        "label": "superDepartment",
        "children": [
          {
            "name": "Top Deals",
            "label": "department",
            "children": [
              {
                "id": "b;TWFya2V0cGxhY2UlN0NUb3AlMjBEZWFscyU3Q0dhcmRlbiUyMCYlMjBPdXRkb29y",
                "label": "aisle",
                "name": "Garden & Outdoor"
              }
            ]
          }
        ]
      }
    ]
  }
}
{
  "success": false,
  "message": "Internal server error. Please try again later.",
  "error": "INTERNAL_ERROR"
}
{
  "success": false,
  "message": "Tesco API is currently unavailable. Please try again later.",
  "error": "TESCO_API_ERROR"
}