e-Stat MCP

政府統計 (e-Stat) の API を通じて、統計データやメタ情報を取得するためのサービスです。

使うべきか

品質と安全性

B
説明の品質
90%
スキーマの完全性
92%
命名の品質
50%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(4)

  • LOWTool 'e-stat-get-data-catalog' description lacks action verbe-stat-get-data-catalog 内
  • LOWTool 'e-stat-get-stats-list' doesn't follow camelCase/snake_casee-stat-get-stats-list 内
  • LOWTool 'e-stat-get-meta-info' doesn't follow camelCase/snake_casee-stat-get-meta-info 内
  • LOWTool 'e-stat-get-data-catalog' doesn't follow camelCase/snake_casee-stat-get-data-catalog 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~7,274トークン数(ツール定義)
~14.4 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 5.68%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "e-stat": {
      "url": "https://mcp.n-3.ai/mcp?tools=e-stat-get-stats-list,e-stat-get-meta-info,e-stat-get-data-catalog"
    }
  }
}

リモートエンドポイント

https://mcp.n-3.ai/mcp?tools=e-stat-get-stats-list,e-stat-get-meta-info,e-stat-get-data-catalogstreamable-http

できること

ツール一覧

ツール(3)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢e-stat-get-stats-list(lang, surveyYears, openYears, statsField, statsCode, ...)

指定した条件に基づき、e-Statに登録されている統計表の一覧および基本情報(統計表ID、統計名、調査年月、公開日など)を取得する。実際の統計数値は含まれないため、ここで得た統計表IDを e-stat-get-stats-data ツールに渡して取得する。

入力スキーマ

