boj_get_data_code
Retrieve time series data from Bank of Japan databases using series codes. Supports multiple codes, date filtering, pagination, and automatic correction for invalid codes.
Instructions
Fetch time series data by SERIES_CODE(s). All specified codes must share the same frequency. Returns up to 250 series / 60,000 data points per request. If a code is invalid, the server tries metadata-assisted correction for close matches and returns concrete suggestions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Database code (e.g. 'CO' for Tankan) | |
| code | Yes | Comma-separated SERIES_CODE values from boj_get_metadata (e.g. 'TK99F1000601GCQ01000,TK99F2000601GCQ01000'). Do not prefix DB names or include quote-delimited legacy code formats. All codes must share the same frequency. Max 250 codes. | |
| lang | No | Language: 'jp' (Japanese, default) or 'en' (English) | |
| endDate | No | End date. Same format as startDate. Auto-conversion applies. | |
| startDate | No | Start date. Format: YYYY (annual), YYYYHH (semi-annual), YYYYQQ (quarterly), YYYYMM (monthly/weekly/daily period filter). YYYY-MM-DD and YYYYMMDD are auto-converted to BOJ-compatible period format. | |
| startPosition | No | Pagination: start position from NEXTPOSITION of a previous response |