Visualize the API response
GET https://covid19.richdataservices.com/rds/api/query/int/jhu_country/select?cols=date_stamp,cnt_confirmed,cnt_death,cnt_recovered&where=(iso3166_1=US)&format=amcharts&limit=5000
Another way you can make each API request more informative is to use the [Qodex Visualizer] to visualize the response or provide more detail about what actions can be taken next by the API consumer. Providing built-in visualizations and responses can guide consumers through the API’s highlights making it more of a hands-on journey. Send this example request from the MTNA collection, and then check out the Visualize tab of the response body. Every API request in the MTNA collection has a visualization that guides you through how to use each individual API.
Body
PARAM
Key | Datatype | Required | Description |
cols
|
string | We want to see cases on a timeline, so lets make date the dimension, and plot counts of confirmed, deaths, and recovered cases. | |
where
|
string | Let's limit it to just the US. Want to see another country, change this to the country code of your choice | |
format
|
string | Our desired charting library. Other available formats are `PLOTLY_BAR`, `PLOTLY_BOXPLOT`, `PLOTLY_BUBBLE`, `PLOTLY_HIST`, `PLOTLY_PIE`, `GCHARTS` | |
limit
|
number | Limit results to 5000 |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"dataProvider": [
{
"date_stamp": "2020-01-22",
"cnt_confirmed": 1,
"cnt_death": 0,
"cnt_recovered": 0
},
{
"date_stamp": "2020-01-23& Curl curl -X GET 'https://covid19.richdataservices.com/rds/api/query/int/jhu_country/select?cols=date_stamp,cnt_confirmed,cnt_death,cnt_recovered&where=(iso3166_1=US)&format=amcharts&limit=5000?cols=date_stamp,cnt_confirmed,cnt_death,cnt_recovered&where=(iso3166_1=US)&format=amcharts&limit=5000' ENDPOINTS |