{
  "type": "object",
  "properties": {
    "lang": {
      "description": "言語 (J: 日本語, E: 英語)",
      "type": "string",
      "enum": [
        "J",
        "E"
      ]
    },
    "surveyYears": {
      "description": "調査年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm)",
      "type": "string"
    },
    "openYears": {
      "description": "公開年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm)",
      "type": "string"
    },
    "statsField": {
      "description": "統計分野 大分類: 国土・気象=01, 人口・世帯=02, 労働・賃金=03, 農林水産業=04, 鉱工業=05, 商業・サービス業=06, 企業・家計・経済=07, 住宅・土地・建設=08, エネルギー・水=09, 運輸・観光=10, 情報通信・科学技術=11, 教育・文化・スポーツ・生活=12, 行財政=13, 司法・安全・環境=14, 社会保障・衛生=15, 国際=16, その他=99 小分類: 国土=0101, 気象=0102, 人口=0201, 世帯=0202, 人口動態=0203, 人口移動=0204, 労働力=0301, 賃金・労働条件=0302, 雇用=0303, 労使関係=0304, 労働災害=0305, 農業=0401, 畜産業=0402, 林業=0403, 水産業=0404, 鉱業=0501, 製造業=0502, 商業=0601, 需給流通=0602, サービス業=0603, 企業活動=0701, 金融・保険・通貨=0702, 物価=0703, 家計=0704, 国民経済計算=0705, 景気=0706, 住宅・土地=0801, 建設=0802, 電気=0901, ガス=0902, エネルギー需給=0903, 水=0904, 運輸=1001, 倉庫=1002, 観光=1003, 情報通信・放送=1101, 科学技術=1102, 知的財産=1103, 学校教育=1201, 社会教育=1202, 文化・スポーツ・生活=1203, 行政=1301, 財政=1302, 公務員=1303, 選挙=1304, 司法=1401, 犯罪=1402, 災害=1403, 事故=1404, 環境=1405, 社会保障=1501, 社会保険=1502, 社会福祉=1503, 保健衛生=1504, 医療=1505, 貿易・国際収支=1601, 国際協力=1602, その他=9999",
      "type": "string",
      "enum": [
        "10",
        "11",
        "12",
        "13",
        "14",
        "15",
        "16",
        "99",
        "1001",
        "1002",
        "1003",
        "1101",
        "1102",
        "1103",
        "1201",
        "1202",
        "1203",
        "1301",
        "1302",
        "1303",
        "1304",
        "1401",
        "1402",
        "1403",
        "1404",
        "1405",
        "1501",
        "1502",
        "1503",
        "1504",
        "1505",
        "1601",
        "1602",
        "9999",
        "01",
        "02",
        "03",
        "04",
        "05",
        "06",
        "07",
        "08",
        "09",
        "0101",
        "0102",
        "0201",
        "0202",
        "0203",
        "0204",
        "0301",
        "0302",
        "0303",
        "0304",
        "0305",
        "0401",
        "0402",
        "0403",
        "0404",
        "0501",
        "0502",
        "0601",
        "0602",
        "0603",
        "0701",
        "0702",
        "0703",
        "0704",
        "0705",
        "0706",
        "0801",
        "0802",
        "0901",
        "0902",
        "0903",
        "0904"
      ]
    },
    "statsCode": {
      "description": "作成機関コード(5桁)または政府統計コード(8桁)。作成機関コード: 内閣官房=00000, 内閣法制局=00010, 人事院=00020, 内閣府=00100, 宮内庁=00110, 公正取引委員会=00120, 国家公安委員会・警察庁=00130, 防衛庁=00140, 防衛施設庁=00141, 金融庁=00150, 消費者庁=00160, こども家庭庁=00170, デジタル庁=00180, 個人情報保護委員会=00190, 総務省=00200, 公害等調整委員会=00201, 消防庁=00202, 法務省=00250, 公安調査庁=00251, 外務省=00300, 財務省=00350, 国税庁=00351, 文部科学省=00400, 文化庁=00401, スポーツ庁=00402, 厚生労働省=00450, 社会保険庁=00451, 中央労働委員会=00452, 農林水産省=00500, 林野庁=00501, 水産庁=00502, 経済産業省=00550, 資源エネルギー庁=00551, 特許庁=00552, 中小企業庁=00553, 国土交通省=00600, 観光庁=00601, 気象庁=00602, 運輸安全委員会=00603, 海上保安庁=00604, 環境省=00650, 防衛省=00700",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "00000",
            "00010",
            "00020",
            "00100",
            "00110",
            "00120",
            "00130",
            "00140",
            "00141",
            "00150",
            "00160",
            "00170",
            "00180",
            "00190",
            "00200",
            "00201",
            "00202",
            "00250",
            "00251",
            "00300",
            "00350",
            "00351",
            "00400",
            "00401",
            "00402",
            "00450",
            "00451",
            "00452",
            "00500",
            "00501",
            "00502",
            "00550",
            "00551",
            "00552",
            "00553",
            "00600",
            "00601",
            "00602",
            "00603",
            "00604",
            "00650",
            "00700"
          ]
        },
        {
          "type": "string",
          "pattern": "^\\d{8}$"
        }
      ]
    },
    "searchWord": {
      "description": "検索キーワード (AND, OR, NOT使用可能)",
      "type": "string"
    },
    "searchKind": {
      "description": "検索データ種別 (1:統計情報, 2:小地域・地域メッシュ)",
      "type": "string",
      "enum": [
        "1",
        "2"
      ]
    },
    "collectArea": {
      "description": "集計地域区分 (1:全国, 2:都道府県, 3:市区町村)",
      "type": "string",
      "enum": [
        "1",
        "2",
        "3"
      ]
    },
    "explanationGetFlg": {
      "description": "解説情報有無",
      "type": "string",
      "enum": [
        "Y",
        "N"
      ]
    },
    "startPosition": {
      "description": "データ取得開始位置。前回応答の nextKey を指定すると続きを取得できる",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 20,
      "description": "データ取得件数 (省略時は20件、最大50件)",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "updatedDate": {
      "description": "更新日付 (Format: 単年検索: yyyy, 単月検索: yyyymm, 単日検索: yyyymmdd, 範囲検索: yyyymmdd-yyyymmdd)",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "totalCount": {
      "type": "number",
      "description": "検索条件に該当した統計表の総数"
    },
    "fromNumber": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "今回取得した範囲の開始位置"
    },
    "toNumber": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "今回取得した範囲の終了位置"
    },
    "nextKey": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "続きがある場合の次の取得開始位置。startPosition に指定する"
    },
    "tables": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "statsDataId": {
            "type": "string",
            "description": "統計表ID"
          },
          "statName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "統計名(例: 人口推計)"
          },
          "govOrg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "作成機関"
          },
          "statisticsName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "提供統計名"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "統計表題名"
          },
          "cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "提供周期"
          },
          "surveyDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "調査年月"
          },
          "openDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "公開日"
          },
          "collectArea": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "集計地域区分"
          },
          "mainCategory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "統計大分野"
          },
          "subCategory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "統計小分野"
          },
          "overallTotalNumber": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "統計表の全データ件数(セル数)"
          },
          "updatedDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "最終更新日"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "解説"
          }
        },
        "required": [
          "statsDataId",
          "statName",
          "govOrg",
          "statisticsName",
          "title",
          "cycle",
          "surveyDate",
          "openDate",
          "collectArea",
          "mainCategory",
          "subCategory",
          "overallTotalNumber",
          "updatedDate",
          "description"
        ],
        "additionalProperties": false
      },
      "description": "統計表の一覧"
    }
  },
  "required": [
    "totalCount",
    "fromNumber",
    "toNumber",
    "nextKey",
    "tables"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢e-stat-get-meta-info(lang, statsDataId, explanationGetFlg, classId, classLimit, ...)

e-stat-get-stats-list ツールで取得した統計表IDに基づいて、メタ情報(分類項目、地域区分、時間軸、表章事項などの構造情報)を取得する。ここで得た分類ID・項目コードは e-stat-get-stats-data ツールの絞り込み引数(cdCat01, cdArea など)に指定する。

入力スキーマ

{
  "type": "object",
  "properties": {
    "lang": {
      "description": "言語 (J: 日本語, E: 英語)",
      "type": "string",
      "enum": [
        "J",
        "E"
      ]
    },
    "statsDataId": {
      "type": "string",
      "description": "統計表情報取得ツール(e-stat-get-stats-list)で取得した統計表ID"
    },
    "explanationGetFlg": {
      "description": "解説情報有無",
      "type": "string",
      "enum": [
        "Y",
        "N"
      ]
    },
    "classId": {
      "description": "項目を取得する分類事項を限定する(例: cat01, area, time, tab)。指定しない分類は件数のみ返す",
      "type": "string"
    },
    "classLimit": {
      "default": 100,
      "description": "分類ごとに返す項目数の上限(省略時は100件。全項目数以上を指定すると全量取得できる)",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "classNameFilter": {
      "description": "分類項目名の部分一致フィルタ(例: 東京)。該当する項目のみ返す",
      "type": "string"
    }
  },
  "required": [
    "statsDataId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "table": {
      "type": "object",
      "properties": {
        "statsDataId": {
          "type": "string",
          "description": "統計表ID"
        },
        "statName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "統計名(例: 人口推計)"
        },
        "govOrg": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "作成機関"
        },
        "statisticsName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "提供統計名"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "統計表題名"
        },
        "cycle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "提供周期"
        },
        "surveyDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "調査年月"
        },
        "openDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "公開日"
        },
        "collectArea": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "集計地域区分"
        },
        "mainCategory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "統計大分野"
        },
        "subCategory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "統計小分野"
        },
        "overallTotalNumber": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "統計表の全データ件数(セル数)"
        },
        "updatedDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "最終更新日"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "解説"
        }
      },
      "required": [
        "statsDataId",
        "statName",
        "govOrg",
        "statisticsName",
        "title",
        "cycle",
        "surveyDate",
        "openDate",
        "collectArea",
        "mainCategory",
        "subCategory",
        "overallTotalNumber",
        "updatedDate",
        "description"
      ],
      "additionalProperties": false,
      "description": "統計表の基本情報"
    },
    "classifications": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "分類ID(tab / area / time / cat01 など)。e-stat-get-stats-data では cd を付けた引数(cat01 → cdCat01)で絞り込みに使う"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "分類名"
          },
          "totalCount": {
            "type": "number",
            "description": "この分類の全項目数"
          },
          "returnedCount": {
            "type": "number",
            "description": "今回返した項目数"
          },
          "truncated": {
            "type": "boolean",
            "description": "項目が省略されている場合 true。classId・classLimit・classNameFilter で絞り込み・全量取得ができる"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "項目コード。e-stat-get-stats-data の絞り込み引数に指定する値"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "項目名"
                },
                "level": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "階層レベル"
                },
                "unit": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "単位"
                },
                "parentCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "親項目のコード"
                }
              },
              "required": [
                "code",
                "name",
                "level",
                "unit",
                "parentCode"
              ],
              "additionalProperties": false
            },
            "description": "分類項目の一覧"
          }
        },
        "required": [
          "id",
          "name",
          "totalCount",
          "returnedCount",
          "truncated",
          "items"
        ],
        "additionalProperties": false
      },
      "description": "分類事項(表章事項・地域・時間軸・分類)の一覧"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "項目の省略が発生した場合の案内"
    }
  },
  "required": [
    "table",
    "classifications",
    "note"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢e-stat-get-data-catalog(lang, surveyYears, openYears, statsField, statsCode, ...)

e-Statに登録されている統計データベースのカタログ情報(統計名、説明、提供状況、ファイルのダウンロードURLなど)を取得する。統計データの全体像把握やファイル取得用途に使用する。

入力スキーマ

{
  "type": "object",
  "properties": {
    "lang": {
      "description": "言語 (J: 日本語, E: 英語)",
      "type": "string",
      "enum": [
        "J",
        "E"
      ]
    },
    "surveyYears": {
      "description": "調査年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm)",
      "type": "string"
    },
    "openYears": {
      "description": "公開年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm)",
      "type": "string"
    },
    "statsField": {
      "description": "統計分野 大分類: 国土・気象=01, 人口・世帯=02, 労働・賃金=03, 農林水産業=04, 鉱工業=05, 商業・サービス業=06, 企業・家計・経済=07, 住宅・土地・建設=08, エネルギー・水=09, 運輸・観光=10, 情報通信・科学技術=11, 教育・文化・スポーツ・生活=12, 行財政=13, 司法・安全・環境=14, 社会保障・衛生=15, 国際=16, その他=99 小分類: 国土=0101, 気象=0102, 人口=0201, 世帯=0202, 人口動態=0203, 人口移動=0204, 労働力=0301, 賃金・労働条件=0302, 雇用=0303, 労使関係=0304, 労働災害=0305, 農業=0401, 畜産業=0402, 林業=0403, 水産業=0404, 鉱業=0501, 製造業=0502, 商業=0601, 需給流通=0602, サービス業=0603, 企業活動=0701, 金融・保険・通貨=0702, 物価=0703, 家計=0704, 国民経済計算=0705, 景気=0706, 住宅・土地=0801, 建設=0802, 電気=0901, ガス=0902, エネルギー需給=0903, 水=0904, 運輸=1001, 倉庫=1002, 観光=1003, 情報通信・放送=1101, 科学技術=1102, 知的財産=1103, 学校教育=1201, 社会教育=1202, 文化・スポーツ・生活=1203, 行政=1301, 財政=1302, 公務員=1303, 選挙=1304, 司法=1401, 犯罪=1402, 災害=1403, 事故=1404, 環境=1405, 社会保障=1501, 社会保険=1502, 社会福祉=1503, 保健衛生=1504, 医療=1505, 貿易・国際収支=1601, 国際協力=1602, その他=9999",
      "type": "string",
      "enum": [
        "10",
        "11",
        "12",
        "13",
        "14",
        "15",
        "16",
        "99",
        "1001",
        "1002",
        "1003",
        "1101",
        "1102",
        "1103",
        "1201",
        "1202",
        "1203",
        "1301",
        "1302",
        "1303",
        "1304",
        "1401",
        "1402",
        "1403",
        "1404",
        "1405",
        "1501",
        "1502",
        "1503",
        "1504",
        "1505",
        "1601",
        "1602",
        "9999",
        "01",
        "02",
        "03",
        "04",
        "05",
        "06",
        "07",
        "08",
        "09",
        "0101",
        "0102",
        "0201",
        "0202",
        "0203",
        "0204",
        "0301",
        "0302",
        "0303",
        "0304",
        "0305",
        "0401",
        "0402",
        "0403",
        "0404",
        "0501",
        "0502",
        "0601",
        "0602",
        "0603",
        "0701",
        "0702",
        "0703",
        "0704",
        "0705",
        "0706",
        "0801",
        "0802",
        "0901",
        "0902",
        "0903",
        "0904"
      ]
    },
    "statsCode": {
      "description": "作成機関コード(5桁)または政府統計コード(8桁)。作成機関コード: 内閣官房=00000, 内閣法制局=00010, 人事院=00020, 内閣府=00100, 宮内庁=00110, 公正取引委員会=00120, 国家公安委員会・警察庁=00130, 防衛庁=00140, 防衛施設庁=00141, 金融庁=00150, 消費者庁=00160, こども家庭庁=00170, デジタル庁=00180, 個人情報保護委員会=00190, 総務省=00200, 公害等調整委員会=00201, 消防庁=00202, 法務省=00250, 公安調査庁=00251, 外務省=00300, 財務省=00350, 国税庁=00351, 文部科学省=00400, 文化庁=00401, スポーツ庁=00402, 厚生労働省=00450, 社会保険庁=00451, 中央労働委員会=00452, 農林水産省=00500, 林野庁=00501, 水産庁=00502, 経済産業省=00550, 資源エネルギー庁=00551, 特許庁=00552, 中小企業庁=00553, 国土交通省=00600, 観光庁=00601, 気象庁=00602, 運輸安全委員会=00603, 海上保安庁=00604, 環境省=00650, 防衛省=00700",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "00000",
            "00010",
            "00020",
            "00100",
            "00110",
            "00120",
            "00130",
            "00140",
            "00141",
            "00150",
            "00160",
            "00170",
            "00180",
            "00190",
            "00200",
            "00201",
            "00202",
            "00250",
            "00251",
            "00300",
            "00350",
            "00351",
            "00400",
            "00401",
            "00402",
            "00450",
            "00451",
            "00452",
            "00500",
            "00501",
            "00502",
            "00550",
            "00551",
            "00552",
            "00553",
            "00600",
            "00601",
            "00602",
            "00603",
            "00604",
            "00650",
            "00700"
          ]
        },
        {
          "type": "string",
          "pattern": "^\\d{8}$"
        }
      ]
    },
    "searchWord": {
      "description": "検索キーワード (AND, OR, NOT使用可能)",
      "type": "string"
    },
    "collectArea": {
      "description": "集計地域区分 (1:全国, 2:都道府県, 3:市区町村)",
      "type": "string",
      "enum": [
        "1",
        "2",
        "3"
      ]
    },
    "explanationGetFlg": {
      "description": "解説情報有無",
      "type": "string",
      "enum": [
        "Y",
        "N"
      ]
    },
    "dataType": {
      "description": "検索データ形式 (XLS, CSV, PDF, XML, DBなどカンマ区切り)",
      "type": "string"
    },
    "catalogId": {
      "description": "カタログID",
      "type": "string"
    },
    "resourceId": {
      "description": "カタログリソースID",
      "type": "string"
    },
    "startPosition": {
      "description": "データ取得開始位置。前回応答の nextKey を指定すると続きを取得できる",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 20,
      "description": "データ取得件数 (省略時は20件、最大50件)",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "updatedDate": {
      "description": "更新日付 (Format: 単年検索: yyyy, 単月検索: yyyymm, 単日検索: yyyymmdd, 範囲検索: yyyymmdd-yyyymmdd)",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "totalCount": {
      "type": "number",
      "description": "検索条件に該当したカタログの総数"
    },
    "fromNumber": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "今回取得した範囲の開始位置"
    },
    "toNumber": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "今回取得した範囲の終了位置"
    },
    "nextKey": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "続きがある場合の次の取得開始位置。startPosition に指定する"
    },
    "catalogs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "カタログID"
          },
          "statName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "統計名"
          },
          "organization": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "作成機関"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "データセット名"
          },
          "cycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "提供周期"
          },
          "surveyDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "調査年月"
          },
          "collectArea": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "集計地域区分"
          },
          "publisher": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "公開者"
          },
          "releaseDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "公開日"
          },
          "lastModifiedDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "最終更新日"
          },
          "landingPage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "e-Stat 上の掲載ページURL"
          },
          "resourceCount": {
            "type": "number",
            "description": "提供リソース(ファイル・データベース)の総数"
          },
          "resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "リソースID"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "リソース名"
                },
                "url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "ダウンロードURL"
                },
                "format": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "ファイル形式(XLS, CSV, PDF, DB など)"
                }
              },
              "required": [
                "id",
                "name",
                "url",
                "format"
              ],
              "additionalProperties": false
            },
            "description": "提供リソースの一覧"
          }
        },
        "required": [
          "id",
          "statName",
          "organization",
          "title",
          "cycle",
          "surveyDate",
          "collectArea",
          "publisher",
          "releaseDate",
          "lastModifiedDate",
          "landingPage",
          "resourceCount",
          "resources"
        ],
        "additionalProperties": false
      },
      "description": "データカタログの一覧"
    }
  },
  "required": [
    "totalCount",
    "fromNumber",
    "toNumber",
    "nextKey",
    "catalogs"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 3 件
検証済みバージョンは記録されていませんツール 3 件