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

403 Error #19

Closed m0j0r0j0 closed 3 years ago

m0j0r0j0 commented 3 years ago

i was using API for appointment availability but getting below error . It was working till yesterday. my request rate is also very less.

method:- org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden: [<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

ERROR... (919 bytes)] </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/chalukyamohanraj"><img src="https://avatars.githubusercontent.com/u/83578279?v=4" />chalukyamohanraj</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>What is domain name that you are using and your public IP?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/namanbansalcodes"><img src="https://avatars.githubusercontent.com/u/35342183?v=4" />namanbansalcodes</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Even I am facing this same issue. I have made sure my API requests are within the 100 calls per 5 minutes boundary. The call returns a 403 Error.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/VatsalHirpara"><img src="https://avatars.githubusercontent.com/u/34810279?v=4" />VatsalHirpara</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Facing same issue. I am requesting <5 times within 5 minutes. (Deployment : nodejs script on heroku )</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/namanbansalcodes"><img src="https://avatars.githubusercontent.com/u/35342183?v=4" />namanbansalcodes</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>I think the APIs are down for now</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/satheeshwaran"><img src="https://avatars.githubusercontent.com/u/4424149?v=4" />satheeshwaran</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>No API's are not down, they are working from the browser but throwing error via script.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/VatsalHirpara"><img src="https://avatars.githubusercontent.com/u/34810279?v=4" />VatsalHirpara</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Yes, works from browser but failing from script or REST client</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/namanbansalcodes"><img src="https://avatars.githubusercontent.com/u/35342183?v=4" />namanbansalcodes</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@m0j0r0j0 I don't think you should be sharing your public IP address</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/namanbansalcodes"><img src="https://avatars.githubusercontent.com/u/35342183?v=4" />namanbansalcodes</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>You mean the site is working, but the API is not, right? @VatsalHirpara </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/satheeshwaran"><img src="https://avatars.githubusercontent.com/u/4424149?v=4" />satheeshwaran</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>No it works when you hit <a href="https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByPin?pincode=600119&date=01-05-2021">https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByPin?pincode=600119&date=01-05-2021</a> from thr browser but not from a script.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/namanbansalcodes"><img src="https://avatars.githubusercontent.com/u/35342183?v=4" />namanbansalcodes</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@satheeshwaran Yes you are right, how could that be?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/namanbansalcodes"><img src="https://avatars.githubusercontent.com/u/35342183?v=4" />namanbansalcodes</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Add this as a parameter in your request</p> <p>headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/satheeshwaran"><img src="https://avatars.githubusercontent.com/u/4424149?v=4" />satheeshwaran</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Now it works without sending any headers.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/satheeshwaran"><img src="https://avatars.githubusercontent.com/u/4424149?v=4" />satheeshwaran</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@m0j0r0j0 Why did you close this ticket? We need to get the reason from the maintainer..</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/m0j0r0j0"><img src="https://avatars.githubusercontent.com/u/78229718?v=4" />m0j0r0j0</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>@m0j0r0j0 Why did you close this ticket? We need to get the reason from the maintainer..</p> </blockquote> <p>by mistake i closed it, Reopened.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/m0j0r0j0"><img src="https://avatars.githubusercontent.com/u/78229718?v=4" />m0j0r0j0</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>Now it works without sending any headers. @satishchandra-pandey its still not working, 403!</p> </blockquote> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/NimishKmr"><img src="https://avatars.githubusercontent.com/u/38225828?v=4" />NimishKmr</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>I get 403, using postman...</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/m0j0r0j0"><img src="https://avatars.githubusercontent.com/u/78229718?v=4" />m0j0r0j0</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>I get 403, using postman...</p> </blockquote> <p>@NimishKmr its wokring from postman:</p> <p>try hitting : <a href="https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/findByDistrict?district_id=365&date=07-05-2021">https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/findByDistrict?district_id=365&date=07-05-2021</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/NimishKmr"><img src="https://avatars.githubusercontent.com/u/38225828?v=4" />NimishKmr</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@m0j0r0j0 - What auth are you using? How do I get token for Bearer Authentication?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/m0j0r0j0"><img src="https://avatars.githubusercontent.com/u/78229718?v=4" />m0j0r0j0</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@NimishKmr not required.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/sarthakgupta072"><img src="https://avatars.githubusercontent.com/u/24408266?v=4" />sarthakgupta072</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@m0j0r0j0 Some endpoints are working and some are throwing 403 using script. Include the headers and every script will work.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/sidlal154"><img src="https://avatars.githubusercontent.com/u/83678658?v=4" />sidlal154</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>It is working from postman and from the browser, but isnt working from a script (Tried go, python reuests, python http) , getting 403</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mehtanilay10"><img src="https://avatars.githubusercontent.com/u/5275614?v=4" />mehtanilay10</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>For me also browser was working fine, but in postman getting 403. By adding <strong>User-Agent</strong> header that worked for me.</p> <pre><code>User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51</code></pre> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/sidlal154"><img src="https://avatars.githubusercontent.com/u/83678658?v=4" />sidlal154</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@mehtanilay10 yes thanks, adding headers works even for scripts</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/shrinivaspatwardhan"><img src="https://avatars.githubusercontent.com/u/1286310?v=4" />shrinivaspatwardhan</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@chalukyamohanraj we are seeing the same issue as well . We just saw the Rate limiting guideline that was updated today by the Cowin Team and we have modified our scripts accordingly. looks like our IP is still blocked. Can you please help us out. We do not intend to spoof the user-agent to access the API. Please let us know whats the way forward. web address: vaccinehunt.in @cowinapi please help </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>I am also facing the same error on my IP deployed on digital ocean at Bengaluru server</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>I tried using user-agent as well.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/pravinlondhe"><img src="https://avatars.githubusercontent.com/u/14991977?v=4" />pravinlondhe</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Facing the same issue in the android app.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@cowinapi I am sending 75 requests per 5 mins. Why I am getting REQUEST BLOCKED</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/tushar1032"><img src="https://avatars.githubusercontent.com/u/25564163?v=4" />tushar1032</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Same issue still getting the 403 and I am well within the rate limit. The API works for browser but not for script.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/udaysingh236"><img src="https://avatars.githubusercontent.com/u/43721488?v=4" />udaysingh236</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Adding the user agent header is working, if it is still not working for some one then its because of your postman caches. Try clicking on the upper right hand side button which says "code" .... select curl from drop down and make a curl request from git bash. It will work. The user agent header was the problem</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@udaysingh236 I am not using postman. I have a scheduler on a digitalocean droplet which tries to access API. </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/tushar1032"><img src="https://avatars.githubusercontent.com/u/25564163?v=4" />tushar1032</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>Facing same issue. I am requesting <5 times within 5 minutes. (Deployment : nodejs script on heroku )</p> </blockquote> <p>Hi, I too tried to deploy the app on heroku but it seems the api has some kind of geo fencing where it does not allow servers based outside India to interact. I tried to find out if heroku had a server in India but could not find one. Can anyone help me with this or any other cloud platform ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@tushar1032 I have used Digitalocean's bangalore server. But they have blocked my IP for now </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/tushar1032"><img src="https://avatars.githubusercontent.com/u/25564163?v=4" />tushar1032</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@mtwn105 Thanks! I will try that. But I don't think they blocked your IP, did you exceed the rate limit? because if it is 403 error it got fixed with adding the header.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/udaysingh236"><img src="https://avatars.githubusercontent.com/u/43721488?v=4" />udaysingh236</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Yes request coming from outside India is blocked. </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kaushikpuka1998"><img src="https://avatars.githubusercontent.com/u/52675676?v=4" />kaushikpuka1998</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>No it works when you hit <a href="https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByPin?pincode=600119&date=01-05-2021">https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByPin?pincode=600119&date=01-05-2021</a> from thr browser but not from a script.</p> </blockquote> <p>Same here it is working from browser fbut from REST is not working</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@tushar1032 I tried setting user agent too. It worked for some time then again 403. ☹️</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Any other suggestions welcome</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/mtwn105"><img src="https://avatars.githubusercontent.com/u/12975481?v=4" />mtwn105</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Is @cowinapi gonna help us in these issues? </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kartikaydw"><img src="https://avatars.githubusercontent.com/u/29667494?v=4" />kartikaydw</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>@mtwn105 for python requests it works like this header = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} link = f"<a href="https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=294&date={date}-05-2021">https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=294&date={date}-05-2021</a>" f = requests.get(link, headers=header)</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kaushikpuka1998"><img src="https://avatars.githubusercontent.com/u/52675676?v=4" />kaushikpuka1998</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>after adding header user-agent in postman it works but when I tried to work in dart after adding header that shows forbidden as response body</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kartikaydw"><img src="https://avatars.githubusercontent.com/u/29667494?v=4" />kartikaydw</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Not sure how Dart works , but its working with python requests make sure you are hitting from India</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/anuragxxd"><img src="https://avatars.githubusercontent.com/u/58766532?v=4" />anuragxxd</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>In production env too it is showing STATUS_CODE 403 even when I use user-agent header.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/anuragxxd"><img src="https://avatars.githubusercontent.com/u/58766532?v=4" />anuragxxd</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <blockquote> <p>Facing same issue. I am requesting <5 times within 5 minutes. (Deployment : nodejs script on heroku )</p> </blockquote> <p>Hi, I too tried to deploy the app on heroku but it seems the api has some kind of geo fencing where it does not allow servers based outside India to interact. I tried to find out if heroku had a server in India but could not find one. Can anyone help me with this or any other cloud platform ?</p> </blockquote> <p>It isn't because of the geo fencing because if you try the other API routes like "<a href="https://cdn-api.co-vin.in/api/v2/admin/location/states">https://cdn-api.co-vin.in/api/v2/admin/location/states</a>" it will work fine (maybe because I am making request to this route occasionally) but STATUS_CODE remains in some routes to which I am making repetitive request (while being in the limit). </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/darthva"><img src="https://avatars.githubusercontent.com/u/22892820?v=4" />darthva</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>No luck with the headers. Still getting 403. Anyone else still facing the issue.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/sanjaychembali"><img src="https://avatars.githubusercontent.com/u/9252049?v=4" />sanjaychembali</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>No luck for me too on postman, even using the headers</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/ankit0415"><img src="https://avatars.githubusercontent.com/u/57391337?v=4" />ankit0415</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Is there any public document mentioning the rate-limits? I assume all these 403s are because of rate-limits. Would have been nicer, if these rate-limits are published somewhere (ideally should be on the homepage of the repo).</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gayu19"><img src="https://avatars.githubusercontent.com/u/59776256?v=4" />gayu19</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Still facing the 403 issue, till yesterday evening everything was fine, suddenly it started giving 403 error, below is the summary I have got from discussion:</p> <ol> <li>Getting 403 from Postman, scripts</li> <li>If we add user agent header explicitly in our scripts then it works perfectly fine.</li> </ol> <p>But the question here is are we allowed to change the user agent header explicitly, I mean is it a valid way to do that or by doing that we are violating any rules that I am not sure. @cowinapi can you please let us know what is the issue and what work around we need to choose</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gayu19"><img src="https://avatars.githubusercontent.com/u/59776256?v=4" />gayu19</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>Is there any public document mentioning the rate-limits? I assume all these 403s are because of rate-limits. Would have been nicer, if these rate-limits are published somewhere (ideally should be on the homepage of the repo).</p> </blockquote> <p>100 API calls per 5 minutes per IP, try to open the link in incognito, you will see the details <a href="https://apisetu.gov.in/public/marketplace/api/cowin/cowin-public-v2">https://apisetu.gov.in/public/marketplace/api/cowin/cowin-public-v2</a>#/</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/thesuhas"><img src="https://avatars.githubusercontent.com/u/54014218?v=4" />thesuhas</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <blockquote> <p>@mtwn105 for python requests it works like this header = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} link = f"<a href="https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=294&date=%7Bdate%7D-05-2021">https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=294&date={date}-05-2021</a>" f = requests.get(link, headers=header)</p> </blockquote> <p>Worked for me on using this, thanks! Could you explain how adding the <code>User-Agent</code> header helped fix things?</p> </div> </div> <div class="page-bar-simple"> <a href="/cowinapi/developer.cowin/19?page=2" class="next">Next</a> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>