ephes / kptncook

Fetch receipts from kptncook API and export them to mealie or paprika
MIT License
42 stars 4 forks source link

Fetch recipes based on different api endpoints #26

Open ephes opened 1 year ago

ephes commented 1 year ago

Here are some api endpoints, maybe it would be nice to have some cli commands to fetch recipes from those endpoints?

https://mobile.kptncook.com/discovery/list/curated/6512a9475100004c009f516a?favorites=5b99084f2700007d089e190c&lang=de&store=de&preferences=rt%3Adiet_vegetarian%2C

alternative list ids:
    6512a9475100004c009f516a
    6511394a4f0000a5050f686e
    64edb8195000001309c52a4c
    651673793c00001a073cc9c2
    6511394a4f0000a5050f686e

https://mobile.kptncook.com/discovery/list/automated/63778ff050000058041dd3a0?favorites=5eff3489690000937e9c421e%2C58da4cfc3900005f111778d4%2C53d043d770a559461ebed47f%2C5b99084f2700007d089e190c&lang=de&store=de&preferences=rt%3Adiet_vegetarian%2C

alternative list ids:
    63778ff050000058041dd3a0
    637790744c00002b04705c1a
    637e34864e00000801c96e72
    63779112480000e604488f09
    637f46234f00003600c27cf0
    637f46774400003800bf95e9
    637f489e4f00006e00ad3a91

https://mobile.kptncook.com/discovery/list/latest?lang=de&store=de&preferences=rt%3Adiet_vegetarian%2C

https://mobile.kptncook.com/discovery/list/recommended?lang=de&store=de&preferences=rt%3Adiet_vegetarian%2C

https://mobile.kptncook.com/discovery/screen?v=2&favorites=5b99084f2700007d089e190c&lang=de&store=de&preferences=rt%3Adiet_vegetarian%2C

https://mobile.kptncook.com/dailies?recipeFilter=veggie&store=de&zone=%2B02:00&isSubscribed=false&lang=de

POST https://mobile.kptncook.com/recipes/onboarding
    ?lang=de&store=de
data:
    {"tags":["rt:diet_vegetarian"]}

POST https://mobile.kptncook.com/recipes/search?lang=de&store=de

https://mobile.kptncook.com/ingredients/popular?lang=de&store=de

POST https://mobile.kptncook.com/recipes/withIngredients?lang=de&store=de
data:
    {"ingredientIds":["52bc0f4f91217a1c01a8ad4e"]}