You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ Request JSON fields:
40
40
-`checksum` (string, optional) MD5 hash used to validate local cached file; if mismatch triggers re-download.
41
41
-`mods` (array, optional) List of osu! API mod objects (typically at least `{ "acronym": "HD" }`). Unsupported or invalid acronyms will be ignored by the underlying conversion if not recognized.
42
42
-`ruleset_id` (int, optional) Override ruleset; if omitted and beatmap file is provided/decoded it falls back to the beatmap's own ruleset.
43
+
-`ruleset_name` (string, optional) Same as above but by name (e.g., `osu`, `taiko`, `fruits`, `mania`). If both ID and name are provided, Name takes precedence.
43
44
-`beatmap_file` (string, optional) Raw `.osu` file content (entire file). If present, `beatmap_id` may still be supplied for caching, but content is authoritative.
44
45
45
46
Example request using inline file content:
@@ -66,7 +67,8 @@ Request JSON fields:
66
67
-`mods` (array) Same structure as above.
67
68
-`is_legacy` (bool) Whether to treat score as stable scores.
68
69
-`accuracy` (float) Accuracy value (0.0–1.0). Provide either accurate `statistics` or a suitable accuracy.
69
-
-`ruleset_id` (int) Explicit ruleset selection (required here because score construction needs it up-front unless you infer from map; server expects this field).
70
+
-`ruleset_id` (int, optional) Explicit ruleset selection (Either `ruleset_id` or `ruleset_name` must be provided).
71
+
-`ruleset_name` (string, optional) Same as above but by name (e.g., `osu`, `taiko`, `fruits`, `mania`). If both ID and name are provided, Name takes precedence.
70
72
-`combo` (int) Achieved max combo for the score.
71
73
-`statistics` (object) Mapping of hit result enum names to counts. Keys must match `HitResult` enumeration names from osu! (e.g., `great`, `ok`, `meh`, `miss`, `perfect`, `good`, etc. — varies by ruleset). Only relevant ones need to be present.
72
74
@@ -88,10 +90,9 @@ Minimal example:
88
90
}
89
91
```
90
92
91
-
Successful Response: `200 OK` with a JSON `PerformanceAttributes` object with `ruleset_id` including (fields differ by ruleset):
92
-
-`total` (float) Total pp value.
93
+
Successful Response: `200 OK` with a JSON `PerformanceAttributes` object with `ruleset` (name) including (fields differ by ruleset):
0 commit comments