cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Co-WIN Public API's cached response #541

Open meetmakwana19 opened 2 years ago

meetmakwana19 commented 2 years ago

My python script runs for 24hours at an interval of 3 seconds due to 100 requests im 5minutes criteria. The fetched response I'm getting inside my DB is usually 3-5-10 minutes late than the response which telegram-vaccine-slots-notifier(Eg.: Healthify one) gets.

I am attaching images here which shows that on 19th September 2021, Healthiy telegram tracker notified the slot at 8:20am with Dose1:40, Dose2:40 whereas my database got the insertion of the response at 8:21am with Dose1:24, Dose2:21 Conclusion : I am getting cached response from server side side cachingI think.

I tried adding headers for no-caching in the python code but isn't working too. If anyone has any suggestions on how to avoid cached response from cowin public api then please help.

4e131e76-79c4-44c1-b132-a54625271d2e ffff83ee-d4d4-40d2-bbcd-db5687673b0c

siddhesh1770 commented 2 years ago

Yes, this is known issue and no one cares about fixing the same.

meetmakwana19 commented 2 years ago

Yes, this is known issue and no one cares about fixing the same.

It would really be great if you know any of the solution. I use calendarbyDistrict api

siddhesh1770 commented 2 years ago

You can use api endpoints of healthifyme unofficially like this, they have private access to Cowin data.

https://www.healthifyme.com/cowin/booking/meta/dayWiseSlots?dose=dose_1&language=en&district_id=393

meetmakwana19 commented 2 years ago

You can use api endpoints of healthifyme unofficially like this, they have private access to Cowin data.

https://www.healthifyme.com/cowin/booking/meta/dayWiseSlots?dose=dose_1&language=en&district_id=393

Can you please share the documentation of this Healthify's APIs as I couldn't find it. I want to know other endpoints like you had given example of dayWiseSlots. Your provided URL just returns a total present number of appointments on the CoWIN but I need exact data like CoWIN gives from their other endpoints like findbydistrict or calenderbydistrict.

siddhesh1770 commented 2 years ago

as i said this is unofficial way so there is no documentation, Just go to https://apps.healthifyme.com/vaccinateme and use browser dev options to track different endpoints and its params and headers