モモンガサーチ

Generated from OpenAPI

API Reference

このページは OpenAPI 定義から自動生成しています。項目の詳細はここが正です。

ほかのページは使い方を説明します。エンドポイント、リクエスト、レスポンスの詳細は、このページを参照してください。

API

GET/health

Health

stability: unspecifiedusage type: unspecifiedcredits: unspecified

Responses

StatusDescriptionSchemaError codes
200Successful ResponseHealthResponse-
GET/health/ready

Ready

stability: unspecifiedusage type: unspecifiedcredits: unspecified

Responses

StatusDescriptionSchemaError codes
200Successful ResponseHealthResponse-

Credits

POST/v1/search/companies-by-business

Search companies by business

事業の説明から、事業の内容が近い企業を探します。上場廃止した企業も返るので、今上場している企業だけを探すときは exclude_delisted に true を指定します。Enterprise プラン(法人契約)の API キーだけが呼べます。会社ごとの事業の内容の索引と、文書(有価証券報告書と適時開示)の意味検索を混ぜた会社の一覧を返します。unit は queries の形に合わせ、事業ごとの 1 文なら sentence、事業の内容の段落なら paragraph を指定します。matched_text は候補の手がかりで、根拠には文書の本文を読んで引用してください。score と sources は並びの参考情報で、並べ方の改善で値が変わります。

stability: stableusage type: credit APIcredits: 1 per query

Request body

FieldRequiredSchemaDefault
queriesyesstring[]-
unityes"sentence" | "paragraph"-
exclude_security_codesnostring[]-
exclude_delistednobooleanfalse
top_knointeger20

Responses

StatusDescriptionSchemaError codes
200Successful ResponseCompaniesByBusinessResponse-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The 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
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
504Search backend did not respond before the request deadline.ProblemDetails
search_backend_timeout
GET/v1/mentions/documents

List document mentions

terms の語を本文にそのまま含む節を、順位なしで全部返します(言及箇所の一覧)。1 回の呼び出しで、絞り込みの範囲の言及箇所の全部を返し、cursor はありません。位置は GET /v1/documents/{document_id}/content の節の本文の位置です。言及箇所が 10,000 件を超えるか、語を含みうる文書が 200 件を超えると 422 (too_many_mentions)を返すので、証券コード・期間・資料の種類で絞ってください。

stability: stableusage type: credit APIcredits: 1 per 20 documents returned (at least 1)

Parameters

NameInRequiredSchema
termsqueryyesstring[]
security_codesquerynostring[] | null
exclude_delistedquerynoboolean
document_typesquerynostring[] | null
document_familiesquerynostring[] | null
timeline_sincequerynostring:date | null
timeline_untilquerynostring:date | null
latest_onlyquerynoboolean

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentMentionListResponse-
400The mention list request is invalid.ProblemDetails
invalid_date_rangeinvalid_document_familyinvalid_query_parameterinvalid_terms
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
422The terms are mentioned more often than one list returns. Or: Validation Error.HTTPValidationError
too_many_mentions
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/mentions/news

List news mentions

terms の語を題または本文にそのまま含む news を、順位なしで全部返します(言及箇所の一覧)。1 回の呼び出しで、絞り込みの範囲の言及箇所の全部を返し、cursor はありません。期間は GET /v1/news と同じく updated_at で決まり、位置は題または本文の中の位置です。言及箇所が 10,000 件を超えるか、語を含みうる news が 2,000 件を超えると 422 (too_many_mentions)を返すので、証券コード・期間で絞ってください。

stability: stableusage type: credit APIcredits: 1 per 20 news returned (at least 1)

Parameters

NameInRequiredSchema
termsqueryyesstring[]
security_codesquerynostring[] | null
exclude_delistedquerynoboolean
timeline_sincequerynostring:date | null
timeline_untilquerynostring:date | null

Responses

