get_data
Fetch observations from Thailand NSO dataflows as TSV tables. Filter by dimensions and specify a Buddhist Era year range to get targeted statistics.
Instructions
Fetch observations for a dataflow as a TSV table, with reproducible CSV/curl URLs. Supports dimension filtering and a time range. Omit dimensions from dimension_filters to get all their values; pass multiple codes per dimension as an array. If no period is given, the latest available year is returned. IMPORTANT: start_period/end_period are Buddhist Era years (e.g. 2567 = 2024).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | full | |
| end_period | No | Buddhist-era end, e.g. '2567'. | |
| dataflow_id | Yes | Dataflow id, e.g. 'DF_01DI_IND_AGING'. | |
| start_period | No | Buddhist-era start, e.g. '2560'. | |
| dimension_filters | No | Map of dimension id -> array of codes, e.g. {"CWT": ["10"], "SEX": ["_T"]}. May also be that object JSON-encoded as a string. | |
| dimension_at_observation | No |