Skip to content

Commit 3f977d5

Browse files
committed
update openapi file
1 parent 1e5a0ae commit 3f977d5

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

finfeedapi/sec-api-rest/spec/openapi.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"/v1/download": {
2323
"get": {
2424
"tags": [
25-
"File Download"
25+
"Download"
2626
],
2727
"summary": "Download file from SEC EDGAR archive",
28-
"description": "Downloads a specific file from the SEC EDGAR archive using the accession number and filename.\nThe file is streamed directly from the SEC servers to the client.\n\n### Accession Number Format\nAccession numbers must be in the format: 0000000000-00-000000 (10 digits, dash, 2 digits, dash, 6 digits)\n\n### File Name Examples\n- Primary documents: `d123456d10k.htm`, `d789012d8k.htm`\n- XBRL files: `d123456d10k_htm.xml`, `FilingSummary.xml`\n- Exhibits: `d123456dexhibit99.htm`, `d123456dex101.htm`\n\n### File Types\nThe endpoint supports downloading various file types from SEC filings:\n- HTML documents (.htm, .html)\n- XBRL files (.xml, .xsd)\n- Text files (.txt)\n- PDF files (.pdf)\n- Other document formats as submitted to SEC\n\n:::tip\nYou can find available filenames for a specific filing using the `/v1/filings` endpoint first\n:::\n\n:::warning\nThis endpoint streams files directly from the SEC. Large files may take longer to download.\n:::",
28+
"description": "Downloads a specific file from the SEC EDGAR archive using the accession number and filename.\nThe file is streamed directly from the SEC servers to the client.\n \n### Accession Number Format\nAccession numbers must be in the format: 0000000000-00-000000 (10 digits, dash, 2 digits, dash, 6 digits)\n \n### File Name Examples\n- Primary documents: `d123456d10k.htm`, `d789012d8k.htm`\n- XBRL files: `d123456d10k_htm.xml`, `FilingSummary.xml`\n- Exhibits: `d123456dexhibit99.htm`, `d123456dex101.htm`\n \n### File Types\nThe endpoint supports downloading various file types from SEC filings:\n- HTML documents (.htm, .html)\n- XBRL files (.xml, .xsd)\n- Text files (.txt)\n- PDF files (.pdf)\n- Other document formats as submitted to SEC\n \n:::tip\nYou can find available filenames for a specific filing using the `/v1/filings` endpoint first\n:::\n \n:::warning\nThis endpoint streams files directly from the SEC. Large files may take longer to download.\n:::",
2929
"parameters": [
3030
{
3131
"name": "accession_no",
@@ -109,7 +109,7 @@
109109
"/v1/extractor": {
110110
"get": {
111111
"tags": [
112-
"Content Extraction"
112+
"Extractor"
113113
],
114114
"summary": "Extract and classify SEC filing content",
115115
"description": "Retrieves filing content from the EDGAR database and intelligently classifies it according to form type and item categories.\n\n### Supported Form Types\n\nForm Type | Description\n----------|------------\n8-K | Current report filing\n10-K | Annual report filing\n10-Q | Quarterly report filing\n\n### Content Classification\n- 8-K forms: Content classified by item numbers (e.g., 1.01, 2.01)\n- 10-K/10-Q forms: Items categorized by their respective part and item structure\n\n:::note\nBoth HTML and plain text documents are supported for content extraction.\n:::",
@@ -198,7 +198,7 @@
198198
"/v1/extractor/item": {
199199
"get": {
200200
"tags": [
201-
"Content Extraction"
201+
"Extractor"
202202
],
203203
"summary": "Extract specific item content from SEC filing",
204204
"description": "Retrieves filing content from the EDGAR database and returns only the text content of the specified item number.\n\n### Item Number Format\n\nForm Type | Item Format Examples\n-----------|-------------------\n8-K | 1.01, 2.01, 7.01\n10-K | 1, 2, 3\n10-K/10-Q | PartI 1, PartII 2\n\n:::tip\nFor best results, ensure the item number matches exactly with the filing's structure.\n:::",
@@ -270,7 +270,7 @@
270270
"/v1/filings": {
271271
"get": {
272272
"tags": [
273-
"Filing Metadata"
273+
"Filings"
274274
],
275275
"summary": "Query SEC filing metadata",
276276
"description": "Retrieves metadata for SEC filings based on various filter criteria with pagination and sorting support.\n\n### Available Sort Fields\n\nField Name | Description\n-----------|-------------\nAccessionNumber | SEC filing accession number\nFilingDate | Date when filing was submitted\nAcceptanceDateTime | Date and time of filing acceptance\nReportDate | Date of the report\nSize | Size of the filing document\n\n### Date Format\nAll dates must be provided in YYYY-MM-DD format\n\n### Form Types\nForm types can be provided as comma-separated values, e.g.: \"10-K,8-K,10-Q\"\n\n:::tip\nFor optimal performance, use date ranges and form types to narrow down your search\n:::",
@@ -448,7 +448,7 @@
448448
"/v1/full-text": {
449449
"get": {
450450
"tags": [
451-
"Full Text Search"
451+
"FullText"
452452
],
453453
"summary": "Full-text search of SEC filing documents",
454454
"description": "Search across SEC filing documents with advanced filtering and sorting capabilities.\n\n### Available Sort Fields\n\nField Name | Description\n-----------|-------------\nAccessionNumber | SEC filing accession number\nFormType | Type of the filing document\nFilingDate | Date when filing was submitted\nCompanyName | Name of the company\nCIK | Central Index Key\nDocumentFilename | Name of the filing document\nDocumentDescription | Description of the document\n\n### Search Options\n\nOption | Description\n--------|-------------\ntext_contains | Keywords that must appear in the document\ntext_not_contain | Keywords that must not appear in the document\n\n### Date Format\nAll dates must be provided in YYYY-MM-DD format\n\n:::tip\nUse text_contains and text_not_contain with multiple keywords separated by commas for more precise searches\n:::\n\n:::note\nThe search is case-insensitive and supports partial word matches\n:::",
@@ -588,7 +588,7 @@
588588
"/v1/xbrl-converter": {
589589
"get": {
590590
"tags": [
591-
"XBRL Conversion"
591+
"XbrlConverter"
592592
],
593593
"summary": "Convert XBRL data to JSON format",
594594
"description": "Converts XBRL data to JSON format using one of three possible input methods.\n\n### Input Methods\n\n1. HTML URL (htm-url)\n - URL of the filing ending with .htm or .html\n - Both filing URLs and index page URLs are accepted\n - Example: https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231.htm\n\n2. XBRL URL (xbrl-url)\n - URL of the XBRL file ending with .xml\n - Can be found in the dataFiles array from Query API\n - Example: https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231_htm.xml\n\n3. Accession Number (accession-no)\n - The SEC filing accession number\n - Example: 0001564590-21-004599\n\n:::note\nOnly one of the three parameters should be provided. If multiple parameters are provided, the priority order is:\n1. htm-url\n2. xbrl-url\n3. accession-no\n:::\n\n### Supported Filing Types\n\n- Annual Reports (10-K)\n- Quarterly Reports (10-Q)\n- Current Reports (8-K)\n- Registration Statements (S-1, S-3)\n- Foreign Private Issuer Reports (20-F, 40-F)\n\n### Response Format\n\nThe API returns a JSON object containing:\n- Financial statements (Income Statement, Balance Sheet, Cash Flow Statement)\n- Accounting policies and footnotes\n- Company information\n- Filing metadata\n\n### Example Response\n```json\n{\n \"StatementsOfIncome\": {\n \"RevenueFromContractWithCustomerExcludingAssessedTax\": [\n {\n \"decimals\": \"-6\",\n \"unitRef\": \"U_USD\",\n \"period\": {\n \"startDate\": \"2023-07-01\",\n \"endDate\": \"2024-06-30\"\n },\n \"value\": \"245122000000\"\n }\n ]\n }\n}\n```",
@@ -1046,20 +1046,20 @@
10461046
],
10471047
"tags": [
10481048
{
1049-
"name": "Extractor",
1050-
"description": "Provides endpoints for extracting and classifying content from SEC filing HTML documents."
1051-
},
1052-
{
1053-
"name": "Filings",
1054-
"description": "Provides endpoints for querying historical SEC filing metadata.\nAllows users to filter filings based on criteria like CIK, form type, date ranges, etc."
1049+
"name": "XbrlConverter",
1050+
"description": "Provides endpoints for converting XBRL data to JSON format from various SEC filing sources."
10551051
},
10561052
{
10571053
"name": "FullText",
10581054
"description": "Provides endpoints for performing full-text searches on historical SEC filing documents.\nAllows users to query filings based on various criteria such as form type, date ranges, and text content."
10591055
},
10601056
{
1061-
"name": "XbrlConverter",
1062-
"description": "Provides endpoints for converting XBRL data to JSON format from various SEC filing sources."
1057+
"name": "Filings",
1058+
"description": "Provides endpoints for querying historical SEC filing metadata.\nAllows users to filter filings based on criteria like CIK, form type, date ranges, etc."
1059+
},
1060+
{
1061+
"name": "Extractor",
1062+
"description": "Provides endpoints for extracting and classifying content from SEC filing HTML documents."
10631063
},
10641064
{
10651065
"name": "Download",

finfeedapi/sec-api-rest/spec/openapi.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ paths:
1515
/v1/download:
1616
get:
1717
tags:
18-
- File Download
18+
- Download
1919
summary: Download file from SEC EDGAR archive
20-
description: "Downloads a specific file from the SEC EDGAR archive using the accession number and filename.\nThe file is streamed directly from the SEC servers to the client.\n\n### Accession Number Format\nAccession numbers must be in the format: 0000000000-00-000000 (10 digits, dash, 2 digits, dash, 6 digits)\n\n### File Name Examples\n- Primary documents: `d123456d10k.htm`, `d789012d8k.htm`\n- XBRL files: `d123456d10k_htm.xml`, `FilingSummary.xml`\n- Exhibits: `d123456dexhibit99.htm`, `d123456dex101.htm`\n\n### File Types\nThe endpoint supports downloading various file types from SEC filings:\n- HTML documents (.htm, .html)\n- XBRL files (.xml, .xsd)\n- Text files (.txt)\n- PDF files (.pdf)\n- Other document formats as submitted to SEC\n\n:::tip\nYou can find available filenames for a specific filing using the `/v1/filings` endpoint first\n:::\n\n:::warning\nThis endpoint streams files directly from the SEC. Large files may take longer to download.\n:::"
20+
description: "Downloads a specific file from the SEC EDGAR archive using the accession number and filename.\nThe file is streamed directly from the SEC servers to the client.\n \n### Accession Number Format\nAccession numbers must be in the format: 0000000000-00-000000 (10 digits, dash, 2 digits, dash, 6 digits)\n \n### File Name Examples\n- Primary documents: `d123456d10k.htm`, `d789012d8k.htm`\n- XBRL files: `d123456d10k_htm.xml`, `FilingSummary.xml`\n- Exhibits: `d123456dexhibit99.htm`, `d123456dex101.htm`\n \n### File Types\nThe endpoint supports downloading various file types from SEC filings:\n- HTML documents (.htm, .html)\n- XBRL files (.xml, .xsd)\n- Text files (.txt)\n- PDF files (.pdf)\n- Other document formats as submitted to SEC\n \n:::tip\nYou can find available filenames for a specific filing using the `/v1/filings` endpoint first\n:::\n \n:::warning\nThis endpoint streams files directly from the SEC. Large files may take longer to download.\n:::"
2121
parameters:
2222
- name: accession_no
2323
in: query
@@ -71,7 +71,7 @@ paths:
7171
/v1/extractor:
7272
get:
7373
tags:
74-
- Content Extraction
74+
- Extractor
7575
summary: Extract and classify SEC filing content
7676
description: "Retrieves filing content from the EDGAR database and intelligently classifies it according to form type and item categories.\n\n### Supported Form Types\n\nForm Type | Description\n----------|------------\n8-K | Current report filing\n10-K | Annual report filing\n10-Q | Quarterly report filing\n\n### Content Classification\n- 8-K forms: Content classified by item numbers (e.g., 1.01, 2.01)\n- 10-K/10-Q forms: Items categorized by their respective part and item structure\n\n:::note\nBoth HTML and plain text documents are supported for content extraction.\n:::"
7777
parameters:
@@ -134,7 +134,7 @@ paths:
134134
/v1/extractor/item:
135135
get:
136136
tags:
137-
- Content Extraction
137+
- Extractor
138138
summary: Extract specific item content from SEC filing
139139
description: "Retrieves filing content from the EDGAR database and returns only the text content of the specified item number.\n\n### Item Number Format\n\nForm Type | Item Format Examples\n-----------|-------------------\n8-K | 1.01, 2.01, 7.01\n10-K | 1, 2, 3\n10-K/10-Q | PartI 1, PartII 2\n\n:::tip\nFor best results, ensure the item number matches exactly with the filing's structure.\n:::"
140140
parameters:
@@ -179,7 +179,7 @@ paths:
179179
/v1/filings:
180180
get:
181181
tags:
182-
- Filing Metadata
182+
- Filings
183183
summary: Query SEC filing metadata
184184
description: "Retrieves metadata for SEC filings based on various filter criteria with pagination and sorting support.\n\n### Available Sort Fields\n\nField Name | Description\n-----------|-------------\nAccessionNumber | SEC filing accession number\nFilingDate | Date when filing was submitted\nAcceptanceDateTime | Date and time of filing acceptance\nReportDate | Date of the report\nSize | Size of the filing document\n\n### Date Format\nAll dates must be provided in YYYY-MM-DD format\n\n### Form Types\nForm types can be provided as comma-separated values, e.g.: \"10-K,8-K,10-Q\"\n\n:::tip\nFor optimal performance, use date ranges and form types to narrow down your search\n:::"
185185
parameters:
@@ -301,7 +301,7 @@ paths:
301301
/v1/full-text:
302302
get:
303303
tags:
304-
- Full Text Search
304+
- FullText
305305
summary: Full-text search of SEC filing documents
306306
description: "Search across SEC filing documents with advanced filtering and sorting capabilities.\n\n### Available Sort Fields\n\nField Name | Description\n-----------|-------------\nAccessionNumber | SEC filing accession number\nFormType | Type of the filing document\nFilingDate | Date when filing was submitted\nCompanyName | Name of the company\nCIK | Central Index Key\nDocumentFilename | Name of the filing document\nDocumentDescription | Description of the document\n\n### Search Options\n\nOption | Description\n--------|-------------\ntext_contains | Keywords that must appear in the document\ntext_not_contain | Keywords that must not appear in the document\n\n### Date Format\nAll dates must be provided in YYYY-MM-DD format\n\n:::tip\nUse text_contains and text_not_contain with multiple keywords separated by commas for more precise searches\n:::\n\n:::note\nThe search is case-insensitive and supports partial word matches\n:::"
307307
parameters:
@@ -394,7 +394,7 @@ paths:
394394
/v1/xbrl-converter:
395395
get:
396396
tags:
397-
- XBRL Conversion
397+
- XbrlConverter
398398
summary: Convert XBRL data to JSON format
399399
description: "Converts XBRL data to JSON format using one of three possible input methods.\n\n### Input Methods\n\n1. HTML URL (htm-url)\n - URL of the filing ending with .htm or .html\n - Both filing URLs and index page URLs are accepted\n - Example: https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231.htm\n\n2. XBRL URL (xbrl-url)\n - URL of the XBRL file ending with .xml\n - Can be found in the dataFiles array from Query API\n - Example: https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231_htm.xml\n\n3. Accession Number (accession-no)\n - The SEC filing accession number\n - Example: 0001564590-21-004599\n\n:::note\nOnly one of the three parameters should be provided. If multiple parameters are provided, the priority order is:\n1. htm-url\n2. xbrl-url\n3. accession-no\n:::\n\n### Supported Filing Types\n\n- Annual Reports (10-K)\n- Quarterly Reports (10-Q)\n- Current Reports (8-K)\n- Registration Statements (S-1, S-3)\n- Foreign Private Issuer Reports (20-F, 40-F)\n\n### Response Format\n\nThe API returns a JSON object containing:\n- Financial statements (Income Statement, Balance Sheet, Cash Flow Statement)\n- Accounting policies and footnotes\n- Company information\n- Filing metadata\n\n### Example Response\n```json\n{\n \"StatementsOfIncome\": {\n \"RevenueFromContractWithCustomerExcludingAssessedTax\": [\n {\n \"decimals\": \"-6\",\n \"unitRef\": \"U_USD\",\n \"period\": {\n \"startDate\": \"2023-07-01\",\n \"endDate\": \"2024-06-30\"\n },\n \"value\": \"245122000000\"\n }\n ]\n }\n}\n```"
400400
parameters:
@@ -761,13 +761,13 @@ security:
761761
- APIKey: [ ]
762762
- JWT: [ ]
763763
tags:
764-
- name: Extractor
765-
description: Provides endpoints for extracting and classifying content from SEC filing HTML documents.
766-
- name: Filings
767-
description: "Provides endpoints for querying historical SEC filing metadata.\nAllows users to filter filings based on criteria like CIK, form type, date ranges, etc."
768-
- name: FullText
769-
description: "Provides endpoints for performing full-text searches on historical SEC filing documents.\nAllows users to query filings based on various criteria such as form type, date ranges, and text content."
770764
- name: XbrlConverter
771765
description: Provides endpoints for converting XBRL data to JSON format from various SEC filing sources.
766+
- name: FullText
767+
description: "Provides endpoints for performing full-text searches on historical SEC filing documents.\nAllows users to query filings based on various criteria such as form type, date ranges, and text content."
768+
- name: Filings
769+
description: "Provides endpoints for querying historical SEC filing metadata.\nAllows users to filter filings based on criteria like CIK, form type, date ranges, etc."
770+
- name: Extractor
771+
description: Provides endpoints for extracting and classifying content from SEC filing HTML documents.
772772
- name: Download
773773
description: "Provides endpoints for downloading files directly from the SEC EDGAR archive.\nAllows users to download specific filing documents by accession number and filename."

0 commit comments

Comments
 (0)