ahivert/tgtg-python

Unknown API point to get Scheduled Bag Order Times

Closed this issue · 6 comments

D-VR commented

For a few Months now Toogoodtogo has a new feature where it shows scheduled Order times. I.e. a store which gives out a bag everyday will show when the bag will go live to order.

See:
grafik

But the JSON from /api/item/ doesnt contain this data point.
Which means there probably is a separate API to request this data from.
I'm sadly not experienced in reverse Engineering API requests, else I would have tried to figure it out myself.

Would it be possible for someone more experienced to give it a try?
Thanks in advance and thank you for this great tool!

@D-VR good question

Hi @D-VR, thanks for your question.

You can find the value you are looking for in the get_item() response. It's called next_sales_window_purchase_start.

I've updated the readme with the updated response, this this commit 7f2a01d

D-VR commented

Thank you!

is next_sales_window_purchase_start is enclosed to response only when item is unavailable or also when its available? I am asking because I always get "None" value when I scrap for available items, despite some of them has "check again" note in the TGTG app

Are you using get_item() ? This value is not present when you get a list of items with get_items(). It's only present when retrieving one item with get_item() (without s).

On Sun, Nov 6, 2022, 12:42 swiezaczek @.> wrote: is next_sales_window_purchase_start is enclosed to response only when item is unavailable or also when its available? I am asking because I always get "None" value when I scrap available items, despite some of them has "check again" note in the TGTG app — Reply to this email directly, view it on GitHub <#195 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWV4UU4X7GIDATIJI4IYP3WG6KT5ANCNFSM6AAAAAARVPX2DI . You are receiving this because you commented.Message ID: @.>

Thanks