Get time series by table coordinate
get_data_by_coordinateRetrieve data observations for any Statistics Canada table by selecting one member ID for each dimension, with optional limit on most recent periods.
Instructions
Fetch observations by choosing one member ID per dimension of a table (get them from get_table_metadata). Example: table 18100004 with member_ids [2, 2] = CPI, Canada, all-items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latest_n | No | N most recent periods | |
| member_ids | Yes | One member ID per dimension, in dimension order | |
| product_id | Yes | Table product ID, e.g. 18100004 |