{"slug": "how-to-get-upcoming-luma-lu-ma-events-for-any-city-or-calendar-with-python-no", "title": "How to Get Upcoming Luma (lu.ma) Events for Any City or Calendar with Python (No API Key)", "summary": "A developer published a Python script that pulls upcoming Luma (lu.ma) events for any city, category or calendar by calling the site's public JSON endpoints at api.lu.ma, requiring no account or API key. The script resolves a slug into a city, category or calendar ID, paginates through discover/get-paginated-events or calendar/get-items using next_cursor, and normalizes prices, UTC timestamps and guest counts. The writeup also flags pitfalls such as zero-decimal currencies like JPY, where dividing cents by 100 misstates a 10,000 yen ticket as 100 yen.", "body_md": "Luma (lu.ma) has become the default place for tech meetups, AI events and startup parties. Its official API needs a paid plan and only covers calendars you manage, but the public event lists that anyone can browse on lu.ma are served as plain JSON. You do not need an account or an API key to read them. This post shows two ways to do it: a short Python script, and a no-code option for when you need many cities, a schedule or a clean export.\n\nThe website reads its event lists from `https://api.lu.ma`. Three endpoints are enough:\n\n`url?url=<slug>` tells you what a lu.ma name is: a city (`discover-place`), a category or a calendar, with its id.` discover/get-paginated-events` lists the upcoming events of a city or a category.`calendar/get-items` lists the events of a calendar, with `period=future` or `period=past`.\n\n``` python\nimport json\nimport urllib.parse\nimport urllib.request\n\nAPI = \"https://api.lu.ma/\"\nZERO_DECIMAL = {\"JPY\", \"KRW\", \"VND\", \"CLP\"}  # currencies without cents\n\ndef get(path, **params):\n    url = API + path + \"?\" + urllib.parse.urlencode(params)\n    req = urllib.request.Request(url, headers={\"User-Agent\": \"Mozilla/5.0\", \"Accept\": \"application/json\"})\n    with urllib.request.urlopen(req) as r:\n        return json.load(r)\n\ndef resolve(slug):\n    \"\"\"'sf', 'ai' or a calendar name -> (kind, api_id).\"\"\"\n    d = get(\"url\", url=slug)\n    kind, data = d[\"kind\"], d[\"data\"]\n    if kind == \"discover-place\":\n        return \"city\", data[\"place\"][\"api_id\"]\n    if kind == \"category\":\n        return \"category\", data[\"category\"][\"api_id\"]\n    if kind == \"calendar\":\n        return \"calendar\", data[\"calendar\"][\"api_id\"]\n    raise ValueError(f\"{slug} is a {kind}, not a city, category or calendar\")\n\ndef price(p):\n    if not p:\n        return None\n    cur = p[\"currency\"].upper()\n    amount = p[\"cents\"] if cur in ZERO_DECIMAL else p[\"cents\"] / 100\n    return f\"{amount:g} {cur}\"\n\ndef upcoming_events(slug, limit=100):\n    kind, api_id = resolve(slug)\n    if kind == \"calendar\":\n        path, params = \"calendar/get-items\", {\"calendar_api_id\": api_id, \"period\": \"future\"}\n    else:\n        key = \"discover_place_api_id\" if kind == \"city\" else \"discover_category_api_id\"\n        path, params = \"discover/get-paginated-events\", {key: api_id}\n    events, cursor = [], None\n    while len(events) < limit:\n        page = get(path, pagination_limit=50, **params, **({\"pagination_cursor\": cursor} if cursor else {}))\n        for entry in page[\"entries\"]:\n            ev, ticket = entry[\"event\"], entry.get(\"ticket_info\") or {}\n            events.append({\n                \"name\": ev[\"name\"],\n                \"start\": ev[\"start_at\"],\n                \"timezone\": ev[\"timezone\"],\n                \"city\": (ev.get(\"geo_address_info\") or {}).get(\"city\"),\n                \"price\": price(ticket.get(\"price\")),\n                \"guests\": entry.get(\"guest_count\"),\n                \"url\": \"https://lu.ma/\" + ev[\"url\"],\n            })\n        cursor = page.get(\"next_cursor\")\n        if not page.get(\"has_more\") or not cursor:\n            break\n    return events[:limit]\n\nfor e in upcoming_events(\"sf\", 20):\n    print(e[\"start\"][:16], e[\"price\"] or \"free\", e[\"guests\"], e[\"name\"][:60])\n```\n\nA few things worth knowing before you build on it:\n\n`next_cursor` back as `pagination_cursor` while `has_more` is true.`cents`), except in currencies that have no cents. A 10,000 yen ticket comes back as `{\"cents\": 10000, \"currency\": \"jpy\"}`, so dividing everything by 100 turns it into 100 yen.` start_at`, `end_at`) are UTC. The event's own time zone is in `timezone`.` geo_address_info.mode` is `shown`). Otherwise you get the city, region and country.` guest_count` tells you how big an event is without collecting anyone's name.\nFor a one-off look at one city, this script is all you need.\n\nOnce you need several cities and categories, a daily schedule, \"only events I have not seen yet\", or a spreadsheet for someone who does not write Python, the plumbing grows: resolving names and links, paging, retries on busy servers, price units, date ranges, and remembering what you already returned.\n\nI packaged all of that as an Apify Actor: **[Luma Events Scraper](https://apify.com/webobsidians/luma-events-scraper)**. You add cities, categories or calendars (names or lu.ma links) and get one clean row per event:\n\n```\n{\n  \"source\": \"sf\",\n  \"sourceType\": \"city\",\n  \"name\": \"Pulitzer Prize-winning artist and illustrator Mona Chalabi on her new book, Ten Lives, and wealth in America\",\n  \"url\": \"https://lu.ma/5wpizor6\",\n  \"startAt\": \"2026-11-30T02:00:00.000Z\",\n  \"timezone\": \"America/Los_Angeles\",\n  \"city\": \"Oakland\",\n  \"address\": \"Local Economy, 6028 College Ave, Oakland, CA 94618, USA\",\n  \"isFree\": false,\n  \"price\": 10,\n  \"currency\": \"USD\",\n  \"isSoldOut\": false,\n  \"spotsRemaining\": 38,\n  \"guestCount\": 0,\n  \"hosts\": [\"Local Economy\"],\n  \"calendarName\": \"Local Economy\"\n}\n```\n\nWhat it adds on top of the script above:\n\nYou can also call it from code with the Apify client:\n\n``` python\nfrom apify_client import ApifyClient\n\nclient = ApifyClient(\"YOUR_APIFY_TOKEN\")\nrun = client.actor(\"webobsidians/luma-events-scraper\").call(\n    run_input={\"sources\": [\"sf\", \"ai\"], \"maxEventsPerSource\": 20}\n)\nfor item in client.dataset(run[\"defaultDatasetId\"]).iterate_items():\n    print(item[\"startAt\"], item[\"city\"], item[\"name\"])\n```\n\nIt costs $1.00 per 1,000 events plus $0.00005 per run start, and Apify's free plan includes monthly credit, so small jobs cost nothing to try.\n\nEither way, you are reading event lists that Luma shows to anyone, so keep request rates reasonable and leave personal data alone.", "url": "https://wpnews.pro/news/how-to-get-upcoming-luma-lu-ma-events-for-any-city-or-calendar-with-python-no", "canonical_source": "https://dev.to/webobsidians/how-to-get-upcoming-luma-luma-events-for-any-city-or-calendar-with-python-no-api-key-16f1", "published_at": "2026-11-20 09:07:15+00:00", "updated_at": "2026-11-20 09:12:39.125652+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["Luma", "lu.ma", "Python"], "also_reported_by": [], "takeaway": "Luma's public api.lu.ma JSON endpoints (url, discover/get-paginated-events, calendar/get-items) return city, category and calendar events without an API key, but prices must not be divided by 100 for zero-decimal currencies like JPY, KRW, VND and CLP.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-to-get-upcoming-luma-lu-ma-events-for-any-city-or-calendar-with-python-no", "markdown": "https://wpnews.pro/news/how-to-get-upcoming-luma-lu-ma-events-for-any-city-or-calendar-with-python-no.md", "text": "https://wpnews.pro/news/how-to-get-upcoming-luma-lu-ma-events-for-any-city-or-calendar-with-python-no.txt", "jsonld": "https://wpnews.pro/news/how-to-get-upcoming-luma-lu-ma-events-for-any-city-or-calendar-with-python-no.jsonld"}}