コンテンツにスキップ
IRBANK API ドキュメント
Esc
↑↓移動↵開く⌘Jプレビュー

人物の保有株式

銘柄(証券コード・名称)ごとの保有株式数と会計期末ごとの推移を返す。該当データが 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
200

OK

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 | nullrequired

本体データが空のとき、その理由 (機械可読な code + 説明・対処ヒント)。本体データが 1 件以上のときは null

Show properties
One of:
EmptyReason
codestringrequired

no_results: このリクエストに該当するデータが 0 件。収録が無い場合と、指定した条件に合致しない場合の両方を含む (両者は現状の実装では区別できないため、機械可読な値としては区別しない)。TDnet 由来の値は開示から 24 時間は収録に反映されないため、直近開示分は後から追加され得る

Allowed:no_results
messagestringrequired

0 件になった状況の説明 (英語)。人間向けの補足であり、分岐は code で行うこと (文面は予告なく改善されうる)

null
null
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

受理される値の要約(範囲・型・列挙値)。示せない場合は省略する

403

API キーの scope 不足 (code=forbidden)、Connect の利用許可なし (code=connect_access_required)、または規約などへの同意が済んでいない (code=legal_consent_required) のため、この API を利用できない

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

受理される値の要約(範囲・型・列挙値)。示せない場合は省略する

503

一時的に応答できない。会員区分を確認できないときは code=plan_lookup_failed になる。原因は error.code で区別し、時間をおいて再試行する

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
detailsExternalErrorDetail[]
Show properties
Array of ExternalErrorDetail
paramstringrequired
reasonstringrequired
Allowed:missingconflictinvalid_typeinvalid_formatout_of_rangeunknown_valuetoo_many_itemsinvalid
expectedstring

受理される値の要約(範囲・型・列挙値)。示せない場合は省略する

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.irbank.net/v1/persons/4837261950/holdings' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
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"
  }
}

このページは役に立ちましたか?