StatusDescriptionSchemaError codes
200Successful ResponseNewsMentionListResponse-
400The news mention list request is invalid.ProblemDetails
invalid_date_rangeinvalid_query_parameterinvalid_terms
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
422The terms are mentioned more often than one list returns. Or: Validation Error.HTTPValidationError
too_many_mentions
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/news

List news

一次情報への references[] を持つ news を、本文 body と optional な表示 title つきで一覧します。並び順と timeline_since / timeline_until は news updated_at 基準です。本文が改訂された news は、同じ news_id のまま一覧の先頭に戻ります。security_codes / timeline_since のいずれかが必須です。next_cursor が null でなければ、同じフィルタに cursor を付けて次ページを取得します。

stability: stableusage type: credit APIcredits: 1

Parameters

NameInRequiredSchema
security_codesquerynostring[] | null
exclude_delistedquerynoboolean
timeline_sincequerynostring:date | null
timeline_untilquerynostring:date | null
limitquerynointeger
cursorquerynostring | null

Responses

StatusDescriptionSchemaError codes
200Successful ResponseNewsListResponse-
400The news list request is invalid.ProblemDetails
invalid_cursorinvalid_date_rangeinvalid_query_parametermissing_required_filter
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/news/{news_id}

Get news

news_id の news を 1 件、GET /v1/news の 1 件と同じ形で返します。本文が改訂された news は、改訂後の本文を返します。

stability: stableusage type: credit APIcredits: 1

Parameters

NameInRequiredSchema
news_idpathyesstring

Responses

StatusDescriptionSchemaError codes
200Successful ResponseNewsItem-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested news was not found.ProblemDetails
not_found
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}/content

Get document content

文書本文を content という 1 つの文字列で返します。sections 指定時は sections_returned[] で返却セクションを確認でき、content_sections[] でセクション単位の本文も取得できます。

stability: stableusage type: credit APIcredits: 2/4/8 by character_count

Parameters

NameInRequiredSchema
document_idpathyesstring
sectionsquerynostring[] | null
version_idquerynostring | null

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentContentResponse-
400The content request is invalid.ProblemDetails
invalid_query_parameterinvalid_section
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document was not found.ProblemDetails
not_found
409Document content is not available for delivery.ProblemDetails
content_not_available
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}/originals/{original_id}

Get original file

元ファイル一覧に含まれるファイルを返します。

stability: stableusage type: credit APIcredits: 8 per file

Parameters

NameInRequiredSchema
document_idpathyesstring
original_idpathyesstring

Responses

StatusDescriptionSchemaError codes
200Original document filestring:binary-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document or original file was not found.ProblemDetails
not_found
409The requested original file cannot be delivered by the API.ProblemDetails
content_not_available
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}/pages/{page_number}/image

Get page image

指定ページの JPEG 画像を返します。取得可能なページは `GET /v1/documents/{document_id}/page-images` で確認してください。

stability: stableusage type: credit APIcredits: 1 per page

Parameters

NameInRequiredSchema
document_idpathyesstring
page_numberpathyesinteger

Responses

StatusDescriptionSchemaError codes
200JPEG page imagestring:binary-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document or page was not found.ProblemDetails
not_found
409The requested page image is not available for delivery.ProblemDetails
image_not_available
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
POST/v1/search/documents

Search documents

文書本文を検索します。semantic 検索では、根拠候補を探す疑問文を使います。document_families は edinet_filing / timely_disclosure のみ指定できます。

stability: stableusage type: credit APIcredits: 1

Request body

FieldRequiredSchemaDefault
queryyesstring-
security_codesnostring[]-
exclude_delistednobooleanfalse
document_typesnostring[]-
timeline_sincenostring:date | null-
timeline_untilnostring:date | null-
match_typeno"semantic" | "lexical"semantic
top_knointeger10
matches_per_documentnointeger3
include_snippetnobooleanfalse
include_linesnobooleanfalse
document_familiesno"edinet_filing" | "timely_disclosure"[]-
latest_onlynobooleantrue
phrasesnostring[] | null-

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentSearchResponse-
400The document search request is invalid.ProblemDetails
invalid_date_rangeinvalid_document_familyinvalid_query_parameterinvalid_terms
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
422More sections may contain the phrases than a phrase search reads. Or: Validation Error.HTTPValidationError
too_many_mentions
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
504Search backend did not respond before the request deadline.ProblemDetails
search_backend_timeout
POST/v1/search/news

