{
  "openapi": "3.0.1",
  "info": {
    "title": "lu.ma Events Scraper",
    "description": "Scrape lu.ma events by URL, calendar, host, city, category, search, or geo. One unified schema covering location, hosts, ticketing, and capacity — pulled directly from lu.ma's public JSON API.",
    "version": "0.1",
    "x-build-id": "curY9jajpjsplduyr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/schnellscrapers~luma-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-schnellscrapers-luma-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/schnellscrapers~luma-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-schnellscrapers-luma-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/schnellscrapers~luma-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-schnellscrapers-luma-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": {
          "startUrls": {
            "title": "lu.ma URLs (any kind)",
            "type": "array",
            "description": "Paste any lu.ma URL — event page (`lu.ma/festival`), calendar/community page (`lu.ma/fdotinc`), city page (`lu.ma/sf`), or host profile (`lu.ma/user/usr-...`). The scraper auto-routes by URL pattern. Use the typed inputs below if you want stricter routing.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "eventUrls": {
            "title": "Event URLs",
            "type": "array",
            "description": "Specific event URLs or slugs to scrape (one record per event). Examples: `https://lu.ma/festival`, `festival`, `evt-pWhbpO3C5CFr3VE`.",
            "items": {
              "type": "string"
            }
          },
          "calendarUrls": {
            "title": "Calendar / community URLs",
            "type": "array",
            "description": "Lu.ma calendar (community) pages — each emits one record per event on that calendar. Examples: `https://lu.ma/fdotinc`, `fdotinc`, `cal-iHkz5obZdong4ta`.",
            "items": {
              "type": "string"
            }
          },
          "hostUrls": {
            "title": "Host / organizer profiles",
            "type": "array",
            "description": "Lu.ma user profiles — each emits one record per event the host is running. Examples: `https://lu.ma/user/usr-6tccATC7C3G6uOf`, `usr-6tccATC7C3G6uOf`, `https://lu.ma/u/<username>`.",
            "items": {
              "type": "string"
            }
          },
          "cityUrls": {
            "title": "Featured city URLs / slugs",
            "type": "array",
            "description": "Lu.ma featured-city pages. Examples: `https://lu.ma/sf`, `sf`, `nyc`, `london`. Resolves to lu.ma's curated feed for that city.",
            "items": {
              "type": "string"
            }
          },
          "categorySlugs": {
            "title": "Discover categories",
            "type": "array",
            "description": "Lu.ma category slugs from the Discover page. Common values: `tech`, `ai`, `crypto`, `food`, `arts`, `climate`, `fitness`, `wellness`.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Free-text search queries",
            "type": "array",
            "description": "Keywords sent to lu.ma's discover search (e.g. `hackathon`, `solana builders`, `pickleball`).",
            "items": {
              "type": "string"
            }
          },
          "geoCoordinates": {
            "title": "Geo coordinates (nearby events)",
            "type": "array",
            "description": "Latitude/longitude pairs — emits the nearest events lu.ma's discover surface returns for each point. Each item is an object: `{\"latitude\": 37.7749, \"longitude\": -122.4194}`."
          },
          "period": {
            "title": "Time window",
            "enum": [
              "future",
              "past"
            ],
            "type": "string",
            "description": "For calendar and host modes: scrape upcoming events (`future`) or past events (`past`). Discover/category/city/query/geo always return upcoming events.",
            "default": "future"
          },
          "includeFullDescription": {
            "title": "Include full description + ticket types",
            "type": "boolean",
            "description": "Off by default to keep runs cheap. When on, the scraper fetches each event's detail page (`/url?url=<slug>`) and populates `description`, `ticketTypes`, and `categories` for records discovered via list endpoints. Roughly doubles the per-event request count.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on emitted dataset records across all inputs. Leave empty for no cap."
          },
          "maxItemsPerSource": {
            "title": "Maximum records per input",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap per input source (e.g. per category, per calendar, per city). Useful when you want a quick sample across many sources."
          },
          "freeOnly": {
            "title": "Free events only",
            "type": "boolean",
            "description": "Drop events that have a paid ticket type.",
            "default": false
          },
          "paidOnly": {
            "title": "Paid events only",
            "type": "boolean",
            "description": "Drop free events.",
            "default": false
          },
          "onlineOnly": {
            "title": "Online / virtual events only",
            "type": "boolean",
            "description": "Keep events whose `locationType` is `online` or `hybrid`.",
            "default": false
          },
          "inPersonOnly": {
            "title": "In-person events only",
            "type": "boolean",
            "description": "Keep events whose `locationType` is `offline` or `hybrid`.",
            "default": false
          },
          "minGuestCount": {
            "title": "Minimum guest count",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop events with fewer than this many RSVPs / registered guests. Use 0 to disable.",
            "default": 0
          },
          "dateFrom": {
            "title": "Date range start (ISO)",
            "type": "string",
            "description": "Drop events that start before this ISO date/time. Example: `2026-06-01` or `2026-06-01T00:00:00Z`."
          },
          "dateTo": {
            "title": "Date range end (ISO)",
            "type": "string",
            "description": "Drop events that start after this ISO date/time."
          },
          "paginationLimit": {
            "title": "Items per API request",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Page size for list endpoints. Higher = fewer requests but larger responses. Defaults to 25.",
            "default": 25
          },
          "proxyMode": {
            "title": "Proxy mode",
            "enum": [
              "none",
              "apify_proxy_datacenter",
              "apify_proxy_residential"
            ],
            "type": "string",
            "description": "lu.ma's public API doesn't block Apify cloud IPs in normal use, so `none` is the default. Switch to a proxy if you see HTTP 429/403 on long runs.",
            "default": "none"
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Skip pushing records to the dataset. Useful for cost-estimation runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}