Skip to content

Instantly share code, notes, and snippets.

@xnumad
Last active September 29, 2025 11:21
Show Gist options
  • Save xnumad/4b5003dcd4db8f31d84e0f0dd0c433f8 to your computer and use it in GitHub Desktop.
Save xnumad/4b5003dcd4db8f31d84e0f0dd0c433f8 to your computer and use it in GitHub Desktop.
Rewe recipe (shopping list) API calls (to adapt to your own shopping list)
#!/bin/bash
curl -v 'https://www.rewe.de/shop/api/recipes/mapping?partnerDomain=chefkoch.de' \
-H 'accept: application/json' \
-H 'accept-language: en' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'dnt: 1' \
-H 'origin: https://www.chefkoch.de' \
-H 'pragma: no-cache' \
-H 'priority: u=1, i' \
-H 'referer: https://www.chefkoch.de/' \
-H 'sec-ch-ua: "Not)A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36' \
--data-raw '{"name":"Cannolis alla siciliana","recipeIngredient":["50 g Butter (weiche)","50 g Zucker"," Salz","3 Ei(er)","50 ml Wein (weiß)","2 Pck. Vanillinzucker","300 g Mehl"," Mehl (zum Bearbeiten)","500 g Butterschmalz (oder Pflanzenöl zum Frittieren)","500 g Ricotta","80 g Zucker","2 Pck. Vanillinzucker","2 EL Aroma (Orangenblütenwasser)","50 g Schokolade (bittere)","50 g Orangeat","50 g Zitronat (40 g kandierte Engelwurz (Angelika))","50 g Kirsche(n) (kandierte)"," Puderzucker (zum Bestreuen)"],"image":"https://img.chefkoch-cdn.de/rezepte/706821173277475/bilder/1145143/crop-960x540/cannoli-alla-siciliana.jpg"}'
#!/bin/bash
curl -v 'https://www.rewe.de/shop/api/recipes/mapping/?partnerDomain=maggi.de&servings=3' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'accept-language: en' \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'dnt: 1' \
-H 'origin: https://www.maggi.de' \
-H 'pragma: no-cache' \
-H 'priority: u=0, i' \
-H 'referer: https://www.maggi.de/rezepte/blumenkohl-hack-gratin' \
-H 'sec-ch-ua: "Not)A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
-H 'sec-fetch-dest: document' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-user: ?1' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36' \
--data-raw 'data=%7B%22%40type%22%3A%22Recipe%22%2C%22name%22%3A%22Blumenkohl-Hack-Gratin%22%2C%22description%22%3A%22Leckerer+Blumenkohl%3F+Ja+das+geht%21+Probiere+unser+schnelles+Rezept+f%C3%BCr+Blumenkohl-Hack-Gratin.+Mit+K%C3%A4se+%C3%BCberbacken+schmeckt+doch+alles+gleich+viel+besser.+%3B%29%22%2C%22keywords%22%3A%22Hauptspeise%2CDeutsche+K%C3%BCche%2CSommer%2CHerbst%2CEinfach%2CPortion+Gem%C3%BCse%2FObst%2CFleisch%2CProteinquelle%2CZuckerreduziert%2C%C3%9Cberbacken%2CAufl%C3%A4ufe+%26+Gratins%22%2C%22recipeYield%22%3A%223%22%2C%22recipeCuisine%22%3A%22Deutsche+K%C3%BCche%22%2C%22url%22%3A%22https%3A%2F%2Fwww.maggi.de%2Frezepte%2Fblumenkohl-hack-gratin%22%2C%22prepTime%22%3A%22PT6S%22%2C%22datePublished%22%3A%222018-04-28T06%3A09%3A04%2B0200%22%2C%22totalTime%22%3A%22PT18S%22%2C%22cookTime%22%3A%22PT12S%22%2C%22recipeInstructions%22%3A%22Backofen+auf+200%C2%B0C+Ober-%2FUnterhitze+%28170%C2%B0C+Umluft%29+vorheizen.%5CnKartoffeln+sch%C3%A4len+und+in+W%C3%BCrfel+schneiden.+Blumenkohl+putzen++waschen+und+in+R%C3%B6schen+teilen.%5CnIn+einer+Pfanne+THOMY+Reines+Sonnenblumen%C3%B6l+hei%C3%9F+werden+lassen.+Hackfleisch+darin+anbraten.+Kartoffelw%C3%BCrfel+zugeben+und+mitbraten.%5CnWasser+und+Sahne+zugeben.+MAGGI+Fix+f%C3%BCr+Blumenkohl-Kartoffel+Gratin+einr%C3%BChren+und+zum+Kochen+bringen.+Blumenkohlr%C3%B6schen+zugeben+und+ca.+5+Min.+kochen+lassen.%5CnIn+eine+Auflaufform+geben.+Mit+K%C3%A4se+bestreuen+und+im+Backofen+ca.+35+Min.+garen++bis+Kartoffeln+und+Blumenkohl+gar+sind.%22%2C%22recipeIngredient%22%3A%5B%22400+Gramm+Kartoffeln%22%2C%22300+Gramm+Blumenkohl%22%2C%221+Essl%C3%B6ffel+THOMY+Reines+Sonnenblumen%C3%B6l%22%2C%22200+Gramm+Hackfleisch++gemischt%22%2C%22400+Milliliter+Wasser%22%2C%22100+Milliliter+Schlagsahne%22%2C%221+Beutel+MAGGI+Fix+f%C3%BCr+Blumenkohl-Kartoffel+Gratin%22%2C%2250+Gramm+K%C3%A4se++gerieben%22%5D%2C%22recipeCategory%22%3A%22Hauptspeise%22%2C%22author%22%3A%7B%22%40type%22%3A%22Person%22%2C%22name%22%3A%22NESTHOST%5C%5Cdefiedleda%22%2C%22url%22%3A%22https%3A%2F%2Fwww.maggi.de%2Frezepte%2Fblumenkohl-hack-gratin%22%7D%2C%22nutrition%22%3A%7B%22%40type%22%3A%22NutritionInformation%22%2C%22calories%22%3A%22543%22%2C%22carbohydrateContent%22%3A%2232%22%2C%22fiberContent%22%3A%225%22%2C%22proteinContent%22%3A%2224%22%2C%22sodiumContent%22%3A%221185%22%2C%22sugarContent%22%3A%225%22%2C%22fatContent%22%3A%2235%22%2C%22saturatedFatContent%22%3A%2215%22%7D%2C%22image%22%3A%7B%22%40type%22%3A%22ImageObject%22%2C%22representativeOfPage%22%3A%22True%22%2C%22url%22%3A%22%2Fsites%2Fdefault%2Ffiles%2Fsrh_recipes%2Fdb285039a29d85830c897cb57b44be13.jpg%22%7D%2C%22%40context%22%3A%22https%3A%2F%2Fschema.org%22%2C%22overrides%22%3Anull%7D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment