{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Company Financials, Filings and XBRL Facts API",
    "description": "Give it tickers, CIKs or company names, get reported financials (revenue, net income, EPS, assets, cash flow) with the source filing, plus filing lists and company profiles. Official SEC EDGAR data, no Yahoo scraping. $0.003 per company.",
    "version": "0.1",
    "x-build-id": "KpcGAiADvHXwmWMDL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opstoolkit~sec-edgar-company-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opstoolkit-sec-edgar-company-data",
        "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/opstoolkit~sec-edgar-company-data/runs": {
      "post": {
        "operationId": "runs-sync-opstoolkit-sec-edgar-company-data",
        "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/opstoolkit~sec-edgar-company-data/run-sync": {
      "post": {
        "operationId": "run-sync-opstoolkit-sec-edgar-company-data",
        "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": {
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Stock ticker symbols of the companies to look up. Example: [\"AAPL\", \"MSFT\", \"BRK-B\"]. Share-class dots are fine (BRK.B works). Case does not matter. Up to 500 companies per run across tickers, ciks and names. A ticker the SEC does not list returns a free row that says so.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "CIK numbers",
            "type": "array",
            "description": "SEC Central Index Key numbers, digits only, leading zeros optional. Example: [\"320193\"] for Apple. Use this for companies that changed their ticker, were delisted, or have no ticker. Optional.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Company names",
            "type": "array",
            "description": "Company names, matched against the SEC's list of listed companies (exact name first, then names that start with or contain every word). Example: [\"Apple\", \"Johnson & Johnson\"]. The run summary lists the closest alternatives when a name is ambiguous. Use tickers when you can. Optional.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "facts",
              "filings",
              "profile"
            ],
            "type": "string",
            "description": "'facts' (default) returns reported financial metrics, one row per company, metric and fiscal period. 'filings' returns the list of SEC filings (10-K, 10-Q, 8-K and others). 'profile' returns one company profile row: name, exchange, SIC industry code, fiscal year end, former names.",
            "default": "facts"
          },
          "metrics": {
            "title": "Metrics (facts mode)",
            "type": "array",
            "description": "Which metrics to return in facts mode. Leave empty for all 12. Allowed names: revenue, netIncome, operatingIncome, eps, totalAssets, totalLiabilities, equity, cash, operatingCashFlow, sharesOutstanding, researchAndDevelopment, capex. Example: [\"revenue\", \"netIncome\", \"eps\"]. A metric a company does not report is left out and named in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "periods": {
            "title": "Periods (facts mode)",
            "enum": [
              "annual",
              "quarterly",
              "both"
            ],
            "type": "string",
            "description": "'annual' (default) returns fiscal-year figures. 'quarterly' returns Q1 to Q4 (a flow figure that the company only reports year to date is derived as the difference and marked derived). 'both' returns both.",
            "default": "annual"
          },
          "years": {
            "title": "Fiscal years (facts mode)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many fiscal years back from the company's latest reported year. Default 5 (the form is prefilled with 3), from 1 to 30. Older years may be missing for companies that started filing XBRL later (about 2009 onward).",
            "default": 5
          },
          "forms": {
            "title": "Form types (filings mode)",
            "type": "array",
            "description": "Only return these SEC form types in filings mode. Example: [\"10-K\", \"10-Q\", \"8-K\"]. Amendments have their own name, so add \"10-K/A\" to include them. Leave empty for every form type.",
            "items": {
              "type": "string"
            }
          },
          "since": {
            "title": "Filed on or after (filings mode)",
            "type": "string",
            "description": "Only return filings filed on or after this date, format YYYY-MM-DD. Example: \"2024-01-01\". Leave empty for no date limit."
          },
          "maxFilings": {
            "title": "Max filings per company (filings mode)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most filings to return per company in filings mode, newest first, from 1 to 1,000. Default 50. You pay per filing row returned.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}