Get series
get_seriesMonthly series for an item (value, quantity, unit price, YoY, MoM, preliminary/revised). With flow=both, exports, imports and the balance side by side. Chapters and sections start in 1988; 9-, 6- and 4-digit codes start in 2022. Use freq=year for long-term trends, or set from for older months (without from, months start in January 2022). Some import chapters and sections for April 2018–December 2019 return no value but gap="source" with an explanation, because the source e-Stat table lacks data. This does not mean there was no trade. / 品目の月ごとの推移(金額・数量・単価・前年比・前月比・速報/確報)。flow=both なら輸出・輸入・差し引きを並べます。類・部は1988年から、9桁・6桁・4桁は2022年から。長期の推移は freq=year、月ごとの過去分は from を付けます(from を省くと2022年1月から)。輸入の類・部の 2018年4月〜2019年12月の一部は、元データ(e-Stat の統計表)に欠けがあるため値を返さず gap="source" と説明文を返します。取引が無かったという意味ではありません。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 月(YYYY-MM。省略時は最新の月) / Month as YYYY-MM (latest if omitted) | |
| code | Yes | 統計品目番号(9桁・6桁・4桁)か類(2桁)・部の番号。分からなければ search_items で探す / Statistical code (9, 6 or 4 digits) or chapter (2 digits) or section; use search_items to find it | |
| flow | Yes | export=輸出、import=輸入、both=両方と差し引き(6桁以上のみ) / export, import, or both with the balance (6-digit level and above only) | |
| freq | No | month=月ごと(既定)、year=年ごとの合計 / month (default) or yearly totals | |
| from | No | 月(YYYY-MM。省略時は最新の月) / Month as YYYY-MM (latest if omitted) | |
| lang | No | 答えの言葉(ja=日本語・既定、en=英語) / Response language (ja default, en) | |
| level | No | 区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted) | |
| country | No | 国コード(税関の3桁。000=全世界) / Country code (3-digit customs code, 000 = world) |