{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Company Fundamentals (EDGAR XBRL)",
    "description": "Annual and quarterly financials of US-listed companies from the SEC's EDGAR XBRL data: revenue, net income, EPS, assets, liabilities, equity, cash flow - one clean row per company and fiscal period, de-duplicated, with the source filing of every value. Tickers or CIKs in, no API key.",
    "version": "0.1",
    "x-build-id": "YzSbxN0ZTJKPiHt2y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/darikami~sec-company-fundamentals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-darikami-sec-company-fundamentals",
        "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/darikami~sec-company-fundamentals/runs": {
      "post": {
        "operationId": "runs-sync-darikami-sec-company-fundamentals",
        "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/darikami~sec-company-fundamentals/run-sync": {
      "post": {
        "operationId": "run-sync-darikami-sec-company-fundamentals",
        "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 CIKs)",
            "type": "array",
            "description": "Tickers (AAPL, BRK.B or BRK-B) or SEC CIK numbers (320193 or 0000320193), one per line. Up to 1,000 per run. Tickers are resolved with the SEC's own ticker list; a company that is not listed there can still be given by its CIK.",
            "items": {
              "type": "string"
            }
          },
          "concepts": {
            "title": "Figures",
            "type": "array",
            "description": "Which figures each row carries. Empty = all of them. The price is per row, not per figure.",
            "items": {
              "type": "string",
              "enum": [
                "revenue",
                "costOfRevenue",
                "grossProfit",
                "researchAndDevelopment",
                "operatingIncome",
                "netIncome",
                "epsBasic",
                "epsDiluted",
                "dilutedSharesWeighted",
                "assets",
                "currentAssets",
                "cash",
                "liabilities",
                "currentLiabilities",
                "longTermDebt",
                "stockholdersEquity",
                "sharesOutstanding",
                "operatingCashFlow",
                "capitalExpenditure",
                "dividendsPaid"
              ],
              "enumTitles": [
                "Revenue",
                "Cost of revenue",
                "Gross profit",
                "Research and development expense",
                "Operating income",
                "Net income (attributable to the parent)",
                "Earnings per share, basic",
                "Earnings per share, diluted",
                "Weighted average diluted shares",
                "Total assets",
                "Current assets",
                "Cash and cash equivalents",
                "Total liabilities",
                "Current liabilities",
                "Long-term debt, non-current part",
                "Stockholders' equity (attributable to the parent)",
                "Common shares outstanding",
                "Net cash from operating activities",
                "Capital expenditure (payments for property, plant and equipment)",
                "Dividends paid"
              ]
            }
          },
          "periodType": {
            "title": "Periods",
            "enum": [
              "annual",
              "quarterly",
              "both"
            ],
            "type": "string",
            "description": "Annual = fiscal years (10-K, 20-F, 40-F). Quarterly = three-month quarters (10-Q; a fourth quarter only where the annual report states it). Both = both kinds of rows.",
            "default": "annual"
          },
          "fromYear": {
            "title": "From fiscal year",
            "minimum": 1993,
            "maximum": 2100,
            "type": "integer",
            "description": "First fiscal year (as the company counts it). Leave both years empty for each company's latest 5 fiscal years."
          },
          "toYear": {
            "title": "To fiscal year",
            "minimum": 1993,
            "maximum": 2100,
            "type": "integer",
            "description": "Last fiscal year. Empty = up to the latest filed."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "\"reporting\" = the currency the company reports in (USD for US companies, EUR for SAP). Or a three-letter code such as USD: then only values filed in that currency are taken.",
            "default": "reporting"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}