{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Financial Facts",
    "description": "Give a ticker or CIK, get every reported XBRL financial fact for any US public company from the official SEC EDGAR company-facts API (data.sec.gov) — revenue, assets, EPS, cash, liabilities and every us-gaap + dei concept, flattened to one analysis-ready row per observation. No API key.",
    "version": "0.1",
    "x-build-id": "hYI5jAhLIj18G1H21"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamule~sec-edgar-financial-facts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamule-sec-edgar-financial-facts",
        "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/datamule~sec-edgar-financial-facts/runs": {
      "post": {
        "operationId": "runs-sync-datamule-sec-edgar-financial-facts",
        "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/datamule~sec-edgar-financial-facts/run-sync": {
      "post": {
        "operationId": "run-sync-datamule-sec-edgar-financial-facts",
        "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": {
          "ticker": {
            "title": "Ticker symbol",
            "type": "string",
            "description": "A U.S. stock ticker to look up, e.g. \"AAPL\", \"MSFT\", \"NVDA\". It is resolved to the company's Central Index Key (CIK) via SEC's official ticker directory (https://www.sec.gov/files/company_tickers.json). Provide a ticker OR a CIK (or use the batch arrays below) — at least one identifier is required."
          },
          "cik": {
            "title": "CIK (Central Index Key)",
            "type": "string",
            "description": "A company's SEC Central Index Key, e.g. \"320193\" for Apple. Zero-padding is handled for you (320193 becomes CIK0000320193). Provide a CIK OR a ticker. Use this when you already know the CIK — it skips the ticker lookup."
          },
          "tickers": {
            "title": "Ticker symbols (batch)",
            "type": "array",
            "description": "Look up several companies by ticker in one run, e.g. [\"AAPL\", \"MSFT\", \"GOOGL\"]. Each emitted row is tagged with the CIK it came from (_cik). Combine freely with the CIK batch below.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "CIKs (batch)",
            "type": "array",
            "description": "Extract facts for several companies by CIK in one run, e.g. [\"320193\", \"789019\"]. Each row is tagged with its _cik.",
            "items": {
              "type": "string"
            }
          },
          "concept": {
            "title": "Single concept (optional)",
            "type": "string",
            "description": "Restrict to ONE XBRL concept tag, e.g. \"Revenues\", \"Assets\", \"EarningsPerShareBasic\", \"NetIncomeLoss\", \"CashAndCashEquivalentsAtCarryingValue\". When set, the fast per-concept companyconcept endpoint is used (one concept for the company). Leave empty to extract EVERY reported concept (us-gaap + dei) via the full companyfacts endpoint — the complete fundamentals set. The tag is case-sensitive and must match the XBRL element name."
          },
          "taxonomy": {
            "title": "Taxonomy (single-concept mode)",
            "enum": [
              "us-gaap",
              "dei",
              "ifrs-full",
              "srt",
              "invest"
            ],
            "type": "string",
            "description": "The XBRL taxonomy the concept belongs to. Only used when \"concept\" is set. us-gaap (US GAAP financial concepts — the default, covers revenues/assets/EPS/etc.), dei (Document & Entity Information — shares outstanding, public float), ifrs-full (IFRS filers), srt (SEC reporting taxonomy), invest (investment schedules).",
            "default": "us-gaap"
          },
          "forms": {
            "title": "Form filter (optional)",
            "type": "array",
            "description": "Keep only fact-observations reported on these SEC form types, e.g. [\"10-K\"] for annual only, or [\"10-K\", \"10-Q\"] for annual + quarterly. Other common values: 8-K, 20-F, 40-F, S-1. Leave empty to keep facts from every form the filer used.",
            "items": {
              "type": "string"
            }
          },
          "maxRecords": {
            "title": "Max records (global cap)",
            "minimum": 1,
            "type": "integer",
            "description": "A GLOBAL cap on the number of fact rows to emit across ALL companies (each row is one fact-observation and one billable event). A full companyfacts run on a large filer can return tens of thousands of facts, so a cap makes a cheap, deterministic sample. Leave empty to extract every matching fact."
          },
          "userAgent": {
            "title": "User-Agent override (optional)",
            "type": "string",
            "description": "SEC's fair-access policy REQUIRES every automated request to send a descriptive User-Agent that includes contact info, or it returns HTTP 403. The actor already sends a compliant default, so you normally leave this empty. Override it only if you want SEC to see your own contact string, e.g. \"MyCompany research (contact@example.com)\". A blank or generic UA will be rejected by SEC."
          },
          "timeoutSecs": {
            "title": "Read timeout (seconds)",
            "minimum": 5,
            "type": "integer",
            "description": "Per-request read timeout. The full companyfacts document for a large filer is several megabytes, so the default is generous. Increase it if you extract many large filers in one run.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}