boj_get_data_layer
Fetch time series data by hierarchical layer to browse Bank of Japan statistics by category. Supports wildcard for flexible series selection.
Instructions
Fetch time series data by layer (hierarchical structure). Useful for browsing data by category within a database. Supports wildcard '*'. Returns up to 1,250 series / 60,000 data points per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Database code (e.g. 'BP01' for Balance of Payments) | |
| lang | No | Language: 'jp' (Japanese, default) or 'en' (English) | |
| layer | Yes | Layer specification as comma-separated values (e.g. '1,1,1'). Use '*' as wildcard for any layer. Layer 1 is required; layers 2-5 are optional. | |
| endDate | No | End date. Same format as startDate. | |
| frequency | Yes | Frequency: CY=calendar year, FY=fiscal year, CH=calendar semi-annual, FH=fiscal semi-annual, Q=quarterly, M=monthly, W=weekly, D=daily | |
| startDate | No | Start date. Format depends on frequency: YYYY (annual), YYYYHH (semi-annual), YYYYQQ (quarterly), YYYYMM (monthly/weekly/daily period filter). YYYY-MM-DD and YYYYMMDD are auto-normalized. | |
| startPosition | No | Pagination: start position from NEXTPOSITION of a previous response |