コンテンツにスキップ
IRBANK API はベータ提供中です。仕様は予告なく変更される場合があります。
IRBANK API ドキュメント
Esc
navigateopen⌘Jpreview

人物の保有株式

銘柄(証券コード・名称)ごとの保有株式数と会計期末ごとの推移を返す。該当データが 0 件のときは空配列とともに reason (code=no_results + 状況の説明) を返す。

GET/persons/{id}/holdings
Authorization
AuthorizationBearer token · headerrequired
IRBANK Connect (app.irbank.net/mcp-api) で発行した API キー
Path parameters
idstringrequired
人物 ID(数値文字列)
matches ^\d+$
Responses
200OK
person_idstringrequired
人物 ID
holdingsPersonHolding[]required
銘柄別の保有株式
Show properties
Array of PersonHolding
security_codestringrequired
証券コード (4 桁)
security_namestringrequired
企業名
is_currentbooleanrequired
現任の就任先かどうか
latest_shares_heldinteger | nullrequired
直近会計期末の保有株式数(株)
min 0
share_historyPersonShareHistoryEntry[]required
会計期末ごとの保有株式数の推移(古い順)
Show properties
Array of PersonShareHistoryEntry
fiscal_period_endstringrequired
会計期末日 (YYYY-MM-DD)
shares_heldintegerrequired
保有株式数(株)
min 0
ownership_rationumber | nullrequired
発行済株式数に対する保有比率。算出不能の場合 null
reasonEmptyReason | anyrequired
本体データが空のとき、その理由 (機械可読な code + 説明・対処ヒント)。本体データが 1 件以上のときは null
Show properties
One of:
EmptyReason
codestringrequired
no_results: このリクエストに該当するデータが 0 件。収録が無い場合と、指定した条件に合致しない場合の両方を含む (両者は現状の実装では区別できないため、機械可読な値としては区別しない)。TDnet 由来の値は開示から 24 時間は収録に反映されないため、直近開示分は後から追加され得る
Allowed:no_results
messagestringrequired
0 件になった状況の説明 (英語)。人間向けの補足であり、分岐は code で行うこと (文面は予告なく改善されうる)
any
any
attributionAttributionrequired
Show properties
source_labelstringrequired
出典表示ラベル(第三者に表示する際はこの表記を使う)
license_notestringrequired
出典・再配信条件の注記
processed_bystringrequired
400パラメータが不正
errorobjectrequired
Show properties
codestringrequired
messagestringrequired
detailsExternalErrorDetail[]
Show properties
Array of ExternalErrorDetail
paramstringrequired
reasonstringrequired
Allowed:missingconflictinvalid_typeinvalid_formatout_of_rangeunknown_valuetoo_many_itemsinvalid
expectedstring
受理される値の要約(範囲・型・列挙値)。示せない場合は省略する
404人物が存在しない
errorobjectrequired
Show properties
codestringrequired
messagestringrequired
detailsExternalErrorDetail[]
Show properties
Array of ExternalErrorDetail
paramstringrequired
reasonstringrequired
Allowed:missingconflictinvalid_typeinvalid_formatout_of_rangeunknown_valuetoo_many_itemsinvalid
expectedstring
受理される値の要約(範囲・型・列挙値)。示せない場合は省略する
Request
curl -X GET "https://api.irbank.net/v1/persons/4837261950/holdings" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "person_id": "string",
  "holdings": [
    {
      "security_code": "7203",
      "security_name": "トヨタ自動車",
      "is_current": true,
      "latest_shares_held": 0,
      "share_history": [
        {
          "fiscal_period_end": "2024-03-31",
          "shares_held": 0,
          "ownership_ratio": 0
        }
      ]
    }
  ],
  "reason": {
    "code": "no_results",
    "message": "No segment disclosure is currently recorded for this organization."
  },
  "attribution": {
    "source_label": "金融庁 EDINET / TDnet",
    "license_note": "string",
    "processed_by": "IRBANK"
  }
}