{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Company Financials: XBRL Facts by Ticker | $1/1K",
    "description": "$1 per 1,000 results, platform usage included. Reported financials for US listed companies from SEC XBRL filings, by ticker: revenue, net income, assets, cash flow, EPS and more, one row per fiscal year or quarter with filing date and form. No API key.",
    "version": "0.1",
    "x-build-id": "c3V7sggOktNvW7Id2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~sec-company-financials-xbrl/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-sec-company-financials-xbrl",
        "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/one_dollar_store~sec-company-financials-xbrl/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-sec-company-financials-xbrl",
        "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/one_dollar_store~sec-company-financials-xbrl/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-sec-company-financials-xbrl",
        "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": [
          "tickers"
        ],
        "properties": {
          "tickers": {
            "title": "Tickers or CIK numbers",
            "type": "array",
            "description": "Stock tickers such as AAPL or BRK-B, or SEC CIK numbers such as 320193. One company per line.",
            "items": {
              "type": "string"
            }
          },
          "periods": {
            "title": "Periods",
            "enum": [
              "annual",
              "quarterly",
              "both"
            ],
            "type": "string",
            "description": "Annual rows from 10-K reports, quarterly rows from 10-Q reports (the first three quarters of each year), or both.",
            "default": "annual"
          },
          "concepts": {
            "title": "Figures to return",
            "type": "array",
            "description": "Which figures to put in each row. Each one is read from the first matching XBRL tag the company uses.",
            "items": {
              "type": "string",
              "enum": [
                "revenue",
                "costOfRevenue",
                "grossProfit",
                "researchAndDevelopment",
                "operatingExpenses",
                "operatingIncome",
                "incomeTaxExpense",
                "netIncome",
                "epsBasic",
                "epsDiluted",
                "dilutedShares",
                "operatingCashFlow",
                "investingCashFlow",
                "financingCashFlow",
                "capitalExpenditures",
                "dividendsPaid",
                "totalAssets",
                "currentAssets",
                "cash",
                "inventory",
                "totalLiabilities",
                "currentLiabilities",
                "longTermDebt",
                "stockholdersEquity"
              ],
              "enumTitles": [
                "Revenue",
                "Cost of revenue",
                "Gross profit",
                "Research and development",
                "Operating expenses",
                "Operating income",
                "Income tax expense",
                "Net income",
                "EPS basic",
                "EPS diluted",
                "Diluted shares (weighted)",
                "Operating cash flow",
                "Investing cash flow",
                "Financing cash flow",
                "Capital expenditures",
                "Dividends paid",
                "Total assets",
                "Current assets",
                "Cash and equivalents",
                "Inventory",
                "Total liabilities",
                "Current liabilities",
                "Long term debt",
                "Stockholders equity"
              ]
            },
            "default": [
              "revenue",
              "grossProfit",
              "operatingIncome",
              "netIncome",
              "epsDiluted",
              "totalAssets",
              "totalLiabilities",
              "stockholdersEquity",
              "cash",
              "operatingCashFlow"
            ]
          },
          "extraConcepts": {
            "title": "Extra XBRL tags",
            "type": "array",
            "description": "Optional. Any other us-gaap tag by name, for example InventoryNet or DepreciationDepletionAndAmortization. Values appear under extra in each row.",
            "items": {
              "type": "string"
            }
          },
          "fromYear": {
            "title": "From fiscal year",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional. Skip fiscal years before this one."
          },
          "valueBasis": {
            "title": "Which value to use",
            "enum": [
              "latest",
              "original"
            ],
            "type": "string",
            "description": "A later filing can restate a figure. Latest uses the most recent value filed for the period. Original uses the value as first reported.",
            "default": "latest"
          },
          "maxPeriodsPerCompany": {
            "title": "Periods per company",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The most periods to return for each company, newest first.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum results in total",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many rows across all companies. Minimum 10.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}