Carrefour Categories API
A country's whole Carrefour category tree, each category with its parent and whether it holds products.
- By request Access by contact
- Updated
- carrefourksa.categories.list
{ "categories": [ { "name": "Fresh Food", "title": "Fresh Food", "id": "FKSA1600000", "leaf": false, "level": 1, "parent": "", "thumbnail": "https://cdnprod.mafretailproxy.com/sys-master-root/hea/h28/10752247365662/FreshFood.png", "url": "/c/FKSA1600000" }, { "name": "Chilled Food Counter", "title": "Chilled Food Counter", "id": "FKSA1620000", "leaf": false, "level": 2, "parent": "FKSA1600000", "url": "/c/FKSA1620000" } ]}
| # | Name | Title | Leaf | Level | Parent | Thumbnail | Id | Url |
|---|---|---|---|---|---|---|---|---|
| 1 | Fresh Food | Fresh Food | false | 1 | https://cdnprod.mafretailproxy.com/sys-master-root/hea/h28/1075… | FKSA1600000 | /c/FKSA1600000 | |
| 2 | Chilled Food Counter | Chilled Food Counter | false | 2 | FKSA1600000 | FKSA1620000 | /c/FKSA1620000 | |
| 3 | Cold Cuts & Meat Snacks | Cold Cuts & Meat Snacks | true | 3 | FKSA1620000 | https://hybrisproduction.blob.core.windows.net/sys-master-prod/… | FKSA1620100 | /c/FKSA1620100 |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| country | string | no | sa for Saudi Arabia (the default), ae for the UAE, eg for Egypt or qa for Qatar. | sa |
| lang | string | no | en for English names or ar for Arabic. | en |
| latitude | string | no | Latitude of the store area; by default the country's main store area. | |
| longitude | string | no | Longitude of the store area. |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | What it is | Example |
|---|---|---|---|
| categories[].name | string | The name of the category or product. | Fresh Food |
| categories[].title | string | The category's title. | Fresh Food |
| categories[].id | string | Carrefour's ID for it. | FKSA1600000 |
| categories[].leaf | boolean | Whether the category has no sub-categories. | false |
| categories[].level | integer | How deep the category sits in the tree. | 1 |
| categories[].parent | string | The parent category. | |
| categories[].thumbnail | string | https://cdnprod.mafretailproxy.com/sys-master-root/hea/h28/1075… | |
| categories[].url | string | The page on Carrefour. | /c/FKSA1600000 |
| categories | array | The categories. | 3 records |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "carrefourksa.categories.list", "input": { "country": "sa", "lang": "en" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "carrefourksa.categories.list", "input": { "country": "sa", "lang": "en" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "carrefourksa.categories.list", "input": { "country": "sa", "lang": "en" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
With Upscrape, get the Carrefour categories for country "sa" and lang "en". Tell me what it costs before you run it, then show the results as a table.
More from the Carrefour API
The same data from other platforms
Carrefour Categories API FAQ
The short answers. The docs have the long ones.
How much does the Carrefour Categories API cost?
Access is arranged with us directly. Contact us and we set it up for your account.
What do I send?
Every input is optional; the input fields below list what each one does.
Do I need a Carrefour login?
No. It reads public Carrefour data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds carrefourksa.categories.list, checks its price and runs it with the same credits as the REST API.
Carrefour data, set up for you.
Access to Carrefour is arranged with us. Tell us what you need and we set it up.