/api/v1/health Returns 200 with a database connectivity probe. Open (no key).
curl https://hachiquant.com/api/v1/health - 200 The service and its database pool are healthy.
プログラムからアクセスできる読み取り専用のHachiquant API。
https://hachiquant.com/api/v1キーは不要です。すべてのエンドポイントが公開で、匿名リクエストはIP単位でレート制限されます。
curl https://hachiquant.com/api/v1/companies/7203 Liveness and machine-readable schema.
/api/v1/health Returns 200 with a database connectivity probe. Open (no key).
curl https://hachiquant.com/api/v1/health /api/v1/openapi.json Returns the OpenAPI 3.1 schema you are reading. Open (no key).
curl https://hachiquant.com/api/v1/openapi.json Search and company identity.
/api/v1/companies Free-text search over securities code and JP/EN name. Open (no key).
| q | query | string | Securities code or name substring (JP or EN). Empty q lists the universe, code-ordered. Longer than 200 characters returns 400. |
|---|---|---|---|
| limit | query | integer | Maximum rows (default 50, max 200; larger values are capped). Non-integer values return 400. |
| offset | query | integer | Rows to skip, for paging the full universe. Non-integer values return 400. |
curl https://hachiquant.com/api/v1/companies?q=toyota /api/v1/companies/{ticker} Identity for a single company, resolved from its ticker.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|
curl https://hachiquant.com/api/v1/companies/7203 Statements, filings, and raw XBRL facts.
/api/v1/line-items Every canonical statement line in display order, with its labels, role, section and the XBRL elements that satisfy it. The layout that view=canonical statements are placed on by key: a line a filing does not report is absent from that period's lines but present here. Static data; open (no key).
curl https://hachiquant.com/api/v1/line-items /api/v1/companies/{ticker}/income-statements Period-by-period income statements, newest first. Each period carries its raw XBRL records, or with view=canonical its canonical lines.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|---|---|---|
| view | query | canonical | canonical returns each period's canonical line items (lines, plus basis) in place of its raw XBRL records: the normalized statement the web financials page renders, resolved within one consolidation scope. Any other value returns 400. |
curl https://hachiquant.com/api/v1/companies/7203/income-statements /api/v1/companies/{ticker}/balance-sheets Period-by-period balance sheets, newest first.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|---|---|---|
| view | query | canonical | canonical returns each period's canonical line items (lines, plus basis) in place of its raw XBRL records: the normalized statement the web financials page renders, resolved within one consolidation scope. Any other value returns 400. |
curl https://hachiquant.com/api/v1/companies/7203/balance-sheets /api/v1/companies/{ticker}/cash-flow-statements Period-by-period cash flow statements, newest first.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|---|---|---|
| view | query | canonical | canonical returns each period's canonical line items (lines, plus basis) in place of its raw XBRL records: the normalized statement the web financials page renders, resolved within one consolidation scope. Any other value returns 400. |
curl https://hachiquant.com/api/v1/companies/7203/cash-flow-statements /api/v1/companies/{ticker}/filings Filing (document) metadata for a company, so consumers can reach the original EDINET document. Also available at /documents.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|
curl https://hachiquant.com/api/v1/companies/7203/filings /api/v1/companies/{ticker}/document-data Every parsed XBRL data element for the company's filings (power/debug use).
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|
curl https://hachiquant.com/api/v1/companies/7203/document-data Computed ratios and the fundamental valuation block.
/api/v1/companies/{ticker}/metrics Trimmed-core fundamental metrics for every reporting period, newest first. Values are decimals (ratios); null where inputs are missing.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|
curl https://hachiquant.com/api/v1/companies/7203/metrics /api/v1/companies/{ticker}/valuation The fundamental valuation block (quality / return / leverage metrics) for the latest period, or the trailing-twelve-month window with ?ttm=true. Market multiples (P/E, EV/EBITDA, …) are omitted until the market-price source lands.
| ticker 必須 | path | string | Securities code without the trailing check digit, e.g. 7203 for Toyota. Values containing control characters (e.g. an embedded percent-encoded NUL) return 400; any other value that is not four ASCII digits or uppercase letters returns 404. |
|---|---|---|---|
| ttm | query | boolean | Return trailing-twelve-month metrics instead of the latest period's: the latest ~12-month annual plus the next fiscal year's interim minus the same interim a year earlier, or the annual alone (labelled as itself) when that window cannot be formed. Values other than true/false return 400. |
curl https://hachiquant.com/api/v1/companies/7203/valuation Rank the universe by fundamental metrics.
/api/v1/screener Ranks companies by each company's latest annual values from the precomputed metrics. Filters: add <metric>_min and/or <metric>_max query parameters (e.g. roe_min=0.1, equity_ratio_max=0.8). A company must report every filtered metric to match. Valid metric keys: gross_margin, operating_margin, net_margin, roe, roa, revenue_growth, eps, eps_growth, current_ratio, equity_ratio, bvps, fcf. Non-numeric (or NaN) bounds and non-integer limit/offset return 400. An unrecognized sort key falls back to ticker order, and any order other than asc sorts descending.
| roe_min | query | number | Example lower bound. The same <metric>_min / <metric>_max pattern works for every metric key (see description). |
|---|---|---|---|
| roe_max | query | number | Example upper bound. |
| sort | query | gross_margin | operating_margin | net_margin | roe | roa | revenue_growth | eps | eps_growth | current_ratio | equity_ratio | bvps | fcf | Metric key to order by; omit to order by ticker. |
| order | query | asc | desc | Sort direction. Any value other than asc sorts descending. |
| limit | query | integer | Maximum rows (default 50, max 200; larger values are capped). Non-integer values return 400. |
| offset | query | integer | Rows to skip. Non-integer values return 400. |
curl https://hachiquant.com/api/v1/screener