競合企業
指定銘柄の競合企業を、有価証券報告書ベースの競合分析に基づいて競合セグメント・競合理由付きで返す。
並び順と件数
security_code昇順に並べ、その先頭limit件 (既定 8) を返す (自銘柄は除外)。- 競合としての関連度順ではないため、競合が
limitを超える銘柄では証券コードの大きい競合が落ちる。 - 落ちた件数を示すフィールドもページングも無いため、より多く必要な場合は
limitを最大 20 まで上げる。
非上場競合の置き換え
- 競合が非上場の場合は親会社チェーンを辿り、最も近い上場親会社に置き換えて返す。
- この置き換えが起きた競合では
segmentsとcompetition_reasonは置き換え前の非上場競合のものになる。 - 置き換えの有無と置き換え前の競合名はレスポンスに含まれない。
親会社等 (parent_companies)
- 各競合には、その競合の議決権を保有する親会社等 (
parent_companies: 名称・証券コード・種類・議決権割合) を最新の有価証券報告書「関係会社の状況」から添える。 - これは開示そのもので、上記の置き換えに使う親会社チェーン (競合分析由来の推定) とは別のソース。
注意
capital_relationshipは上流の競合分析が資本関係を出力していないため、現状はすべての競合で null。- 業種による絞り込みではないため、業種をまたぐ競合が含まれることがあり、同業種でも競合と判定されなければ含まれない。同業種の銘柄一覧が必要な場合は
GET /securitiesのindustryフィルタを使う。
空レスポンス
競合分析データが無い銘柄と、競合が全て非上場で上場親会社にも解決できない銘柄は peers: [] を返す。該当データが 0 件のときは空配列とともに reason (code=no_results + 状況の説明) を返す。
GET
/peersAuthorization
AuthorizationBearer token · headerrequiredIRBANK Connect (app.irbank.net/mcp-api) で発行した API キー
Query parameters
security_codestringrequired証券コード (4 桁)
matches ^[0-9A-Z]{4,5}$
limitinteger取得件数の上限 (1〜20、既定 8)。security_code 昇順に並べた先頭から数えるため、上限を超えた分は証券コードの大きい競合から落ちる
min 1 · max 20 · default: 8
Responses
200OK
security_codestringrequiredリクエストした銘柄の証券コード (4 桁)
peersPeerCompany[]required競合企業 (security_code 昇順、自銘柄は除外)。昇順に並べた先頭 limit 件で打ち切られ、打ち切られた件数は返さない。競合分析データが無い銘柄は空配列
Show propertiesHide properties
Array of
PeerCompanysecurity_codestringrequired証券コード (4 桁)
namestringrequired銘柄名。非上場の競合を上場親会社に置き換えた場合は、その上場親会社の銘柄名が入る
industrystringrequired業種名
segmentsstring[]requiredリクエストした銘柄側の、この競合が競合と判定された事業セグメント名。非上場の競合を上場親会社に置き換えた場合は、置き換え前の非上場企業が競合と判定されたセグメント名
competition_reasonstring | nullrequired競合と判断した理由 (1-2 文)。非上場の競合を上場親会社に置き換えた場合は置き換え前の非上場企業についての理由文が入るため、この peer 自身ではなくその子会社の事業を説明していることがある
capital_relationshipPeerCapitalRelationship | nullrequiredリクエストした銘柄と競合企業の資本関係。上流の競合分析が資本関係を出力していないため、現状はすべての競合で null (値が入る時期は未定)
Show propertiesHide properties
typestringrequired資本関係タイプ。none=なし / target_owns=対象企業が競合を所有 / counterparty_owns_target=競合に所有されている / shared_parent=共通の親会社を持つ。
Allowed:
nonetarget_ownscounterparty_owns_targetshared_parentownership_pctnumber | nullrequired直接持株比率 (%)。間接所有の場合は null
parent_security_codestring | nullrequiredshared_parent のときの共通親会社(上場企業)の証券コード。非上場・未解決の場合は null
parent_companiesPeerParentCompany[]requiredこの競合企業の議決権を保有する親会社等 (議決権割合の降順)。最新の有価証券報告書「関係会社の状況」の被所有行が出典で、親会社・その他の関係会社の区分は party_type に入る。開示が無い企業は空配列。非上場の競合を上場親会社に置き換えた場合は、その上場親会社の親会社等。置き換えに使う親会社チェーン (競合分析由来の推定) とは別のソースで、こちらは開示そのもの
Show propertiesHide properties
Array of
PeerParentCompanynamestringrequired議決権を保有している親会社等の名称 (有価証券報告書「関係会社の状況」の開示名)
security_codestring | nullrequired親会社等が上場している場合の証券コード (4 桁)。非上場・名寄せ未成立は null
party_typestring | nullrequired有価証券報告書の「種類」原文 (親会社 / その他の関係会社 等)。開示に区分が無い場合は null
voting_rights_rationumber | nullrequiredこの企業の議決権を保有する割合 (%)。開示が無い場合は null
fiscal_period_endstringrequired出典となった有価証券報告書の決算期末 (YYYY-MM-DD)
reasonEmptyReason | anyrequired本体データが空のとき、その理由 (機械可読な code + 説明・対処ヒント)。本体データが 1 件以上のときは null
Show propertiesHide properties
One of:
EmptyReason
codestringrequiredno_results: このリクエストに該当するデータが 0 件。収録が無い場合と、指定した条件に合致しない場合の両方を含む (両者は現状の実装では区別できないため、機械可読な値としては区別しない)。TDnet 由来の値は開示から 24 時間は収録に反映されないため、直近開示分は後から追加され得る
Allowed:
no_resultsmessagestringrequired0 件になった状況の説明 (英語)。人間向けの補足であり、分岐は code で行うこと (文面は予告なく改善されうる)
any
anyattributionAttributionrequiredShow propertiesHide properties
source_labelstringrequired出典表示ラベル(第三者に表示する際はこの表記を使う)
license_notestringrequired出典・再配信条件の注記
processed_bystringrequired400パラメータが不正
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsExternalErrorDetail[]Show propertiesHide properties
Array of
ExternalErrorDetailparamstringrequiredreasonstringrequiredAllowed:
missingconflictinvalid_typeinvalid_formatout_of_rangeunknown_valuetoo_many_itemsinvalidexpectedstring受理される値の要約(範囲・型・列挙値)。示せない場合は省略する
404証券コードに対応する銘柄が存在しない
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsExternalErrorDetail[]Show propertiesHide properties
Array of
ExternalErrorDetailparamstringrequiredreasonstringrequiredAllowed:
missingconflictinvalid_typeinvalid_formatout_of_rangeunknown_valuetoo_many_itemsinvalidexpectedstring受理される値の要約(範囲・型・列挙値)。示せない場合は省略する
Request
curl -X GET "https://api.irbank.net/v1/peers?security_code=7203" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.irbank.net/v1/peers?security_code=7203", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.irbank.net/v1/peers?security_code=7203",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"security_code": "7203",
"peers": [
{
"security_code": "7267",
"name": "string",
"industry": "string",
"segments": [
"自動車"
],
"competition_reason": "string",
"capital_relationship": null,
"parent_companies": [
{
"name": "トヨタ自動車株式会社",
"security_code": "7203",
"party_type": "親会社",
"voting_rights_ratio": 50.1,
"fiscal_period_end": "2026-03-31"
}
]
}
],
"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"
}
}{
"error": {
"code": "not_found",
"message": "Security not found",
"details": [
{
"param": "years",
"reason": "out_of_range",
"expected": ">= 1"
}
]
}
}{
"error": {
"code": "not_found",
"message": "Security not found",
"details": [
{
"param": "years",
"reason": "out_of_range",
"expected": ">= 1"
}
]
}
}