{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"0dd5c071-c172-4f6d-9af5-0c83b86378a7","name":"covid-19-nigeria-api","description":"# covid-19-nigeria-api\n\nA REST API to track confirmed coronavirus cases in Nigeria by state\n\nCOVID-19 Nigeria states data API\n\nCoronavirus 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 [Nigeria Centre For Disease Control](http://covid19.ncdc.gov.ng/) official website and exposes them as a **REST API** at [https://covidnigeria.herokuapp.com/api](https://covid-india-api.herokuapp.com/api)\n\n\n# Usage \n### REST API Sample Usage\ncURL Command:\n\n    curl --request GET \"https://covidnigeria.herokuapp.com/api\"\n\t\n### To run the server locally on your machine:\n\n    \n    git clone https://github.com/sink-opuba/covid-19-nigeria-api.git\n    cd covid-19-nigeria\n    npm install\n\n\n## API - Sample JSON \n\nSample API Response obtained from [https://covidnigeria.herokuapp.com/api](https://covidnigeria.herokuapp.com/api)\n\n```json\n\t\n\t{\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```\n\n## Contribution\nPull requests are welcomed to make changes. To make drastic changes, open an issue to discuss.\n\n## Contact\nMail me at sinkopus2000@gmail.com for further queries \n\n## License\n[MIT](https://github.com/sink-opuba/covid-19-nigeria-api/blob/master/LICENSE)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"9282328","collectionId":"0dd5c071-c172-4f6d-9af5-0c83b86378a7","publishedId":"SzYaUxJy","public":true,"publicUrl":"https://documenter-api.postman.tech/view/9282328/SzYaUxJy","privateUrl":"https://go.postman.co/documentation/9282328-0dd5c071-c172-4f6d-9af5-0c83b86378a7","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","version":"8.11.4","publishDate":"2020-04-02T11:49:12.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/SzYaUxJy"}