swiggy-analytics icon indicating copy to clipboard operation
swiggy-analytics copied to clipboard

Not fetching full history

Open nishanthvijayan opened this issue 4 years ago • 5 comments

I've been using swiggy for more than a year, but the tool only picked the last 35 or so orders whereas the total order count should've been well above 200. Maybe the API now returns paginated data?

nishanthvijayan avatar Nov 17 '19 17:11 nishanthvijayan

Same here something like this is happening with me. It says fetching 999 orders and then quietly returns 71.

image

aashutoshrathi avatar Feb 25 '20 08:02 aashutoshrathi

I'll look into this coming weekend probably. Thanks for reporting. If you'd like to poke around the codebase, feel free to.

mr-karan avatar Feb 26 '20 06:02 mr-karan

So, looks like Swiggy has started to limit the full history from the API, the total number of orders are now capped to 999.

image

Since the data from the API (and the web) itself isn't available I don't think there's much we can do about it. I can probably write a weekly exporter which runs as a cron job to fetch week orders and store the data but the object in it's current form won't have much use. A bit disappointed but I guess we have to live with it.

Thanks for using this project, I'll try to write the exporter soon :smile:

mr-karan avatar Apr 03 '20 16:04 mr-karan

I am getting this error: image

soumendrak avatar Jun 15 '22 09:06 soumendrak

for me, it's only giving 344, with the message to use the App for full history. image

@mr-karan possible to extract apis from the app?

shahidcodes avatar Feb 24 '23 01:02 shahidcodes

the limit is in last 1 year and not any arbitrary number

SurajBhari avatar Apr 08 '24 17:04 SurajBhari

what you can possibly do is look into the internal api for swiggy app. using something like mitmproxy and get it to fetch older orders ? possible ? the app uses certificate pinning so you have to patch the apk with apk-mitm in meantime i will try to do it in my meantime.

SurajBhari avatar Apr 08 '24 18:04 SurajBhari