{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings Scraper & XBRL Financial Facts",
    "description": "Get SEC EDGAR filings (10-K, 10-Q, 8-K, Form 4 and all others) or flattened XBRL financial facts (revenue, net income, assets...) for any ticker or CIK from the official data.sec.gov JSON APIs. Fair-access compliant, no HTML scraping.",
    "version": "0.1",
    "x-build-id": "53HxN6X3INo10GEfk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fleet261114~sec-edgar-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fleet261114-sec-edgar-filings",
        "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/fleet261114~sec-edgar-filings/runs": {
      "post": {
        "operationId": "runs-sync-fleet261114-sec-edgar-filings",
        "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/fleet261114~sec-edgar-filings/run-sync": {
      "post": {
        "operationId": "run-sync-fleet261114-sec-edgar-filings",
        "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": {
          "companies": {
            "title": "Companies (tickers or CIK numbers)",
            "type": "array",
            "description": "Stock tickers (AAPL, MSFT) or SEC CIK numbers (320193). One entry per company.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "filings",
              "facts"
            ],
            "type": "string",
            "description": "Filings: one record per filing (form, dates, document links). Facts: one record per XBRL financial fact (value, period, unit, filing it came from).",
            "default": "filings"
          },
          "forms": {
            "title": "Filings: form types",
            "type": "array",
            "description": "Keep only these forms, e.g. 10-K, 10-Q, 8-K, 4, S-1, DEF 14A. Empty = all forms.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Filings: include amendments (/A)",
            "type": "boolean",
            "description": "When you list forms, also keep their amendments (10-K/A for 10-K).",
            "default": false
          },
          "filedAfter": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Date YYYY-MM-DD. Filings: filing date. Facts: date the fact was filed."
          },
          "filedBefore": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Date YYYY-MM-DD."
          },
          "includeOlderFilings": {
            "title": "Filings: include the full history",
            "type": "boolean",
            "description": "The SEC's main list holds a company's latest ~1,000 filings. Switch on to also read the older archive files (extra requests). Done automatically when 'Filed on or after' reaches back past the main list.",
            "default": false
          },
          "concepts": {
            "title": "Facts: concepts",
            "type": "array",
            "description": "XBRL concept names such as Revenues, NetIncomeLoss, Assets, EarningsPerShareDiluted. Empty = every concept the company reports (large).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "taxonomy": {
            "title": "Facts: taxonomy",
            "enum": [
              "us-gaap",
              "ifrs-full",
              "dei",
              "srt"
            ],
            "type": "string",
            "description": "us-gaap (default), ifrs-full, dei or srt.",
            "default": "us-gaap"
          },
          "annualOnly": {
            "title": "Facts: annual report values only",
            "type": "boolean",
            "description": "Keep only full-year values reported in 10-K, 20-F or 40-F filings.",
            "default": false
          },
          "fiscalYearFrom": {
            "title": "Facts: period ends in year or later",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep facts whose period ends in this calendar year or later (e.g. 2022)."
          },
          "allRestatements": {
            "title": "Facts: keep every reported version",
            "type": "boolean",
            "description": "By default each period appears once, from the most recent filing that reports it. Switch on to get every filing's value (restatements and repeats).",
            "default": false
          },
          "maxRecordsPerCompany": {
            "title": "Max records per company",
            "minimum": 0,
            "type": "integer",
            "description": "Cap per company after filters (newest filings first). 0 = no cap.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}