{
  "openapi": "3.0.1",
  "info": {
    "title": "Earnings Calendar & IPO Calendar API: SEC 8-K, Dividends",
    "description": "Earnings calendar and IPO calendar from SEC EDGAR: 8-K earnings releases with ticker and filing time, labelled upcoming report dates, upcoming IPOs with stage, price range, symbol and exchange, plus dividend amount, ex-dividend, record and pay dates. JSON, no API key.",
    "version": "0.17",
    "x-build-id": "vCfB7V4xpER7mmuS7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gochujang~stock-earnings-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gochujang-stock-earnings-tracker",
        "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/gochujang~stock-earnings-tracker/runs": {
      "post": {
        "operationId": "runs-sync-gochujang-stock-earnings-tracker",
        "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/gochujang~stock-earnings-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-gochujang-stock-earnings-tracker",
        "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": {
          "symbols": {
            "title": "Ticker filter",
            "type": "array",
            "description": "US tickers to include (case-insensitive), e.g. AAPL, MSFT. Empty = companies that filed an earnings 8-K (Item 2.02) in the same window a year earlier, found via SEC full-text search (up to 2,000 filings), not every SEC filer.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dataTypes": {
            "title": "Data types",
            "type": "array",
            "description": "SEC EDGAR event types. 'earnings' (default) = 8-K Item 2.02 filings and labelled estimates. 'dividends' = 8-K dividend declarations. 'ipos' = one row per S-1/F-1 IPO registration with stage (filed, price_range_set, effective, priced, withdrawn), price range, symbol, exchange; follow-on, resale and S-3/S-4/S-8 excluded. 'ipo_calendar' = upcoming IPOs only (range set or effective, not priced), window of 45+ days. 'splits' = 8-K stock splits. Rows carry event_type; limit is per type.",
            "items": {
              "type": "string",
              "enum": [
                "earnings",
                "dividends",
                "ipos",
                "ipo_calendar",
                "splits"
              ],
              "enumTitles": [
                "Earnings",
                "Dividends",
                "IPOs (all stages)",
                "IPO calendar (upcoming)",
                "Stock splits"
              ]
            },
            "default": [
              "earnings"
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "upcoming",
              "recent",
              "search"
            ],
            "type": "string",
            "description": "'upcoming' = estimated future SEC filing dates. 'recent' = past Item 2.02 filing dates. 'search' = a wider date window. SEC does not provide analyst EPS actuals or consensus.",
            "default": "upcoming"
          },
          "earningsWeek": {
            "title": "Earnings week shortcut",
            "enum": [
              "this_week",
              "next_week",
              "custom"
            ],
            "type": "string",
            "description": "Quick date-range shortcut. 'This week' = Mon-Fri of current week. 'Next week' = Mon-Fri of next week. 'Custom' = use daysBack/daysAhead. Example: \"custom\".",
            "default": "custom"
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many days from today to include (used when earningsWeek=custom). Example: 7.",
            "default": 7
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "How many past days to include (used when earningsWeek=custom). 0 = from today. Example: 3 for recent reports.",
            "default": 0
          },
          "includeDividends": {
            "title": "Include dividend dates",
            "type": "boolean",
            "description": "Add the company's latest declared dividend to every earnings row: amount per share, declaration, ex-dividend, record and payment dates, read from its SEC 8-K filings of the last 200 days. A date the filing does not state stays null, and dividend_status says why (no_dividend_filing, unparseable, source_error, time_budget). No extra charge.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "date_asc",
              "report_date",
              "mcap_desc",
              "market_cap",
              "eps_estimate_desc",
              "eps_surprise_desc",
              "eps_surprise"
            ],
            "type": "string",
            "description": "Row order. Every option currently orders rows by report date ascending, then symbol: SEC data has no market cap or consensus EPS, so the market-cap and EPS options are kept only so saved inputs stay valid.",
            "default": "date_asc"
          },
          "limit": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Max rows to return per data type.",
            "default": 500
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Leave out keys that are null in every row of the run (rows are pushed together at the end). Unset = compact only for runs started from an AI agent (Apify MCP server or Apify AI); API, Console and scheduled runs keep the full row. Set false to always get the full row, true to always compact."
          },
          "alertOnUpcoming": {
            "title": "Telegram alert",
            "type": "boolean",
            "description": "Send list of upcoming earnings to Telegram after run. Example: true with Telegram credentials.",
            "default": false
          },
          "alertDaysAhead": {
            "title": "Alert: days ahead filter",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Only alert for earnings happening within this many days from today (e.g. 3 = earnings in the next 3 days). 0 = no day filter, alert all results. Example: 3.",
            "default": 3
          },
          "alertTickers": {
            "title": "Alert: ticker watchlist",
            "type": "array",
            "description": "Only send Telegram alerts for these specific tickers (e.g. AAPL, MSFT, NVDA). Empty = alert for all tickers that match the days-ahead filter. Example: [\"AAPL\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "telegramBotToken": {
            "title": "Telegram Bot Token",
            "type": "string",
            "description": "Telegram bot token. Example: a private bot token."
          },
          "telegramChatId": {
            "title": "Telegram Chat ID",
            "type": "string",
            "description": "Telegram chat ID to send alerts to (get it from @userinfobot) Example: \"123456789\" from your Telegram chat.",
            "default": ""
          },
          "enrichWithMarketData": {
            "title": "Market data enrichment (legacy, no effect)",
            "type": "boolean",
            "description": "(legacy) Legacy compatibility switch. SEC only provides SIC industry; current price, sector, and PE fields remain null.",
            "default": false
          },
          "includeEpsSurprise": {
            "title": "Include EPS & revenue surprise % (legacy, no effect)",
            "type": "boolean",
            "description": "(legacy) Legacy compatibility switch. SEC submissions do not include analyst estimates, so surprise fields remain null.",
            "default": true
          },
          "includeSectorBreakdown": {
            "title": "Include sector breakdown summary (legacy, no effect)",
            "type": "boolean",
            "description": "(legacy) Attach a sector_summary array with Unknown sector and null average surprise; SEC does not provide a market sector.",
            "default": false
          },
          "includeGuide": {
            "title": "Next-quarter guidance (legacy, no effect)",
            "type": "boolean",
            "description": "(legacy) Legacy compatibility switch. SEC filings do not provide a normalized analyst guidance feed; guidance fields remain null.",
            "default": false
          },
          "sectors": {
            "title": "Sector filter (legacy, returns no rows)",
            "type": "array",
            "description": "(legacy) Legacy filter. SEC SIC industry does not map to these market sectors, so a nonempty list returns no rows.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minMarketCapUsd": {
            "title": "Min market cap USD (legacy, returns no rows)",
            "minimum": 0,
            "type": "integer",
            "description": "(legacy) Legacy filter. SEC does not provide live market cap; any positive threshold returns no rows.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}