POST /api/ah/recipes/search
Price: 5 credits
Search Albert Heijn Allerhande recipes by keyword and by course, dish type, main ingredient, dietary wish, occasion, season, cooking technique and cuisine: title, courses, diets, cooking time, servings, rating, nutrition per serving, images and author.
Allerhande recipes by keyword and filter values as shown on the site in Dutch (course hoofdgerecht, special_diet vegetarisch, cuisine italiaans). Pass an id to ah/recipes for ingredients and steps.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)keyword string nullable — Search keyword; all recipes when empty (examples: "pasta")count integer required — Max number of results to return (min: 1; max: 2000)sort string nullable — Result order; the default is newest first (one of: "newest", "relevance", "rating", "total_time", "popular")course array — Only recipes of these courses (default: []; examples: ["hoofdgerecht"])dish_type array — Only recipes of these dish types (default: []; examples: ["pasta"])main_ingredient array — Only recipes with these main ingredients (default: []; examples: ["vis"])special_diet array — Only recipes meeting these dietary wishes (default: []; examples: ["vegetarisch"])occasion array — Only recipes for these occasions (default: []; examples: ["kerst"])season array — Only recipes of these seasons (default: []; examples: ["herfst"])cooking_technique array — Only recipes using these cooking techniques (default: []; examples: ["oven"])cuisine array — Only recipes of these cuisines (default: []; examples: ["italiaans"])@type string (default: "AhRecipeCard")id integer requiredtitle string nullablealias string nullableurl string nullablecourses array (default: [])diets array (default: [])flags array (default: [])cook_time_minutes integer nullableservings integer nullableservings_type string nullablerating number nullablerating_count integer nullablenutrition array (default: [])@type string (default: "AhRecipeNutrient")key string requiredname string nullablevalue number nullableunit string nullableimage string nullableimages array (default: [])author object nullable@type string (default: "AhRecipeAuthor")type string nullablename string nullableurl string nullablebrand string nullablebrand_supplier string nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — The entity was not found, or a precondition failed Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.