Regional data payload parameters.

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.

Parameter
Default Value
Mandatory
Description
region_level
0
No
The number of levels below the requested region for which the data should be retrieved.
Model
1st available model in alphabetic order
No
Model data that is to be retrieved. Should be something like 'demographics' or 'economics'. available models vary by region level.
period_type
Y
No
Period type for which the data should be retrieved. Possible values are 'Y' (i.e year), 'Q' (i.e quarter), 'M' (i.e month), 'W' (i.e week), 'D' (i.e day).
period_from
2020
No
Start period for which the data should be retrieved. Format: YYYY-MM-DD.
period_to
Jan 1st of year.
No
End period for which the data should be retrieved. Format: YYYY-MM-DD.

Region level

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:

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: