跳至主要內容

公開 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)

速率限制、標頭與錯誤

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-reportsopenOMSI 本身的裝置測試(工作階段可能從未啟動):硬體、作業系統、執行到哪個階段、圖形 API、已清理的錯誤文字,以及選用的已清理記錄檔。不含任何內容。
GET /runtime-reports/{id}單一裝置測試,若有已清理的記錄檔則一併提供。
GET /releases/latest目前的發行版本與官方下載資源。
GET /releases分頁的發行版本歷史。

裝置測試絕不會公開原始記錄檔、IP 位址、電子郵件、使用者名稱或帳號識別碼:僅提供技術資料與已清理的記錄檔。這些是社群的觀察結果,並非基準測試或官方需求。

篩選、分頁、排序與欄位

參數

參數說明
q在內容名稱與別名中進行文字搜尋。
type內容類型。 允許使用以逗號分隔的清單。
platform報告的平台。 允許使用以逗號分隔的清單。
result測試者回報的結果。 允許使用以逗號分隔的清單。
openomsi_version執行測試所使用的 openOMSI 版本。
issue_category附加於報告的問題類別(AUDIO 可作為 SOUND 的別名)。 允許使用以逗號分隔的清單。
author內容作者(部分符合)。
has_reportstrue:僅已測試的內容;false:僅尚無人測試的內容。
sort排序欄位。
order排序方向。
page頁碼,從 1 開始。
limit每頁項目數(最多 50)。
fields要在每個項目中保留的頂層欄位,以逗號分隔(選填;預設為完整項目)。
content內容 slug 或 id(完全符合),或名稱的一部分。
architecture報告的 CPU 架構。 允許使用以逗號分隔的清單。
device裝置名稱中包含的文字。
has_fps僅包含(true)或不包含(false)FPS 數值的報告。
fromreports:在此 ISO 日期當天或之後測試。compare/regressions:較舊的 openOMSI 版本。
toreports:在此 ISO 日期當天或之前測試。compare/regressions:較新的 openOMSI 版本。
startup_stageopenOMSI 在該裝置上執行到哪個階段。 允許使用以逗號分隔的清單。
graphics_backend測試者選擇的圖形 API。 允許使用以逗號分隔的清單。
gpuGPU 名稱中包含的文字。
cpuCPU 名稱中包含的文字。
manufacturer裝置製造商(部分符合)。
device_model裝置型號(部分符合)。
os_version作業系統版本(部分符合)。
media_indexing_observedAndroid:測試者回報圖庫或媒體掃描器是否正在索引 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 與版本控管

整合指南

關於資料

社群回報是觀察結果,而非具權威性的相容性認證。單一回報既不代表「此模組相容」,也不代表「這是 openOMSI 的錯誤」。請綜合考量樣本數量、openOMSI 版本、平台、硬體、內容版本、問題類別以及回報之間的一致性。

隱私權

回應絕不包含 Discord ID、電子郵件、IP 位址、工作階段、通知訂閱、審核資料或裝置識別碼。回報僅顯示公開的顯示名稱以及測試者選擇公開的硬體。在回報中,issue_categories 是結構化的,而 issue_description 是測試者針對整份回報填寫的唯一自由文字描述。

https://openomsi.omsimods.com.br/api/openapi.json

由 Portal OmsiModsBR 維護的獨立社群資料庫。不代表 openOMSI 專案或內容作者的官方認證。

OMSI 與 openOMSI 屬於其各自的作者/權利人。本網站不轉散布受權利保護的內容:連結指向原始來源,結果為使用者提交的個別測試。

公開 API | openOMSI Compatibility