{
  "openapi": "3.0.1",
  "info": {
    "title": "Holiday Marketing Calendar - AI Campaign Ideas by Country",
    "description": "Holiday marketing calendar by country: country codes in, holidays and retail moments out with importance, campaign start date and AI campaign ideas, email subject and greeting. 📅",
    "version": "1.0",
    "x-build-id": "MBKzKPg7fNg14rWwX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~holiday-marketing-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-holiday-marketing-calendar",
        "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/helenisapi~holiday-marketing-calendar/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-holiday-marketing-calendar",
        "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/helenisapi~holiday-marketing-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-holiday-marketing-calendar",
        "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": [
          "countries"
        ],
        "properties": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter ISO 3166-1 country codes, one per item, e.g. [\"US\", \"FR\", \"SA\"]. Any of the 250 countries with an official holiday calendar. Required. Case does not matter and duplicates are read once. Each country returns one row per event: public holiday, retail moment (Black Friday, Singles' Day, Mother's Day by local rule), religious or cultural date, or season (back to school).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Period",
            "enum": [
              "upcoming",
              "year"
            ],
            "type": "string",
            "description": "Which period to list. \"upcoming\" (default): the next events from today, or from `startDate`, over the next `days` days. \"year\": every event of the year set in `year`.",
            "default": "upcoming"
          },
          "days": {
            "title": "Days ahead (upcoming mode)",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "How many days ahead to look in upcoming mode, 1-366 (default 60), e.g. 90 for the next quarter. Ignored when `mode` is \"year\".",
            "default": 60
          },
          "startDate": {
            "title": "Start date (upcoming mode)",
            "type": "string",
            "description": "First day to look from in upcoming mode, as YYYY-MM-DD, e.g. \"2027-01-01\". Leave empty to start today. Ignored when `mode` is \"year\"."
          },
          "year": {
            "title": "Year (year mode)",
            "minimum": 2015,
            "maximum": 2035,
            "type": "integer",
            "description": "The year to list when `mode` is \"year\", 2015-2035 (default 2027), e.g. 2026. Ignored in upcoming mode.",
            "default": 2027
          },
          "minImportance": {
            "title": "Minimum importance",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Lowest commercial importance to keep. \"high\" (default): only the big retail moments (Black Friday, Christmas, Mother's Day, Ramadan...). \"medium\": medium and high events. \"low\": everything, every holiday and observance included.",
            "default": "high"
          },
          "types": {
            "title": "Event types",
            "type": "array",
            "description": "Keep only these event types; leave empty for all. shopping: sales days (Black Friday, 11.11). gifting: gift days (Mother's Day, Valentine's Day). religious and cultural: religious and cultural dates. seasonal: seasons such as back to school or Golden Week. public_holiday: official days off. observance: observed days that are not days off.",
            "items": {
              "type": "string",
              "enum": [
                "shopping",
                "gifting",
                "religious",
                "cultural",
                "seasonal",
                "public_holiday",
                "observance"
              ],
              "enumTitles": [
                "Shopping days",
                "Gifting days",
                "Religious",
                "Cultural",
                "Seasons (back to school, Golden Week)",
                "Public holidays",
                "Observances"
              ]
            }
          },
          "maxEventsPerCountry": {
            "title": "Max events per country",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "At most this many events per country, in date order, 1-200 (default 20), e.g. 50 for a full year. In upcoming mode a country returns at most 40 events whatever this value.",
            "default": 20
          },
          "aiIdeas": {
            "title": "Add AI campaign ideas",
            "type": "boolean",
            "description": "true (default): each event also gets its local name, meaning, commercial impact, promotion fit, 3 campaign ideas, an email subject and a greeting in the local language with their translation, and the audience; charged as an extra ai-guidance event. false: dates, importance and campaign start only, cheaper.",
            "default": true
          },
          "language": {
            "title": "Language of the ideas",
            "type": "string",
            "description": "Language of the AI text (meaning, impact, ideas, audience) as a language code, e.g. \"en\", \"fr\", \"de\", \"es\", \"ja\" or \"ar\"; 49 languages. Leave empty for English. Used only when `aiIdeas` is true."
          },
          "localLanguage": {
            "title": "Language of subjects and greetings",
            "type": "string",
            "description": "Language of the email subject, greeting and local name as a language code, e.g. \"es\". Leave empty to use each country's own language (French for FR, Arabic for SA), translated into `language` in the translation columns. Used only when `aiIdeas` is 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}