Generated from OpenAPI
API Reference
このページは OpenAPI 定義から自動生成しています。項目の詳細はここが正です。
ほかのページは使い方を説明します。エンドポイント、リクエスト、レスポンスの詳細は、このページを参照してください。
API
/healthHealth
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | HealthResponse | - |
/health/readyReady
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | HealthResponse | - |
Credits
/v1/search/companies-by-businessSearch companies by business
事業の説明から、事業の内容が近い企業を探します。上場廃止した企業も返るので、今上場している企業だけを探すときは exclude_delisted に true を指定します。Enterprise プラン(法人契約)の API キーだけが呼べます。会社ごとの事業の内容の索引と、文書(有価証券報告書と適時開示)の意味検索を混ぜた会社の一覧を返します。unit は queries の形に合わせ、事業ごとの 1 文なら sentence、事業の内容の段落なら paragraph を指定します。matched_text は候補の手がかりで、根拠には文書の本文を読んで引用してください。score と sources は並びの参考情報で、並べ方の改善で値が変わります。
Request body
| Field | Required | Schema | Default |
|---|---|---|---|
queries | yes | string[] | - |
unit | yes | "sentence" | "paragraph" | - |
exclude_security_codes | no | string[] | - |
exclude_delisted | no | boolean | false |
top_k | no | integer | 20 |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | CompaniesByBusinessResponse | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. Or: The API key is not of an Enterprise plan. | ProblemDetails | access_not_enabledenterprise_plan_required |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
504 | Search backend did not respond before the request deadline. | ProblemDetails | search_backend_timeout |
/v1/mentions/documentsList document mentions
terms の語を本文にそのまま含む節を、順位なしで全部返します(言及箇所の一覧)。1 回の呼び出しで、絞り込みの範囲の言及箇所の全部を返し、cursor はありません。位置は GET /v1/documents/{document_id}/content の節の本文の位置です。言及箇所が 10,000 件を超えるか、語を含みうる文書が 200 件を超えると 422 (too_many_mentions)を返すので、証券コード・期間・資料の種類で絞ってください。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
terms | query | yes | string[] |
security_codes | query | no | string[] | null |
exclude_delisted | query | no | boolean |
document_types | query | no | string[] | null |
document_families | query | no | string[] | null |
timeline_since | query | no | string:date | null |
timeline_until | query | no | string:date | null |
latest_only | query | no | boolean |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentMentionListResponse | - |
400 | The mention list request is invalid. | ProblemDetails | invalid_date_rangeinvalid_document_familyinvalid_query_parameterinvalid_terms |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | The terms are mentioned more often than one list returns. Or: Validation Error. | HTTPValidationError | too_many_mentions |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/mentions/newsList news mentions
terms の語を題または本文にそのまま含む news を、順位なしで全部返します(言及箇所の一覧)。1 回の呼び出しで、絞り込みの範囲の言及箇所の全部を返し、cursor はありません。期間は GET /v1/news と同じく updated_at で決まり、位置は題または本文の中の位置です。言及箇所が 10,000 件を超えるか、語を含みうる news が 2,000 件を超えると 422 (too_many_mentions)を返すので、証券コード・期間で絞ってください。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
terms | query | yes | string[] |
security_codes | query | no | string[] | null |
exclude_delisted | query | no | boolean |
timeline_since | query | no | string:date | null |
timeline_until | query | no | string:date | null |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | NewsMentionListResponse | - |
400 | The news mention list request is invalid. | ProblemDetails | invalid_date_rangeinvalid_query_parameterinvalid_terms |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | The terms are mentioned more often than one list returns. Or: Validation Error. | HTTPValidationError | too_many_mentions |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/newsList news
一次情報への references[] を持つ news を、本文 body と optional な表示 title つきで一覧します。並び順と timeline_since / timeline_until は news updated_at 基準です。本文が改訂された news は、同じ news_id のまま一覧の先頭に戻ります。security_codes / timeline_since のいずれかが必須です。next_cursor が null でなければ、同じフィルタに cursor を付けて次ページを取得します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
security_codes | query | no | string[] | null |
exclude_delisted | query | no | boolean |
timeline_since | query | no | string:date | null |
timeline_until | query | no | string:date | null |
limit | query | no | integer |
cursor | query | no | string | null |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | NewsListResponse | - |
400 | The news list request is invalid. | ProblemDetails | invalid_cursorinvalid_date_rangeinvalid_query_parametermissing_required_filter |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/news/{news_id}Get news
news_id の news を 1 件、GET /v1/news の 1 件と同じ形で返します。本文が改訂された news は、改訂後の本文を返します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
news_id | path | yes | string |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | NewsItem | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested news was not found. | ProblemDetails | not_found |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}/contentGet document content
文書本文を content という 1 つの文字列で返します。sections 指定時は sections_returned[] で返却セクションを確認でき、content_sections[] でセクション単位の本文も取得できます。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
sections | query | no | string[] | null |
version_id | query | no | string | null |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentContentResponse | - |
400 | The content request is invalid. | ProblemDetails | invalid_query_parameterinvalid_section |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document was not found. | ProblemDetails | not_found |
409 | Document content is not available for delivery. | ProblemDetails | content_not_available |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}/originals/{original_id}Get original file
元ファイル一覧に含まれるファイルを返します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
original_id | path | yes | string |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Original document file | string:binary | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document or original file was not found. | ProblemDetails | not_found |
409 | The requested original file cannot be delivered by the API. | ProblemDetails | content_not_available |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}/pages/{page_number}/imageGet page image
指定ページの JPEG 画像を返します。取得可能なページは `GET /v1/documents/{document_id}/page-images` で確認してください。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
page_number | path | yes | integer |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | JPEG page image | string:binary | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document or page was not found. | ProblemDetails | not_found |
409 | The requested page image is not available for delivery. | ProblemDetails | image_not_available |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/search/documentsSearch documents
文書本文を検索します。semantic 検索では、根拠候補を探す疑問文を使います。document_families は edinet_filing / timely_disclosure のみ指定できます。
Request body
| Field | Required | Schema | Default |
|---|---|---|---|
query | yes | string | - |
security_codes | no | string[] | - |
exclude_delisted | no | boolean | false |
document_types | no | string[] | - |
timeline_since | no | string:date | null | - |
timeline_until | no | string:date | null | - |
match_type | no | "semantic" | "lexical" | semantic |
top_k | no | integer | 10 |
matches_per_document | no | integer | 3 |
include_snippet | no | boolean | false |
include_lines | no | boolean | false |
document_families | no | "edinet_filing" | "timely_disclosure"[] | - |
latest_only | no | boolean | true |
phrases | no | string[] | null | - |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentSearchResponse | - |
400 | The document search request is invalid. | ProblemDetails | invalid_date_rangeinvalid_document_familyinvalid_query_parameterinvalid_terms |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | More sections may contain the phrases than a phrase search reads. Or: Validation Error. | HTTPValidationError | too_many_mentions |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
504 | Search backend did not respond before the request deadline. | ProblemDetails | search_backend_timeout |
/v1/search/newsSearch news
news を検索します。semantic 検索では、探したい news / event を疑問文で指定します。match_type で semantic / lexical を選べます。phrases を指定すると、題または本文にいずれかの語をそのまま含む news だけを返します。
Request body
| Field | Required | Schema | Default |
|---|---|---|---|
query | yes | string | - |
security_codes | no | string[] | - |
exclude_delisted | no | boolean | false |
timeline_since | no | string:date | null | - |
timeline_until | no | string:date | null | - |
match_type | no | "semantic" | "lexical" | semantic |
top_k | no | integer | 10 |
phrases | no | string[] | null | - |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | NewsSearchResponse | - |
400 | The news search request is invalid. | ProblemDetails | invalid_date_rangeinvalid_query_parameterinvalid_terms |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | More news may contain the phrases than a phrase search reads. Or: Validation Error. | HTTPValidationError | too_many_mentions |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
504 | Search backend did not respond before the request deadline. | ProblemDetails | search_backend_timeout |
0-credit
/v1/issuers/searchSearch issuers
企業名または証券コードから issuer を検索します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
q | query | yes | string |
limit | query | no | integer |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | IssuerSearchResponse | - |
400 | The issuer search request is invalid. | ProblemDetails | missing_required_filter |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documentsList documents
公開対象の文書を timeline_at の降順で一覧します。timeline_since / timeline_until も timeline_at 基準です。security_codes なしで市場全体を一覧する場合は timeline_since が必須です。next_cursor が null でなければ、同じフィルタに cursor を付けて次ページを取得します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
security_codes | query | no | string[] | null |
exclude_delisted | query | no | boolean |
document_types | query | no | string[] | null |
document_families | query | no | "edinet_filing" | "ir_material" | "timely_disclosure"[] | null |
timeline_since | query | no | string:date | null |
timeline_until | query | no | string:date | null |
limit | query | no | integer |
cursor | query | no | string | null |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentListResponse | - |
400 | The document list request is invalid. | ProblemDetails | invalid_cursorinvalid_date_rangeinvalid_document_familyinvalid_query_parametermissing_required_filter |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}Get document
文書のメタデータと取得可否を返します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentSummary | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document was not found. | ProblemDetails | not_found |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}/tocGet document TOC
本文取得に使えるセクションを toc[] として返します。toc[].section_id は GET /v1/documents/{document_id}/content?sections=... に渡せます。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
version_id | query | no | string | null |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentTocResponse | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document was not found. | ProblemDetails | not_found |
409 | Document content is not available for delivery. | ProblemDetails | content_not_available |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}/page-imagesList page images
文書内で JPEG 画像として取得できるページをページ番号昇順で返します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentPageImagesResponse | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document was not found. | ProblemDetails | not_found |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |
/v1/documents/{document_id}/originalsList original files
API から取得できる文書の元ファイルを列挙します。
Parameters
| Name | In | Required | Schema |
|---|---|---|---|
document_id | path | yes | string |
Responses
| Status | Description | Schema | Error codes |
|---|---|---|---|
200 | Successful Response | DocumentOriginalsResponse | - |
401 | Authentication failed. | ProblemDetails | authentication_requiredinvalid_api_key |
403 | The API key is valid but the account cannot access this API. | ProblemDetails | access_not_enabled |
404 | The requested document was not found. | ProblemDetails | not_found |
422 | Validation Error | HTTPValidationError | - |
429 | Rate limit, temporary rate restriction or usage limit exceeded. | ProblemDetails | quota_exceededrate_limit_exceededrate_limit_restricted |
500 | Internal server error. | ProblemDetails | internal_error |