HTTP API Information

You are free to use this API in any way you like. It pulls from the database powering the information on this website, and will update accordingly. I endeavour to only use official sources for the data, and the numbers get updated very soon after official releases of this information.

Republic of Ireland

/query.php?totalROI Number of cases in the Republic of Ireland
/query.php?deathsROI Number of deaths in the Republic of Ireland
/query.php?male Number of male cases (ROI)
/query.php?female Number of female cases (ROI)

Northern Ireland

/query.php?totalNI Number of cases in Northern Ireland
/query.php?deathsNI Number of deaths in Northern Ireland

Island of Ireland

/query.php?totalCases Number of total cases on the island of Ireland (ROI+NI)
/query.php?totalDeaths Number of total deaths on the island of Ireland (ROI+NI)

Example: Return the number of confirmed cases in Ireland and Northern Ireland.
Request: curl http://api.covid19.shanehastings.eu/query.php?totalCases
Response: 50


SSL

If you need to query with SSL, change the URL to https://covid19.shanehastings.eu/api/query.php