公開 API
以結構化、唯讀的方式存取社群提交的相容性回報,涵蓋在 openOMSI 上執行的地圖、巴士、車輛、模組、物件、外掛程式與工具。專為 openOMSI 開發者、分析工具、機器人與整合應用而設計。
這不是用來回報 openOMSI 錯誤的 API。引擎本身的錯誤請至專案的官方管道回報。這裡只能讀取社群的測試結果。
⚠ 公開 API 速率限制
每個 IP 每 60 分鐘 6 次請求
由於此 API 為公開且無需驗證,因此刻意設定了嚴格的速率限制。
- 請將整合設計為在本機快取回應。
- 請勿持續輪詢 API。
- 請盡可能使用彙總端點:一次呼叫即可回答大多數問題。
此限制由所有公開端點共用,僅適用於外部使用者;網站本身不會使用此配額。
快速開始
基礎 URL:https://openomsi.omsimods.com.br/api/public/v1。所有內容皆為 JSON,僅支援 GET,無需驗證。請先呼叫 meta 端點,了解篩選器接受的確切值。
curl https://openomsi.omsimods.com.br/api/public/v1/meta
curl "https://openomsi.omsimods.com.br/api/public/v1/content?q=millennium&type=VEHICLE"
OpenAPI (JSON)
速率限制、標頭與錯誤
- 每個回應都包含 RateLimit-Limit、RateLimit-Remaining 與 RateLimit-Reset。超過限制後,API 會回應 429 並附上 Retry-After(單位為秒)。
- 條件式請求(If-None-Match / If-Modified-Since)會回傳不含內容的 304,但 304 仍會計入配額。
- 錯誤一律使用相同格式 {"error": code, "message": text};狀態碼為 400、404、429 與 500。絕不會回傳任何堆疊追蹤。
HTTP/1.1 429 Too Many Requests
Retry-After: 1234
RateLimit-Limit: 6
RateLimit-Remaining: 0
RateLimit-Reset: 1234
{
"error": "rate_limit_exceeded",
"message": "Public API limit reached. Try again later.",
"retry_after": 1234
}實用情境
範例數值僅供說明;回應的結構是真實的。
1. Grand Paris Moulon 能在 Windows 上運作嗎?
一次呼叫即可回傳依平台的摘要、問題類別、FPS 分布、已測試版本以及最新回報。請讀取 compatibility.by_platform.WINDOWS。
GET https://openomsi.omsimods.com.br/api/public/v1/content/grand-paris-moulon
回應(節錄)
{
"compatibility": {
"total_reports": 4,
"works": 2,
"works_with_issues": 2,
"does_not_work": 0,
"inconclusive": 0,
"low_data": false,
"by_platform": {
"WINDOWS": {
"reports": 4,
"works": 2,
"works_with_issues": 2,
"does_not_work": 0,
"inconclusive": 0,
"latest_tested_openomsi_version": "0.1.126",
"fps": {
"samples": 3,
"median": 38,
"min": 28,
"max": 60
}
}
}
},
"issues": {
"by_category": {
"TEXTURES": 2,
"SCRIPTS": 1
},
"reports_with_issues": 2
},
"performance": {
"source": "user_reported",
"fps": {
"samples": 3,
"median": 38,
"min": 28,
"max": 60
},
"load_time_seconds": {
"samples": 2,
"median": 95,
"min": 80,
"max": 110
}
},
"latest_tested_openomsi_version": "0.1.126"
}2. 列出在 Android 上測試過的地圖
依類型與平台篩選。每個項目已包含總數、已測試平台以及最近測試的 openOMSI 版本。
GET https://openomsi.omsimods.com.br/api/public/v1/content?type=MAP&platform=ANDROID&sort=reports&limit=20
回應(節錄)
{
"data": [
{
"id": "cm0millennium1",
"slug": "mapa-brigadeiro-sampaio",
"name": "Mapa Brigadeiro Sampaio",
"type": "MAP",
"author": null,
"current_version": null,
"url": "https://openomsi.omsimods.com.br/conteudo/caio-millennium-brt-i-o500u",
"source_url": "https://omsimods.com.br/",
"image_url": null,
"omsimodsbr_verified": true,
"reports": {
"total": 3,
"works": 0,
"works_with_issues": 3,
"does_not_work": 0,
"inconclusive": 0,
"by_platform": {
"WINDOWS": {
"reports": 3,
"works": 0,
"works_with_issues": 3,
"does_not_work": 0,
"inconclusive": 0
}
}
},
"reports_with_issues": 3,
"latest_tested_openomsi_version": "0.1.126",
"latest_test_at": "2026-09-29T15:20:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"pages": 1
}
}3. 身為 openOMSI 開發者,查看目前版本中的貼圖問題
依 openOMSI 版本與問題類別篩選回報。每份回報都列出結構化的 issue_categories 以及測試者的描述。
GET https://openomsi.omsimods.com.br/api/public/v1/reports?openomsi_version=0.1.126&issue_category=TEXTURES&limit=50
回應(節錄)
{
"data": [
{
"id": "cm0report0001",
"content": {
"id": "cm0grandparis01",
"slug": "grand-paris-moulon",
"name": "Grand Paris Moulon",
"type": "MAP"
},
"content_version": null,
"openomsi_version": "0.1.126",
"platform": "WINDOWS",
"architecture": "X64",
"result": "WORKS_WITH_ISSUES",
"fps": {
"avg": 41,
"min": 28,
"max": 60
},
"load_time_seconds": 95,
"device": {
"label": "Desktop GTX 1060",
"model": null,
"os_version": "Windows 11",
"cpu": "Ryzen 5 3600",
"gpu": "GTX 1060 6GB",
"ram_gb": 16
},
"issue_categories": [
"TEXTURES"
],
"issue_description": "Windows of some black buses render with wrong textures.",
"notes": null,
"tested_at": "2026-09-29T17:02:00.000Z",
"screenshot_url": null,
"author": {
"display_name": "tester"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"pages": 1
}
}4. 偵測版本之間可能的迴歸
compare 會並排顯示同一內容在兩個版本中的表現;regressions 會列出先前可正常運作、現在卻出現問題的所有內容。結果僅為可能的迴歸,絕非已確認的迴歸。
GET https://openomsi.omsimods.com.br/api/public/v1/compatibility/compare?content=grand-paris-moulon&from=0.1.121&to=0.1.126
GET https://openomsi.omsimods.com.br/api/public/v1/compatibility/regressions?from=0.1.121&to=0.1.126&type=BUS
回應(節錄)
{
"changes": [
{
"platform": "WINDOWS",
"from": {
"works": 3,
"works_with_issues": 0,
"does_not_work": 0,
"inconclusive": 0
},
"to": {
"works": 1,
"works_with_issues": 3,
"does_not_work": 0,
"inconclusive": 0
},
"from_reports": 3,
"to_reports": 4,
"possible_regression": true
}
],
"possible_regression": true
}5. 為 Discord 機器人提供資料
依名稱搜尋,然後根據第一個項目建立回覆:名稱、平台、結果、最近測試的版本與回報數量。請在您自己這一端進行快取。
GET https://openomsi.omsimods.com.br/api/public/v1/content?q=grand%20paris&platform=WINDOWS&limit=1
回應(節錄)
{
"data": [
{
"name": "Grand Paris Moulon",
"reports": {
"total": 4,
"works": 2,
"works_with_issues": 2
},
"latest_tested_openomsi_version": "0.1.126"
}
]
}建議的機器人回覆
Grand Paris Moulon
Windows
⚠ 可執行但有問題
最近測試: 0.1.126
報告: 4
6. Android 上最常被回報的問題有哪些?
issues 端點會依類別彙總,並提供回報數量與不同內容的數量;platform 端點還會補充被回報最多的裝置與 FPS。
GET https://openomsi.omsimods.com.br/api/public/v1/issues?platform=ANDROID&openomsi_version=0.1.126
GET https://openomsi.omsimods.com.br/api/public/v1/platforms/android
回應(節錄)
{
"data": [
{
"category": "TEXTURES",
"reports": 31,
"contents": 18
},
{
"category": "PHYSICS",
"reports": 22,
"contents": 14
}
]
}7. 目前的發行版本與下載
releases/latest 會回傳版本、發布日期、GitHub URL,以及依平台與架構區分的官方下載資源。
GET https://openomsi.omsimods.com.br/api/public/v1/releases/latest
回應(節錄)
{
"version": "0.1.126",
"published_at": "2026-09-27T20:11:00.000Z",
"github_url": "https://github.com/openOMSI-org/openOMSI/releases/tag/v0.1.126",
"assets": [
{
"key": "android-arm64",
"label": "Android ARM64",
"platform": "ANDROID",
"architecture": "ARM64",
"type": "CLIENT",
"name": "openOMSI-android-arm64.apk",
"download_url": "https://github.com/openOMSI-org/openOMSI/releases/download/v0.1.126/openOMSI-android-arm64.apk",
"size_bytes": 152043520
}
]
}8. 尋找尚無人測試的內容
has_reports=false 會列出沒有回報的已核准內容;可搭配 type 或 q 使用。
GET https://openomsi.omsimods.com.br/api/public/v1/content?has_reports=false&type=MAP&limit=50
回應(節錄)
{
"data": [
{
"name": "…",
"type": "MAP",
"reports": {
"total": 0
}
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 312,
"pages": 7
}
}端點
所有路徑皆以 https://openomsi.omsimods.com.br/api/public/v1 開頭。完整的機器可讀說明請見 OpenAPI 文件。
| 端點 | 回傳內容 |
|---|
GET /meta | 分類架構、限制與 API 版本。 |
GET /status | 運作狀態檢查(同樣受速率限制:請勿輪詢)。 |
GET /content | 內容搜尋,附帶每個項目的回報總數、已測試平台與最近測試的版本。 |
GET /content/{slug} | 一次呼叫取得單一內容:來源、相容性、問題、效能、已測試版本、裝置與最新回報。 |
GET /reports | 個別回報,包含結構化的問題類別、FPS、硬體與日期。 |
GET /compatibility | 依 openOMSI 版本、平台或內容類型彙總。 |
GET /compatibility/compare | 同一內容在兩個 openOMSI 版本之間的比較。 |
GET /compatibility/regressions | 相鄰已測試版本之間可能的迴歸。 |
GET /issues | 依回報數與受影響內容排序的問題類別。 |
GET /platforms/{platform} | 單一平台的彙總資料(android、windows、linux、macos)。 |
GET /devices | 測試者填寫的硬體,經分組並計數。 |
GET /runtime-reports | openOMSI 本身的裝置測試(工作階段可能從未啟動):硬體、作業系統、執行到哪個階段、圖形 API、已清理的錯誤文字,以及選用的已清理記錄檔。不含任何內容。 |
GET /runtime-reports/{id} | 單一裝置測試,若有已清理的記錄檔則一併提供。 |
GET /releases/latest | 目前的發行版本與官方下載資源。 |
GET /releases | 分頁的發行版本歷史。 |
裝置測試絕不會公開原始記錄檔、IP 位址、電子郵件、使用者名稱或帳號識別碼:僅提供技術資料與已清理的記錄檔。這些是社群的觀察結果,並非基準測試或官方需求。
篩選、分頁、排序與欄位
- 分頁:page(從 1 開始)與 limit(預設 20,最大 50)。清單回應 {"data": [...], "pagination": {page, limit, total, pages}}。
- 排序:sort = reports、recent、name、latest_test 或 issues;order = asc 或 desc。
- 選用的 fields=name,slug,type 僅保留每個項目中的這些頂層欄位。預設回應已是完整的。
- 列舉篩選不區分大小寫,並接受以逗號分隔的清單(platform=ANDROID,WINDOWS)。
- 在內容搜尋中使用回報篩選器(platform、result、openomsi_version、issue_category)時,計數針對的是符合條件的回報。
參數
| 參數 | 說明 |
|---|
q | 在內容名稱與別名中進行文字搜尋。 |
type | 內容類型。 允許使用以逗號分隔的清單。 |
platform | 報告的平台。 允許使用以逗號分隔的清單。 |
result | 測試者回報的結果。 允許使用以逗號分隔的清單。 |
openomsi_version | 執行測試所使用的 openOMSI 版本。 |
issue_category | 附加於報告的問題類別(AUDIO 可作為 SOUND 的別名)。 允許使用以逗號分隔的清單。 |
author | 內容作者(部分符合)。 |
has_reports | true:僅已測試的內容;false:僅尚無人測試的內容。 |
sort | 排序欄位。 |
order | 排序方向。 |
page | 頁碼,從 1 開始。 |
limit | 每頁項目數(最多 50)。 |
fields | 要在每個項目中保留的頂層欄位,以逗號分隔(選填;預設為完整項目)。 |
content | 內容 slug 或 id(完全符合),或名稱的一部分。 |
architecture | 報告的 CPU 架構。 允許使用以逗號分隔的清單。 |
device | 裝置名稱中包含的文字。 |
has_fps | 僅包含(true)或不包含(false)FPS 數值的報告。 |
from | reports:在此 ISO 日期當天或之後測試。compare/regressions:較舊的 openOMSI 版本。 |
to | reports:在此 ISO 日期當天或之前測試。compare/regressions:較新的 openOMSI 版本。 |
startup_stage | openOMSI 在該裝置上執行到哪個階段。 允許使用以逗號分隔的清單。 |
graphics_backend | 測試者選擇的圖形 API。 允許使用以逗號分隔的清單。 |
gpu | GPU 名稱中包含的文字。 |
cpu | CPU 名稱中包含的文字。 |
manufacturer | 裝置製造商(部分符合)。 |
device_model | 裝置型號(部分符合)。 |
os_version | 作業系統版本(部分符合)。 |
media_indexing_observed | Android:測試者回報圖庫或媒體掃描器是否正在索引 OMSI 圖片(true)或沒有(false)。 |
has_log | 僅包含有(true)或沒有(false)已清理記錄檔的測試。 |
include_log | 在每個項目中包含 sanitized_log(預設為 false:清單只會顯示 has_sanitized_log)。 |
Enums / 分類架構
由應用程式自身的清單產生。在篩選器中,AUDIO 會被視為 SOUND 的別名。
ContentType
ADDONMAPBUSVEHICLEMODSCENERYOBJECTSPLINEPLUGINTOOLOTHER
CompatibilityResult
WORKSWORKS_WITH_ISSUESDOES_NOT_WORKINCONCLUSIVE
Platform
ANDROIDWINDOWSLINUXMACOS
Architecture
X86X64ARM64UNKNOWN
IssueCategory
GRAPHICSTEXTURESPHYSICSSCRIPTSSOUNDCOLLISIONSPERFORMANCELOADINGCONTROLSMULTIPLAYERINTERFACECRASHOTHER
效能資料
FPS 與載入時間是由使用者回報的資料,並非受控的基準測試。統計優先使用中位數,並且一律包含樣本數(samples),以及最小值與最大值。
快取、CORS 與版本控管
- 回應包含 Cache-Control、ETag 與 Last-Modified。瀏覽器可在數分鐘內重複使用;共用快取必須重新驗證,以確保配額始終受到執行。
- CORS 僅對 GET、HEAD 與 OPTIONS 開放。沒有任何寫入方法。
- API 的版本標示於路徑中(/api/public/v1)。舊的未含版本路徑會重新導向(308)至 v1。重大變更只會以新版本發布。
- openOMSI Compatibility 網站直接讀取自己的資料庫,不會使用此 API 或其配額。
整合指南
- 在本機快取資料。
- 避免輪詢;僅在需要時才發出請求。
- 使用彙總端點(content detail、compatibility、issues、platforms)。
- 遵守 Retry-After 與 RateLimit-* 標頭。
- 當 API 已提供對等資料時,請勿爬取 HTML。
- 請勿根據社群回報推斷已確認的引擎錯誤。
- 在分析中務必保留 openOMSI 版本資訊。
關於資料
社群回報是觀察結果,而非具權威性的相容性認證。單一回報既不代表「此模組相容」,也不代表「這是 openOMSI 的錯誤」。請綜合考量樣本數量、openOMSI 版本、平台、硬體、內容版本、問題類別以及回報之間的一致性。
隱私權
回應絕不包含 Discord ID、電子郵件、IP 位址、工作階段、通知訂閱、審核資料或裝置識別碼。回報僅顯示公開的顯示名稱以及測試者選擇公開的硬體。在回報中,issue_categories 是結構化的,而 issue_description 是測試者針對整份回報填寫的唯一自由文字描述。
https://openomsi.omsimods.com.br/api/openapi.json