{"info":{"_postman_id":"0dd5c071-c172-4f6d-9af5-0c83b86378a7","name":"covid-19-nigeria-api","description":"<html><head></head><body><h1 id=\"covid-19-nigeria-api\">covid-19-nigeria-api</h1>\n<p>A REST API to track confirmed coronavirus cases in Nigeria by state</p>\n<p>COVID-19 Nigeria states data API</p>\n<p>Coronavirus is sweeping through the world and confirmed cases in Nigeria are rising daily. The Nigerian government has no official public API yet. This API scrapes realtime data from the <a href=\"http://covid19.ncdc.gov.ng/\">Nigeria Centre For Disease Control</a> official website and exposes them as a <strong>REST API</strong> at <a href=\"https://covid-india-api.herokuapp.com/api\">https://covidnigeria.herokuapp.com/api</a></p>\n<h1 id=\"usage\">Usage</h1>\n<h3 id=\"rest-api-sample-usage\">REST API Sample Usage</h3>\n<p>cURL Command:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl --request GET \"https://covidnigeria.herokuapp.com/api\"\n</code></pre><h3 id=\"to-run-the-server-locally-on-your-machine\">To run the server locally on your machine:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>git clone https://github.com/sink-opuba/covid-19-nigeria-api.git\ncd covid-19-nigeria\nnpm install\n</code></pre><h2 id=\"api---sample-json\">API - Sample JSON</h2>\n<p>Sample API Response obtained from <a href=\"https://covidnigeria.herokuapp.com/api\">https://covidnigeria.herokuapp.com/api</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    \n    {\n    \"data\": {\n        \"totalConfirmedCases\": 174,\n        \"discharged\": 9,\n        \"death\": 2,\n        \"states\": [\n            {\n                \"id\": 1,\n                \"AbujaFCT\": 35\n            },\n            {\n                \"id\": 2,\n                \"Abia\": 0\n            },\n            {\n                \"id\": 3,\n                \"Adamawa\": 0\n            },\n            {\n                \"id\": 4,\n                \"AkwaIbom\": 5\n            },\n            {\n                \"id\": 5,\n                \"Anambra\": 0\n            },\n            {\n                \"id\": 6,\n                \"Bauchi\": 3\n            },\n            {\n                \"id\": 7,\n                \"Bayelsa\": 0\n            },\n            {\n                \"id\": 8,\n                \"Benue\": 1\n            },\n            {\n                \"id\": 9,\n                \"Borno\": 0\n            },\n            {\n                \"id\": 10,\n                \"CrossRiver\": 0\n            },\n            {\n                \"id\": 11,\n                \"Delta\": 0\n            },\n            {\n                \"id\": 12,\n                \"Ebonyi\": 0\n            },\n            {\n                \"id\": 13,\n                \"Enugu\": 2\n            },\n            {\n                \"id\": 14,\n                \"Edo\": 4\n            },\n            {\n                \"id\": 15,\n                \"Ekiti\": 2\n            },\n            {\n                \"id\": 16,\n                \"Gombe\": 0\n            },\n            {\n                \"id\": 17,\n                \"Imo\": 0\n            },\n            {\n                \"id\": 18,\n                \"Jigawa\": 0\n            },\n            {\n                \"id\": 19,\n                \"Kaduna\": 4\n            },\n            {\n                \"id\": 20,\n                \"Kano\": 0\n            },\n            {\n                \"id\": 21,\n                \"Katsina\": 0\n            },\n            {\n                \"id\": 22,\n                \"Kebbi\": 0\n            },\n            {\n                \"id\": 23,\n                \"Kogi\": 0\n            },\n            {\n                \"id\": 24,\n                \"Kwara\": 0\n            },\n            {\n                \"id\": 25,\n                \"Lagos\": 91\n            },\n            {\n                \"id\": 26,\n                \"Nasarawa\": 0\n            },\n            {\n                \"id\": 27,\n                \"Niger\": 0\n            },\n            {\n                \"id\": 28,\n                \"Ogun\": 4\n            },\n            {\n                \"id\": 29,\n                \"Ondo\": 0\n            },\n            {\n                \"id\": 30,\n                \"Osun\": 14\n            },\n            {\n                \"id\": 31,\n                \"Oyo\": 8\n            },\n            {\n                \"id\": 32,\n                \"Plateau\": 0\n            },\n            {\n                \"id\": 33,\n                \"Rivers\": 1\n            },\n            {\n                \"id\": 34,\n                \"Sokoto\": 0\n            },\n            {\n                \"id\": 35,\n                \"Taraba\": 0\n            },\n            {\n                \"id\": 36,\n                \"Yobe\": 0\n            },\n            {\n                \"id\": 37,\n                \"Zamfara\": 0\n            }\n        ]\n    }\n}\n\n</code></pre>\n<h2 id=\"contribution\">Contribution</h2>\n<p>Pull requests are welcomed to make changes. To make drastic changes, open an issue to discuss.</p>\n<h2 id=\"contact\">Contact</h2>\n<p>Mail me at <a href=\"mailto:sinkopus2000@gmail.com\">sinkopus2000@gmail.com</a> for further queries </p>\n<h2 id=\"license\">License</h2>\n<p><a href=\"https://github.com/sink-opuba/covid-19-nigeria-api/blob/master/LICENSE\">MIT</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"covid-19-nigeria-api","slug":"covid-19-nigeria-api"},{"content":"Usage","slug":"usage"}],"owner":"9282328","collectionId":"0dd5c071-c172-4f6d-9af5-0c83b86378a7","publishedId":"SzYaUxJy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-02T11:49:12.000Z"},"item":[{"name":"GET covid nigeria data","id":"a3c4057e-2120-4ad2-8124-f9e731034844","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://covidnigeria.herokuapp.com/api","description":"<p>covid nigeria data</p>\n","urlObject":{"protocol":"https","path":["api"],"host":["covidnigeria","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3c4057e-2120-4ad2-8124-f9e731034844"}]}