{
  "openapi": "3.0.1",
  "info": {
    "title": "Culture.ru Events Scraper: Russia Afisha",
    "description": "Events from culture.ru (Культура.РФ), Russia's national cultural afisha, for any city or region: every session, venue address, coordinates and contacts, prices, age rating, Pushkin Card flag and full description. Russian proxy included. $1.50 per 1,000 events.",
    "version": "0.2",
    "x-build-id": "DPqNh8a17M6luA9XK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidyharvest~culture-ru-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidyharvest-culture-ru-events-scraper",
        "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/tidyharvest~culture-ru-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tidyharvest-culture-ru-events-scraper",
        "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/tidyharvest~culture-ru-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tidyharvest-culture-ru-events-scraper",
        "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": {
          "locations": {
            "title": "Cities or regions",
            "type": "array",
            "description": "One per line: a city or region in Russian or English (Москва, Saint Petersburg, Казань, Московская область, Tatarstan), a culture.ru locale id, or an afisha URL like https://www.culture.ru/afisha/moskva. A region includes all its towns. 'City, Region' picks between same-named towns. Empty = all of Russia (~130,000 events).",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Only events with a session on or after this day (the city's local time). Empty = from today."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Only events with a session on or before this day. Exhibitions open during the range are included."
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "culture.ru's own categories. Empty = all. Each genre is its own query and gets a fair share of Max events.",
            "items": {
              "type": "string",
              "enum": [
                "vstrechi",
                "obuchenie",
                "spektakli",
                "vistavki",
                "ekskursii",
                "kontserti",
                "prazdniki",
                "kino",
                "prochie"
              ],
              "enumTitles": [
                "Meetings & lectures (Встречи)",
                "Classes & workshops (Обучение)",
                "Theatre (Спектакли)",
                "Exhibitions (Выставки)",
                "Excursions & tours (Экскурсии)",
                "Concerts (Концерты)",
                "Festivals & holidays (Праздники)",
                "Cinema (Кино)",
                "Other (Прочие)"
              ]
            }
          },
          "tags": {
            "title": "Tags (Russian, exact)",
            "type": "array",
            "description": "culture.ru topic tags, e.g. Для детей (for children), Органная музыка, Для молодежи, Новый год. Matched exactly; an unknown tag fails with close suggestions.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Words to find in event titles (Russian), e.g. орган, Чайковский, Щелкунчик."
          },
          "pushkinCardOnly": {
            "title": "Pushkin Card events only",
            "type": "boolean",
            "description": "Only events payable with the Пушкинская карта (state culture card for ages 14-22).",
            "default": false
          },
          "freeOnly": {
            "title": "Free events only",
            "type": "boolean",
            "description": "Only events whose listed price is 0.",
            "default": false
          },
          "maxAgeRestriction": {
            "title": "Max age rating",
            "minimum": 0,
            "maximum": 18,
            "type": "integer",
            "description": "Keep events rated at or below this age (0, 6, 12, 16, 18). E.g. 6 for small children."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "soonest",
              "newest",
              "startDate"
            ],
            "type": "string",
            "description": "Soonest reads the whole listing of each query (up to 10,000 events) and orders by next session; bigger queries fall back to newest first.",
            "default": "soonest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Description, every session, venue coordinates and contacts, organizer, gallery. Off = listing card only (title, next date, venue name and address, price, age): faster, same price.",
            "default": true
          },
          "maxSessionsPerEvent": {
            "title": "Max sessions per event",
            "minimum": 0,
            "type": "integer",
            "description": "Timed-entry museums list thousands of slots. Sessions past this are cut (sessionsCount keeps the real number). 0 = all.",
            "default": 300
          },
          "includeAllSessions": {
            "title": "Include past and out-of-range sessions",
            "type": "boolean",
            "description": "By default sessions start today (or at From date) and stop at To date.",
            "default": false
          },
          "includeAllVenues": {
            "title": "Venues in other cities too",
            "type": "boolean",
            "description": "Touring shows and film releases list venues all over Russia. By default only venues in your locations are kept.",
            "default": false
          },
          "maxItems": {
            "title": "Max events",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on events for the whole run (also caps cost). 0 = no limit.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "culture.ru answers only Russian IP addresses. Default: Apify residential proxy in Russia (included in the price).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "RU"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}