COWIN is a cloud-based IT solution for planning, implementation, monitoring, and evaluation of Covid-19 vaccination in India.
The COWIN public API can be used to obtain the details of vaccination sessions available.
The API can be used
- to get available vaccination sessions on a specific date in a given pincode.
- to get available vaccination sessions on a specific date in a given district.
- to get available vaccination sessions for 7 days from a specific date in a given pincode.
- to get available vaccination sessions for 7 days from a specific date in a given district.
https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/[GET/POST method]?options={options}
-
Have Python 3.x setup in the system
-
Install the necessary packages
-
Run the code using the command
python cowin_api.py
and obtain the Output
- Choose the option to obtain details of vaccination sessions
- Entering wrong option prompts the user to enter the right option
- Enter the date in proper format
- Enter PINCODE or District ID according to the option entered
- Obtain the Output