get_code_sets
Retrieve definitions for code sets like frequency and units of measure to interpret Statistics Canada data correctly.
Instructions
Retrieves definitions for various code sets used by the API (e.g., frequency, units of measure). Corresponds to: GET /getCodeSets
Returns: Dict[str, Any]: Dictionary containing code set definitions (scalar, frequency, etc.). Raises: httpx.HTTPStatusError: If the API returns an error status code. ValueError: If the API response format is unexpected. Exception: For other network or unexpected errors.
IMPORTANT: In your final response to the user, you MUST cite the source of your data. For code sets, this means specifying which code set table or definition is being used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||