{
  "openapi": "3.0.1",
  "info": {
    "title": "Event Scraper Pro",
    "description": "Aggregate upcoming events from Meetup, Lu.ma and Eventbrite into one deduplicated dataset: title, date, venue, address, coordinates, category, image and links. Meetup and Lu.ma rows add RSVP counts and organizer details. Every run reports exactly which searches completed.",
    "version": "2.0",
    "x-build-id": "LFz351t1gkwxdiJPb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/webdatalabs~event-scraper-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-webdatalabs-event-scraper-pro",
        "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/webdatalabs~event-scraper-pro/runs": {
      "post": {
        "operationId": "runs-sync-webdatalabs-event-scraper-pro",
        "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/webdatalabs~event-scraper-pro/run-sync": {
      "post": {
        "operationId": "run-sync-webdatalabs-event-scraper-pro",
        "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": [
          "keywords",
          "cities"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "minItems": 1,
            "type": "array",
            "description": "Topics to search for (e.g. tech, AI, startup, design). Eventbrite and Meetup run one search per keyword AND per city, so 11 keywords x 3 cities = 33 searches. If a run stops before finishing them all, it names the exact keyword/city pairs it skipped in the run status and the OUTPUT record — keep the list short if you need every keyword covered.",
            "items": {
              "type": "string"
            },
            "default": [
              "tech",
              "startup"
            ]
          },
          "cities": {
            "title": "Cities",
            "minItems": 1,
            "type": "array",
            "description": "Cities to search (e.g. Berlin, Munich, London). Every keyword is searched in every city, so cities multiply the work. Searches are interleaved across cities, so a run that stops early still reaches every city rather than exhausting the first one.",
            "items": {
              "type": "string"
            },
            "default": [
              "Berlin"
            ]
          },
          "country": {
            "title": "Country",
            "enum": [
              "DE",
              "US",
              "GB",
              "FR",
              "NL",
              "AT",
              "CH",
              "ES",
              "IT",
              "PL",
              "CA",
              "AU",
              "IE",
              "SE"
            ],
            "type": "string",
            "description": "Country the cities are in (used to build the correct platform URLs).",
            "default": "DE"
          },
          "platforms": {
            "title": "Platforms",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Which sources to scrape. Meetup & Lu.ma are fast HTTP and include RSVP/guest counts. Eventbrite runs a browser over a residential proxy (auto-enabled), so it is slower and capped at a 180-second budget — with many keywords x cities it will not finish every search, and the run states in its status message and OUTPUT record exactly which combinations were skipped.",
            "items": {
              "type": "string",
              "enum": [
                "meetup",
                "luma",
                "eventbrite"
              ],
              "enumTitles": [
                "Meetup (RSVP counts + organizer)",
                "Lu.ma (guest counts, city-centric)",
                "Eventbrite (browser + residential; no RSVP/price, organizer link only)"
              ]
            },
            "default": [
              "meetup",
              "luma",
              "eventbrite"
            ]
          },
          "dateFrom": {
            "title": "Date From",
            "type": "string",
            "description": "Earliest event start date (YYYY-MM-DD). Leave empty for today."
          },
          "dateTo": {
            "title": "Date To",
            "type": "string",
            "description": "Latest event start date (YYYY-MM-DD). Leave empty for +1 month."
          },
          "includeOnline": {
            "title": "Include online events",
            "type": "boolean",
            "description": "Include virtual/online events. Uncheck for in-person only.",
            "default": true
          },
          "minAttendees": {
            "title": "Minimum attendees",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep events with at least this many RSVPs/guests (0 = no filter). Applies to Meetup & Lu.ma only; Eventbrite has no public count and is always kept.",
            "default": 0
          },
          "includeFree": {
            "title": "Include free events",
            "type": "boolean",
            "description": "Include free/no-cost events.",
            "default": true
          },
          "includePaid": {
            "title": "Include paid events",
            "type": "boolean",
            "description": "Include paid/ticketed events.",
            "default": true
          },
          "maxItemsPerPlatform": {
            "title": "Max results per platform",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on events per platform — the run stops the moment it is reached and you are never billed past it. Note this cap usually ends the run before all keyword/city searches happen: each Eventbrite search returns about 20 events, so a cap of 50 is met after roughly 3 searches. Raise the cap for broader keyword/city coverage. Eventbrite also has a 180-second budget that limits it to roughly 100-250 events per run no matter how high you set this; the run reports exactly how many searches completed.",
            "default": 50
          },
          "onlyNewEvents": {
            "title": "Only new events (incremental)",
            "type": "boolean",
            "description": "For scheduled/monitor runs: skip events already returned by previous runs of this exact query. Off by default so a normal run always returns the full result set.",
            "default": false
          },
          "generateICS": {
            "title": "Generate calendar (.ics) file",
            "type": "boolean",
            "description": "Save an .ics calendar of the results to the Key-Value Store (importable into Google/Outlook/Apple Calendar).",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST the results to this URL on completion (n8n/Zapier/Make). Leave empty to skip."
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "Optional headers for the webhook (e.g. an Authorization token)."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for Meetup & Lu.ma. Automatic (datacenter) is enough for these two. Eventbrite automatically uses a residential proxy for reliable access. Switch this to RESIDENTIAL only if Meetup/Lu.ma start blocking.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}