{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR API: Filings, XBRL Financials & Insider Trades",
    "description": "SEC EDGAR data as clean rows: any company's filing history with document links, XBRL financial facts such as revenue, net income and assets by period, and insider trades parsed from Forms 3, 4 and 5. By ticker or CIK, no scraping. Free preview with no key.",
    "version": "1.0",
    "x-build-id": "DQ4beICFz9NvIRBGw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pp-api~sec-edgar-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pp-api-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/pp-api~sec-edgar-api/runs": {
      "post": {
        "operationId": "runs-sync-pp-api-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/pp-api~sec-edgar-api/run-sync": {
      "post": {
        "operationId": "run-sync-pp-api-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",
        "properties": {
          "apiKey": {
            "title": "API key (optional)",
            "type": "string",
            "description": "Your sec-api.dev key (starts with sk_sec_). Free plan, no card: https://sec-api.dev/sign-up. Leave empty for a free preview of real SEC data for AAPL, MSFT or NVDA."
          },
          "mode": {
            "title": "What to fetch",
            "enum": [
              "filings",
              "facts",
              "insider"
            ],
            "type": "string",
            "description": "Filings returns each company's filing history with document links. XBRL financial facts returns reported values such as revenue, net income or assets by period. Insider trades parses Forms 3, 4 and 5 into one row per transaction or holding.",
            "default": "filings"
          },
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Tickers or SEC CIK numbers, for example AAPL, MSFT or 320193.",
            "default": [
              "AAPL"
            ],
            "items": {
              "type": "string"
            }
          },
          "form": {
            "title": "Form",
            "type": "string",
            "description": "Filings mode: exact SEC form, for example 10-K, 10-Q, 8-K, S-1, DEF 14A or 10-K/A for amendments. Leave empty for every form."
          },
          "history": {
            "title": "Filing history",
            "enum": [
              "recent",
              "all"
            ],
            "type": "string",
            "description": "Filings and insider trades: recent covers roughly the last 1,000 filings of a company; full history also reads the older submission files.",
            "default": "recent"
          },
          "taxonomy": {
            "title": "Taxonomy",
            "enum": [
              "us-gaap",
              "dei",
              "ifrs-full",
              "srt",
              "all"
            ],
            "type": "string",
            "description": "XBRL financial facts: which taxonomy the concept belongs to.",
            "default": "us-gaap"
          },
          "concept": {
            "title": "Concept",
            "type": "string",
            "description": "XBRL financial facts: exact concept, for example Revenues, RevenueFromContractWithCustomerExcludingAssessedTax, NetIncomeLoss, Assets, EarningsPerShareDiluted or CashAndCashEquivalentsAtCarryingValue. Leave empty for every reported concept."
          },
          "unit": {
            "title": "Unit",
            "type": "string",
            "description": "XBRL financial facts: optional exact unit, for example USD, shares or USD/shares."
          },
          "latestOnly": {
            "title": "Latest value per period",
            "type": "boolean",
            "description": "XBRL financial facts: keep only the most recently filed value of each period, so restated and repeated comparatives appear once.",
            "default": true
          },
          "insiderForm": {
            "title": "Ownership form",
            "enum": [
              "4",
              "3",
              "5",
              "all"
            ],
            "type": "string",
            "description": "Insider trades: which ownership forms to parse.",
            "default": "4"
          },
          "includeAmendments": {
            "title": "Include amendments",
            "type": "boolean",
            "description": "Insider trades: also parse amended filings (4/A, 3/A, 5/A).",
            "default": true
          },
          "maxFilingsPerCompany": {
            "title": "Max ownership filings per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Insider trades: parse at most this many of the newest ownership filings per company. Each filing is one API request.",
            "default": 10
          },
          "maxRequests": {
            "title": "Max API requests",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many requests on your sec-api.dev plan. The free plan includes 100 requests a month.",
            "default": 30
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many rows.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}