跳到主要內容
OpenMO盛事

開放數據

全部資料都可以免費取用:JSON 介面和日曆訂閱,不用申請金鑰。歡迎在網站、App 或報道裡引用,請註明「資料來源:OpenMO 盛事」並附連結。

JSON 介面

URL主要欄位
/api/v1/events.jsonid, title{4}, category, status, start, end, window, permanent, impact, venueIds, summary{4}, image, url
/api/v1/events/{id}.json… + sessions, milestones, ticket, traffic, sources, maps
/api/v1/days.jsondate, level(0–3), score, reasons[{kind, label{4}, points, eventId}], inboundPeak, outboundPeak, eventIds
/api/v1/holidays.jsonregion(MO|CN|HK), date, name{4}, kind, golden, status
/api/v1/hotspots.jsonid, name{4}, kind, area, lat, lng, peaks{4}, tips{4}, maps
/api/v1/venues.jsonid, name{4}, operatorId, capacity, area, lat, lng, hotspotIds, maps
/api/v1/operators.jsonid, name{4}

回應帶 schemaVersion;欄位只加不改,改了會升版本號。跨網域請求已開放(CORS)。

日曆訂閱(.ics)

嵌入卡

把下面這段放進你的網頁,就會顯示接下來的澳門盛事,每次更新自動同步。

<iframe src="https://event.openmo.org/embed/zh-Hant/upcoming" title="近期澳門盛事" width="100%" height="420" style="border:0;border-radius:16px" loading="lazy"></iframe>