{
  "openapi": "3.0.1",
  "info": {
    "title": "Luma/Cerebral Valley",
    "description": "Scrapes Luma and Cerebral Valley for events by city, date range, and keywords. Returns a normalized dataset: title, URL, start/end time, venue, city, organizer, description, price. Deduplicated and filtered so results match your chosen location and dates.",
    "version": "0.0",
    "x-build-id": "j30a6cmsIGgTeDAQJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/petroshong~Developer-Community-Manager-Event-Search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-petroshong-Developer-Community-Manager-Event-Search",
        "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/petroshong~Developer-Community-Manager-Event-Search/runs": {
      "post": {
        "operationId": "runs-sync-petroshong-Developer-Community-Manager-Event-Search",
        "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/petroshong~Developer-Community-Manager-Event-Search/run-sync": {
      "post": {
        "operationId": "run-sync-petroshong-Developer-Community-Manager-Event-Search",
        "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": {
          "location": {
            "title": "Location",
            "type": "object",
            "description": "Where to search. City filters results to that city (excluding online-only events). Country adds a secondary filter.",
            "properties": {
              "city": {
                "type": "string",
                "title": "City",
                "description": "City name (e.g. San Francisco, New York, London). Used to filter Luma by city page and exclude events from other cities.",
                "editor": "textfield",
                "default": ""
              },
              "region": {
                "type": "string",
                "title": "Region / State",
                "description": "State or region code (e.g. CA). Used as metadata on output events.",
                "editor": "textfield",
                "default": ""
              },
              "country": {
                "type": "string",
                "title": "Country",
                "description": "Country name or code (e.g. USA, UK). Filters out events from other countries.",
                "editor": "textfield",
                "default": ""
              }
            },
            "default": {}
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Annotate events with matched keywords (matched in title, description, tags). Leave empty to skip keyword matching.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "daysFromToday": {
            "title": "Days from today",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Optional. Single day only: the calendar date N days after today. 1 = tomorrow only, 2 = the day after tomorrow only. Ignored if you set both Start date and End date in the run input."
          },
          "weeksFromToday": {
            "title": "Weeks from today",
            "minimum": 1,
            "maximum": 52,
            "type": "integer",
            "description": "Optional. Inclusive. 1 = next 7 days including today. Ignored if Start date / End date are both provided."
          },
          "monthsFromToday": {
            "title": "Months from today",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Optional. Inclusive. 1 = through the day before the same date next month. Ignored if Start date / End date are both provided."
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Start of date range. YYYY-MM-DD, MM/DD/YYYY, or DD.MM.YYYY. Leave empty for today (or use Weeks/Months from today).",
            "default": ""
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "End of date range. Must be on or after start date. Leave empty for start + 14 days (or use Weeks/Months from today).",
            "default": ""
          },
          "sortOutputByDate": {
            "title": "Sort output by date",
            "type": "boolean",
            "description": "When enabled, dataset items are sorted by date then time. When disabled, items are pushed as crawled (resurrection-safe).",
            "default": true
          },
          "sources": {
            "title": "Sources",
            "type": "object",
            "description": "Toggle Luma and Cerebral Valley. Optionally add extra event or list page URLs.",
            "properties": {
              "luma": {
                "type": "boolean",
                "title": "Luma (lu.ma)",
                "description": "Include events from Luma city page.",
                "editor": "checkbox",
                "default": true
              },
              "cerebralValley": {
                "type": "boolean",
                "title": "Cerebral Valley",
                "description": "Include events from cerebralvalley.ai/events (pre-filtered by city).",
                "editor": "checkbox",
                "default": true
              },
              "extraUrls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "title": "Extra URLs",
                "description": "Additional event or list page URLs. Direct event pages (with JSON-LD) are parsed immediately; list pages are crawled for links.",
                "editor": "stringList",
                "default": []
              }
            },
            "default": {
              "luma": true,
              "cerebralValley": true,
              "extraUrls": []
            }
          },
          "maxEventsPerSource": {
            "title": "Max events per source",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Max event pages to fetch per source. Default 25 fits the 4000s timeout comfortably. Use 50 for maximum coverage.",
            "default": 25
          },
          "headless": {
            "title": "Headless browser",
            "type": "boolean",
            "description": "Run browser in headless mode. Uncheck for visual debugging.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy to reduce blocking. Leave empty for direct connections."
          },
          "debug": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Include raw extracted data in output and enable verbose logging.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}