{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR API: Filings as Markdown, Financials, Form 4, 13F",
    "description": "SEC filings made usable: 10-K and 10-Q sections as clean Markdown for LLMs, normalized financial statements, insider trades (Form 4) and 13F holdings, from official SEC data. No API key. Errors are free.",
    "version": "0.1",
    "x-build-id": "mpUF43Z2EZi1vNdyO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codepulsehq~sec-edgar-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codepulsehq-sec-edgar-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/codepulsehq~sec-edgar-api/runs": {
      "post": {
        "operationId": "runs-sync-codepulsehq-sec-edgar-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/codepulsehq~sec-edgar-api/run-sync": {
      "post": {
        "operationId": "run-sync-codepulsehq-sec-edgar-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "companies"
        ],
        "properties": {
          "dataType": {
            "title": "What do you want?",
            "enum": [
              "filing_text",
              "financials",
              "insider_trades",
              "holdings_13f",
              "filings"
            ],
            "type": "string",
            "description": "The kind of data to return. Each option has its own price per result, shown on the Pricing tab.",
            "default": "filing_text"
          },
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Tickers such as AAPL or BRK.B, or numeric CIK numbers such as 0001067983. For institutional holdings use the fund manager's CIK, for example 1067983 for Berkshire Hathaway.",
            "items": {
              "type": "string"
            }
          },
          "forms": {
            "title": "Filing types (optional)",
            "type": "array",
            "description": "Which filing types to include, for example 10-K, 10-Q or 8-K. Leave empty for sensible defaults: 10-K for filing text, 4 for insider trades, 13F-HR for holdings.",
            "items": {
              "type": "string"
            }
          },
          "maxFilingsPerCompany": {
            "title": "How many filings per company",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Newest first. Defaults: 1 for filing text and holdings, 20 for insider trades and filing lists."
          },
          "since": {
            "title": "Only filings since (optional)",
            "type": "string",
            "description": "A date in YYYY-MM-DD format, for example 2025-01-01."
          },
          "sections": {
            "title": "Sections to return (filing text only)",
            "type": "array",
            "description": "Items of the filing you want, for example 1A for Risk Factors, 7 for Management's Discussion, 1 for Business, 7A for market risk. Use all for every Item. Default: 1, 1A, 7 and 7A. Ignored for 8-Ks, which always return every Item.",
            "items": {
              "type": "string"
            }
          },
          "maxCharsPerSection": {
            "title": "Maximum length of each section (characters)",
            "minimum": 1000,
            "maximum": 400000,
            "type": "integer",
            "description": "Long sections, such as Risk Factors, can run to 100,000 characters. Longer ones are cut and marked as truncated. Default 40,000."
          },
          "periodType": {
            "title": "Annual or quarterly (financials only)",
            "enum": [
              "both",
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "Annual figures come from 10-K filings, quarterly from 10-Q filings. Quarterly mode returns the three reported quarters of each year.",
            "default": "both"
          },
          "periods": {
            "title": "How many periods (financials only)",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Number of annual periods, newest first. Quarterly returns twice as many. Default 5."
          },
          "topHoldings": {
            "title": "Largest holdings to return (13F only)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only the largest positions by value are returned. Default 500."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}