{
  "openapi": "3.0.1",
  "info": {
    "title": "Economic Calendar & Earnings Calendar API (TradingView)",
    "description": "Economic calendar with actual, forecast and previous values, importance, unit, source and comment for 55+ countries, plus earnings (EPS and revenue estimates vs actuals), dividend and IPO calendars. Only-changes mode for daily runs. No login.",
    "version": "0.1",
    "x-build-id": "PsAlLrayWbTCN6Y6K"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/oswaldocarabano~economic-earnings-calendar-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-oswaldocarabano-economic-earnings-calendar-api",
        "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/oswaldocarabano~economic-earnings-calendar-api/runs": {
      "post": {
        "operationId": "runs-sync-oswaldocarabano-economic-earnings-calendar-api",
        "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/oswaldocarabano~economic-earnings-calendar-api/run-sync": {
      "post": {
        "operationId": "run-sync-oswaldocarabano-economic-earnings-calendar-api",
        "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": {
          "outputType": {
            "title": "Output type",
            "enum": [
              "economic-events",
              "earnings",
              "dividends",
              "ipos"
            ],
            "type": "string",
            "description": "One row type per run. <b>Economic events</b>: macro calendar (CPI, GDP, payrolls, PMI, rate decisions…) with actual, forecast and previous values, importance, unit, source and comment. <b>Earnings</b>: company earnings dates with EPS and revenue estimates, and actuals and surprises once reported. <b>Dividends</b>: ex-dividend dates with amount, payment date and yield. <b>IPOs</b>: offer date, price, price range, deal size and return since the IPO.",
            "default": "economic-events"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "How many days before today (UTC) to include. 0 = start today. Leave empty for the default: 1 day (30 days for IPOs)."
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "How many days after today (UTC) to include. Leave empty for the default: 7 days (30 days for IPOs). The whole range can span up to 366 days."
          },
          "startDate": {
            "title": "Start date (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Fixed start date like 2026-11-01 (UTC). Overrides Days back; without an End date the range runs Days ahead (default 7) days from this date. The economic calendar has history from 2015."
          },
          "endDate": {
            "title": "End date (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Fixed end date like 2026-11-30 (UTC, inclusive). Overrides Days ahead."
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many rows (up to 20,000; delivery runs at about 13 rows per second). You pay only for delivered rows; error rows are free. When there are more company events than this, the largest companies are kept.",
            "default": 300
          },
          "onlyChanges": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "For scheduled runs: deliver (and charge) only events that are new or whose values changed since the previous run with the same filters, with the changed fields and their previous values. The first run delivers everything as new.",
            "default": false
          },
          "changesKey": {
            "title": "Snapshot name (optional)",
            "type": "string",
            "description": "Keeps separate snapshots for different schedules that use the same filters. Letters, digits and dashes."
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Economic events only. 2-letter codes like US, EU (euro area), GB, JP, CN, DE, CA, AU, IN, BR, MX. Empty = all countries (55+).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minImportance": {
            "title": "Minimum importance",
            "enum": [
              "all",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Economic events only. high = market-moving releases only (CPI, payrolls, rate decisions); medium = medium and high; all = everything.",
            "default": "all"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Economic events only. Any of: business, money, prices, government, consumer, gdp, trade, labour, energy, housing, bonds. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Economic events only. Keep events whose title or indicator contains any of these words, e.g. CPI, Payrolls, PMI, Interest Rate.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Company calendars only. america (US), canada, mexico, brazil, argentina, chile, colombia, peru, uk, germany, france, spain, italy, switzerland, netherlands, sweden, poland, turkey, israel, egypt, rsa, japan, india, korea, hongkong, taiwan, australia, indonesia, singapore, thailand, malaysia, vietnam, philippines, or global (all). Default: america (global for IPOs).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Company calendars only. Tickers like AAPL or NASDAQ:AAPL. Empty = every company in the markets. If you list symbols with Output type = Economic events, the run returns their earnings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minMarketCap": {
            "title": "Minimum market cap",
            "minimum": 0,
            "type": "integer",
            "description": "Company calendars only. In the company's reporting currency (USD for US companies and for the global market), e.g. 10000000000 for 10 billion."
          },
          "primaryListingsOnly": {
            "title": "Primary listings only",
            "type": "boolean",
            "description": "Company calendars only. Skip secondary listings (OTC copies, depositary receipts on other exchanges) so each company appears once. Ignored when you list symbols.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}