Discover/Ah API
live

Ah APIah.be ↗

Search products, retrieve detailed product data, and list current weekly promotions from Albert Heijn Belgium (ah.be) via a simple REST API.

Endpoint health
verified 2d ago
get_product
search_products
get_promotions
3/3 passing latest checkself-healing
Endpoints
3
Updated
2mo ago

What is the Ah API?

The ah.be API gives developers access to Albert Heijn Belgium's product catalog and weekly promotions through 3 endpoints. Call search_products with a Dutch-language query to retrieve up to 30 matching products per request — including prices, brand, category, and image URLs — or use get_product to pull full metadata for a specific item by its numeric ID.

This call costs1 credit / call— charged only on success
Try it
Search term (e.g. 'melk', 'brood', 'kaas'). Supports Dutch product names, brands, and categories.
→ api.parse.bot/scraper/e34b541a-61a5-48ef-9c1a-ebbe0be2ed8c/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e34b541a-61a5-48ef-9c1a-ebbe0be2ed8c/search_products?query=melk' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace ah-be-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Albert Heijn Belgium SDK — search, detail drill-down, promotions."""
from parse_apis.ah_be_api import AlbertHeijn, ProductNotFound

client = AlbertHeijn()

# Search for products and print summary info
for product in client.product_summaries.search(query="melk", limit=5):
    print(product.title, product.brand, product.price_now)

# Drill into the first search hit for full detail
hit = client.product_summaries.search(query="kaas", limit=1).first()
if hit is not None:
    detail = hit.details()
    print(detail.title, detail.summary)
    print("Highlights:", detail.highlights)
    print("Categories:", [c.name for c in detail.category_path])

# Point lookup by a known product ID (derived from search)
if hit is not None:
    try:
        full = client.products.get(product_id=str(hit.id))
        print(full.title, full.price_now, full.sales_unit_size)
    except ProductNotFound:
        print("Product no longer available")

# Browse current promotions
for promo in client.promotions.list(limit=3):
    print(promo.title, f"({promo.promotion_type})", len(promo.products), "products")

print("exercised: product_summaries.search / details / products.get / promotions.list")
All endpoints · 3 totalmissing one? ·

Search for products by text query. Returns up to 30 matching products per call with pricing, images, and category information. The total_found field indicates how many products match overall.

Input
ParamTypeDescription
queryrequiredstringSearch term (e.g. 'melk', 'brood', 'kaas'). Supports Dutch product names, brands, and categories.
Response
{
  "type": "object",
  "fields": {
    "products": "array of product objects with id, title, brand, prices, image, category",
    "total_found": "total number of matching products (may exceed the 30 returned)"
  },
  "sample": {
    "data": {
      "products": [
        {
          "id": 1525,
          "brand": "AH",
          "icons": [
            "NUTRISCORE_B",
            "VEGETARIAN",
            "AVAILABLE_IN_STORE"
          ],
          "title": "AH Halfvolle melk",
          "web_path": "/producten/product/wi1525/ah-halfvolle-melk",
          "highlight": null,
          "image_url": "https://static.ah.nl/dam/product/AHI_4354523130303337393339?revLabel=1&rendition=200x200_WEBP&fileType=binary",
          "price_now": 1.49,
          "price_was": 1.49,
          "shop_type": "AH",
          "is_orderable": true,
          "category_path": [
            {
              "id": 21622,
              "name": "Zuivel, eieren"
            },
            {
              "id": 21495,
              "name": "Melk"
            },
            {
              "id": 21934,
              "name": "Halfvolle melk"
            }
          ],
          "sales_unit_size": "1 l"
        }
      ],
      "total_found": 67
    },
    "status": "success"
  }
}

About the Ah API

Product Search and Details

The search_products endpoint accepts a query parameter (Dutch product names, brand names, or category terms such as 'melk' or 'kaas') and returns an array of product objects, each carrying an id, title, brand, prices, image, and category. The total_found field reflects the full count of matches on ah.be, which may exceed the 30 products returned per call — useful for knowing whether a broader or more specific query would yield better coverage.

The get_product endpoint takes a numeric product_id — sourced from search results or promotion listings — and returns a richer record: summary (product description text), highlights (feature bullet points), price_now and price_was in euros, image_large (800×800) and image_small (200×200) image URLs, and a category_path array that traces the product from broad category down to specific subcategory.

Promotions

The get_promotions endpoint requires no parameters and returns the current weekly bonus deals organised into segments. Each segment object includes an id, title, subtitle, and promotion_type, plus a products array listing the items on deal. Note that products returned inside promotion segments do not include pricing fields; to get price data for a promoted product, pass its ID to get_product.

Coverage Notes

All data reflects the Belgian Albert Heijn assortment (ah.be), which differs from the Dutch ah.nl range in product selection, pricing, and promotions. Promotion data reflects the current weekly cycle as published on the site, so results will shift week to week.

Reliability & maintenanceVerified

The Ah API is a managed, monitored endpoint for ah.be — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when ah.be changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official ah.be API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a Belgian grocery price tracker using price_now and price_was fields from get_product
  • Aggregate weekly promotion deals by segment type using the get_promotions endpoint
  • Power a product search feature for a meal-planning app using search_products with Dutch ingredient queries
  • Compare Albert Heijn Belgium pricing across product categories using category_path from get_product
  • Monitor availability and description changes for specific products by polling get_product with known IDs
  • Populate a grocery list app with product images, using image_large and image_small URLs from product detail responses
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Albert Heijn Belgium provide an official developer API?+
Albert Heijn does not publish a public developer API for ah.be. There is no documented REST or GraphQL interface with API keys available to third-party developers on their site.
Do promoted products in `get_promotions` include pricing data?+
No. Product objects returned inside promotion segments do not include price fields. To retrieve price_now and price_was for a promoted item, take its ID and call get_product separately.
Does the API support paginating through all matching products from a search query?+
search_products returns up to 30 products per call and exposes total_found so you know the full match count, but there is no page or offset parameter to retrieve results beyond the first 30. You can fork this API on Parse and revise it to add a pagination parameter if your use case requires full result sets.
Does this API cover the Dutch ah.nl assortment, or only Belgian ah.be products?+
The API covers only Albert Heijn Belgium (ah.be). Product selection, pricing, and promotions on ah.be differ from the Dutch ah.nl. The API does not include ah.nl data. You can fork it on Parse and revise it to add an ah.nl endpoint if you need Dutch market coverage.
Can I retrieve historical pricing or past promotions?+
Not currently. The API returns current pricing via price_now and price_was, and promotions reflect the live weekly bonus cycle — no historical records are exposed. You can fork the API on Parse and revise it to log and store responses over time if you need a price history layer.
Page content last updated . Spec covers 3 endpoints from ah.be.
Related APIs in Food DiningSee all →