Search news

news を検索します。semantic 検索では、探したい news / event を疑問文で指定します。match_type で semantic / lexical を選べます。phrases を指定すると、題または本文にいずれかの語をそのまま含む news だけを返します。

stability: stableusage type: credit APIcredits: 1

Request body

FieldRequiredSchemaDefault
queryyesstring-
security_codesnostring[]-
exclude_delistednobooleanfalse
timeline_sincenostring:date | null-
timeline_untilnostring:date | null-
match_typeno"semantic" | "lexical"semantic
top_knointeger10
phrasesnostring[] | null-

Responses

StatusDescriptionSchemaError codes
200Successful ResponseNewsSearchResponse-
400The news search request is invalid.ProblemDetails
invalid_date_rangeinvalid_query_parameterinvalid_terms
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
422More news may contain the phrases than a phrase search reads. Or: Validation Error.HTTPValidationError
too_many_mentions
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
504Search backend did not respond before the request deadline.ProblemDetails
search_backend_timeout

0-credit

GET/v1/documents

List documents

公開対象の文書を timeline_at の降順で一覧します。timeline_since / timeline_until も timeline_at 基準です。security_codes なしで市場全体を一覧する場合は timeline_since が必須です。next_cursor が null でなければ、同じフィルタに cursor を付けて次ページを取得します。

stability: stableusage type: 0-credit APIcredits: 0

Parameters

NameInRequiredSchema
security_codesquerynostring[] | null
exclude_delistedquerynoboolean
document_typesquerynostring[] | null
document_familiesqueryno"edinet_filing" | "ir_material" | "timely_disclosure"[] | null
timeline_sincequerynostring:date | null
timeline_untilquerynostring:date | null
limitquerynointeger
cursorquerynostring | null

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentListResponse-
400The document list request is invalid.ProblemDetails
invalid_cursorinvalid_date_rangeinvalid_document_familyinvalid_query_parametermissing_required_filter
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}

Get document

文書のメタデータと取得可否を返します。

stability: stableusage type: 0-credit APIcredits: 0

Parameters

NameInRequiredSchema
document_idpathyesstring

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentSummary-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document was not found.ProblemDetails
not_found
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}/toc

Get document TOC

本文取得に使えるセクションを toc[] として返します。toc[].section_id は GET /v1/documents/{document_id}/content?sections=... に渡せます。

stability: stableusage type: 0-credit APIcredits: 0

Parameters

NameInRequiredSchema
document_idpathyesstring
version_idquerynostring | null

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentTocResponse-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document was not found.ProblemDetails
not_found
409Document content is not available for delivery.ProblemDetails
content_not_available
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}/page-images

List page images

文書内で JPEG 画像として取得できるページをページ番号昇順で返します。

stability: stableusage type: 0-credit APIcredits: 0

Parameters

NameInRequiredSchema
document_idpathyesstring

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentPageImagesResponse-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document was not found.ProblemDetails
not_found
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error
GET/v1/documents/{document_id}/originals

List original files

API から取得できる文書の元ファイルを列挙します。

stability: stableusage type: 0-credit APIcredits: 0

Parameters

NameInRequiredSchema
document_idpathyesstring

Responses

StatusDescriptionSchemaError codes
200Successful ResponseDocumentOriginalsResponse-
401Authentication failed.ProblemDetails
authentication_requiredinvalid_api_key
403The API key is valid but the account cannot access this API.ProblemDetails
access_not_enabled
404The requested document was not found.ProblemDetails
not_found
422Validation ErrorHTTPValidationError-
429Rate limit, temporary rate restriction or usage limit exceeded.ProblemDetails
quota_exceededrate_limit_exceededrate_limit_restricted
500Internal server error.ProblemDetails
internal_error