{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR API — filings & financials (no key)",
    "description": "Company filings and XBRL financial facts for every SEC filer — lookup, filings, fundamentals, one-metric history and cross-company frames. Official SEC data, no API key. Clean HTTP API + MCP. Pay per query.",
    "version": "0.1",
    "x-build-id": "VP2w7rx1S7UTsedjR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/synthetic.ia~sec-edgar-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-synthetic.ia-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/synthetic.ia~sec-edgar-api/runs": {
      "post": {
        "operationId": "runs-sync-synthetic.ia-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/synthetic.ia~sec-edgar-api/run-sync": {
      "post": {
        "operationId": "run-sync-synthetic.ia-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "lookup",
              "filings",
              "facts",
              "concept",
              "frames"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "facts"
          },
          "ticker": {
            "title": "Ticker",
            "type": "string",
            "description": "Company ticker for lookup / filings / facts / concept, e.g. AAPL, MSFT, BRK.B."
          },
          "cik": {
            "title": "CIK (optional)",
            "type": "string",
            "description": "SEC Central Index Key (digits, zero-padding optional). Use instead of ticker if you have it."
          },
          "q": {
            "title": "Company-name search (lookup)",
            "type": "string",
            "description": "For operation=lookup with no ticker: search companies by name, e.g. \"tesla\"."
          },
          "formType": {
            "title": "Form type filter (filings)",
            "type": "array",
            "description": "For filings: keep only these forms, e.g. 10-K, 10-Q, 8-K, 4, S-1. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "concept": {
            "title": "XBRL concept (concept / frames)",
            "type": "string",
            "description": "XBRL element name, e.g. Revenues, NetIncomeLoss, Assets, EarningsPerShareDiluted."
          },
          "concepts": {
            "title": "Concepts (facts, optional)",
            "type": "array",
            "description": "For facts: return only these XBRL concepts. Empty = a curated fundamentals set.",
            "items": {
              "type": "string"
            }
          },
          "taxonomy": {
            "title": "Taxonomy",
            "enum": [
              "us-gaap",
              "ifrs-full",
              "dei",
              "srt",
              "invest",
              "us-ins"
            ],
            "type": "string",
            "description": "XBRL taxonomy for facts / concept / frames.",
            "default": "us-gaap"
          },
          "unit": {
            "title": "Unit (concept / frames)",
            "type": "string",
            "description": "Unit of measure. For frames it is required in the path: USD, USD-per-shares (EPS), shares, pure."
          },
          "year": {
            "title": "Calendar year (frames)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "For frames: the calendar year, e.g. 2023."
          },
          "quarter": {
            "title": "Quarter (frames, optional)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "For frames: 1-4 for a quarterly period; empty = full-year (annual)."
          },
          "instantaneous": {
            "title": "Instantaneous (frames)",
            "type": "boolean",
            "description": "For frames on balance-sheet (point-in-time) metrics like Assets with a quarter set. Leave off for flows (income/cash-flow).",
            "default": false
          },
          "full": {
            "title": "Full facts (facts)",
            "type": "boolean",
            "description": "For facts: return the entire XBRL company-facts object (large) instead of the compact curated set.",
            "default": false
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Max rows to return (filings ≤100, concept ≤500, frames ≤500, lookup ≤100)."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}