---
title: "Industry peer benchmarking (workflow-optimized)"
method: GET
path: "/queries/peer-comparison"
tags: ["Queries"]
---

# Industry peer benchmarking (workflow-optimized)

`GET /queries/peer-comparison`

## Request

- Base URL: `https://edinetdb.jp/v1`
- URL: `https://edinetdb.jp/v1/queries/peer-comparison`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

2026-05-23 追加。1 req で target 企業 + 業種 median/quartile +
peer top-N を取得する集計 endpoint。FactSet Formula API スタイル。
全 value は nested `{value, unit, basis, source, availability, null_reason}`
構造で field-level NULL traceability を担保。

## Query parameters

- `company` string, required
- `metric` 'roe' | 'roa' | 'roic' | 'operating_margin' | 'net_margin' | 'equity_ratio' | 'de_ratio' | 'asset_turnover' | 'revenue_growth_yoy' | 'revenue_cagr_5y', required
- `years` integer
- `peer_count` integer

## Response `200`

target_history + industry_median_history + industry_q1_history + industry_q3_history + peer_top_n + target_rank

- object
  - `data` object
  - `meta` object

## Other responses

- `400`: パラメータ形式不正 (invalid metric)
- `404`: 企業が見つからない
- `422`: industry が未分類 / ratio データなし

---

[API](https://skmtc.dev/edinetdb/apis/edinet-db-api.md) · [All operations](https://skmtc.dev/edinetdb/apis/edinet-db-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edinetdb/apis/edinet-db-api/revisions/d896c5f7d472?raw)
