MarketLingo.ai

MarketLingo.ai · GPT Actions

SEC Filings Item Extraction API

API for extracting specific items from SEC filings in either text or HTML format.

  • GET /extractorExtracts a specific item from an SEC filing.

    Retrieves a specific item from an SEC filing in either text or HTML format using an API key for authentication.

原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "SEC Filings Item Extraction API",
    "description": "API for extracting specific items from SEC filings in either text or HTML format.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.sec-api.io",
      "description": "SEC API main server"
    }
  ],
  "paths": {
    "/extractor": {
      "get": {
        "operationId": "extractItem",
        "summary": "Extracts a specific item from an SEC filing.",
        "description": "Retrieves a specific item from an SEC filing in either text or HTML format using an API key for authentication.",
        "parameters": [
          {
            "in": "query",
            "name": "url",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The URL of the SEC filing to extract from."
          },
          {
            "in": "query",
            "name": "item",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The specific item to extract from the filing."
          },
          {
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "html"
              ]
            },
            "description": "The format of the output (text or HTML)."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the specified item.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "extractedContent": {
                      "type": "string",
                      "description": "The content of the extracted item."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access, invalid or missing API key."
          }
        }
      }
    }
  }
}