TDnetSearch API / /api/analyze/<code>/statements
/api/analyze/<code>/statements財務諸表(過去の決算)
過去の決算の貸借対照表・損益計算書・キャッシュフロー・決算短信のサマリー・指標を、列(決算期、新しい順)と行(項目)の表でまとめて返します。分析画面の各タブと同じデータです。
| 名前 | 型 | 既定 | 説明 |
|---|---|---|---|
code | パス | 必須 | 4桁・5桁の証券コード、または会社名 |
type | string | bs,pl | 返す表(カンマ区切り)。bs 貸借対照表、pl 損益計算書、cf キャッシュフロー、summary 経営成績・通期計画・来期予想、indicators 時価総額・PER・PBR・ROE・配当利回り・自己資本比率・ネットネットスコア |
period | string | annual | annual で通期の決算だけ、all で四半期も含める(損益計算書・サマリーは期首からの累計) |
since | string | (なし) | 2016 で2016年からの決算。省くと直近24件の決算 |
curl -H "X-API-Key: tds_..." \ "https://tdnet-search.appspot.com/api/analyze/72030/statements"
curl -H "X-API-Key: tds_..." \ "https://tdnet-search.appspot.com/api/analyze/72030/statements?type=bs,pl,cf&period=all"
curl -H "X-API-Key: tds_..." \ "https://tdnet-search.appspot.com/api/analyze/72030/statements?type=summary,indicators&since=2016"
JSON(application/json; charset=utf-8)
実際のレスポンスの例(GET /api/analyze/88410/statements?type=bs,pl,cf,summary,indicators、2026年11月15日時点)
{
"code": "88410",
"company": "テーオーシー",
"unit": "百万円(1株当たりの項目は円)",
"period": "annual",
"since": "",
"periods": [
{
"label": "26.3 Q4",
"title": "2026年3月期 決算短信",
"date": "2026-05-12",
"pdf_url": "https://tdnet-search.appspot.com/140120260512524222.pdf"
},
{
"label": "25.3 Q4",
"title": "令和7年3月期 決算短信",
"date": "2025-05-13",
"pdf_url": "https://tdnet-search.appspot.com/140120250513544518.pdf"
}
],
"bs": [
{
"key": "cash_and_deposits",
"label": "現金及び預金",
"values": [
31148,
29487
]
},
{
"key": "notes_and_accounts_receivable_trade",
"label": "受取手形及び売掛金",
"values": [
11,
11
]
},
{
"key": "notes_receivable_trade",
"label": "受取手形",
"values": [
11,
11
]
}
],
"pl": [
{
"key": "net_sales",
"label": "売上高",
"values": [
15155,
13152
]
},
{
"key": "cost_of_sales",
"label": "売上原価",
"values": [
10939,
9985
]
},
{
"key": "gross_profit",
"label": "売上総利益又は売上総損失",
"values": [
4216,
3166
]
}
],
"cf": [
{
"key": "income_before_income_taxes",
"label": "税引前当期純利益又は税引前当期純損失",
"values": [
3433,
2781
]
},
{
"key": "depreciation_and_amortization_ope_c_f",
"label": "減価償却費",
"values": [
1317,
1204
]
},
{
"key": "impairment_loss_ope_c_f",
"label": "減損損失",
"values": [
0,
5
]
}
],
"summary": [
{
"key": "current_accumulated_duration_net_sales",
"label": "売上高(累計)",
"values": [
15155,
13152
]
},
{
"key": "current_accumulated_duration_operation_income",
"label": "営業利益(累計)",
"values": [
2462,
1418
]
},
{
"key": "current_accumulated_duration_ordinary_income",
"label": "経常利益(累計)",
"values": [
3204,
1918
]
}
],
"indicators": [
{
"key": "marketcap",
"label": "時価総額",
"values": [
102014,
64099
]
},
{
"key": "per",
"label": "PER(倍)",
"values": [
30.93,
39.87
]
},
{
"key": "pbr",
"label": "PBR(倍)",
"values": [
0.92,
0.62
]
}
]
}periods は全6件のうち最初の2件、各表は最初の3行だけを載せています(values も periods に合わせて2件)。この銘柄では bs 63行、pl 33行、cf 48行、summary 14行、indicators 7行です。実際のレスポンスは空白を詰めたJSONです。
| フィールド | 型 | 説明 |
|---|---|---|
unit | string | 金額の単位(百万円。1株当たりの項目は円) |
periods[] | array | 列。label(「26.3 Q4」など)、title(決算短信のタイトル)、date(開示日)、pdf_url |
bs[] / pl[] / cf[] / summary[] / indicators[] | array | 行。key(英語名)、label(日本語名)、values(periods と同じ順の値。ない期は null)。どの期も値がない項目は含めない。summary の営業利益は operation_income、pl は operating_income という名前 |
キャッシュフロー計算書は通期と中間期だけです。IFRSの会社の損益計算書は主な項目(売上収益・営業利益・税引前利益・当期利益など)だけ、米国基準の会社は損益計算書がありません。
エラーの時は {"error": "メッセージ"} を返します。HTTPのステータスは、引数の誤りが 400、銘柄やデータが見つからない場合が 404、キーがない・無効な場合が 401、1日の上限を超えた場合が 429、サーバーの思わぬエラーが 500({"error": "internal error"})です。
| error | 意味 |
|---|---|
code is required | 銘柄の指定がない |
company not found | 会社名が見つからない |
type must be some of ... | type の値が違う |
period must be annual or all | period の値が違う |
no analysis data found | 決算のデータがない |