The regional data payload parameters allow you to define a query to retrieve specific data from the Datagarden API. While all parameters are optional, default values will be applied if they are not specified.
Refer to the table below for a list of available parameters and their default values.
The region_level
parameter specifies the hierarchical level of subregions for which data is requested, relative to the region defined in the resource URL.
For example:
region_level
refers to the hierarchy within that country (e.g., states or provinces).region_level
refers to levels within that state’s hierarchy (e.g., counties).Thus, setting region_level
to 4 for the U.S. will return county-level data nationwide, while setting region_level
to 1 for New York State will return county-level data exclusively for New York State.
The possible values for region_level
vary depending on the type of region:
region_level
can range from 0 up to the total number of subregion levels for the specified subregion.region_level
can range from 0 up to the number of subregion levels within the country.region_level
can be either 0 or 1, where a value of 1 retrieves regional data for each country within the continent.region_level
can be provided.