公共 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、经过清理的错误文本以及可选的 sanitized_log。不涉及任何内容。 |
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:测试者报告图库或媒体扫描器正在(true)或没有(false)为 OMSI 图片建立索引。 |
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