andrewthong / covid19tracker-api

API backend for COVID-19 Tracker Canada project
https://api.covid19tracker.ca/
MIT License
37 stars 5 forks source link

Unfamiliar with retrieving a specific province's report #38

Closed spicykimche closed 3 years ago

spicykimche commented 3 years ago

Hello,

In your API docs, it shows that when getting https://api.covid19tracker.ca/reports?fill_dates&stat=&date&after&before, it returns data from ALL provinces. Is there a way to specify a province?

Cheers,

noahlittle commented 3 years ago

Hi there,

The report for a specific province can be called using the following format:

https://api.covid19tracker.ca/reports/province/sk

Note that 'sk' can be replaced with any province code to return the data for that specific province.

All the best!