The map index behind the Browse page, the online boards, the player pages and the marathons have a public, read-only JSON API. It needs no account. This page groups the endpoints by use and gives the parameters that matter. The exhaustive list, with every field of every answer, is the reference at /api/docs; the conventions (errors, caching, rate limits) are on the online API page.
All examples use https://prism.am. A chart in the examples is written <hash>: a note hash, described next.
Chart identity: the note hash
A chart is identified by its note hash: 64 lowercase hexadecimal characters, a BLAKE3 digest of the key count and of the taps and holds (start time, column, kind, end time of a long note) in whole milliseconds, with the first note's time subtracted. The same notes give the same hash whether they come from an .osu, .sm, .ssc or .qua file and whatever the file is called. Mines, bursts and timing points do not count, and neither do the audio and the metadata. The hash version is returned as noteHashVersion.
The index holds osu!mania and Etterna charts of 4 to 9 keys. A key count outside that range matches nothing.
The note hash is not the chart_hash stored in a replay: that one is stricter and exists to check a replay against a chart. The two are explained in .rox files and hashes. Every endpoint below takes the note hash. A malformed hash answers 400.
Find a chart
Where to download it
curl https://prism.am/api/charts/<hash>
GET /api/charts/{hash} says what is known about a chart and where it can be downloaded at its origin. A well-formed hash the index does not know answers 200 with "status": "unknown", so that a client can ask without error handling.
{
"chartHash": "9f2c…64 hex…",
"status": "known",
"sources": [
{ "kind": "osuSet", "ref": "4001", "confidence": "verified", "checkedAtMs": 1791600000000 }
],
"ttlMs": 300000,
"chart": {
"hash": "9f2c…", "noteHashVersion": 1, "keys": 7,
"bpmMin": 120.0, "bpmMax": 180.0, "bpmMain": 180.0,
"lengthMs": 144000, "notes": 1200, "lns": 40,
"densityAvg": 8.3, "densityPeak": 14.0, "roxBytes": 5120,
"title": "Song", "artist": "Artist", "creator": "Mapper", "difficulty": "7K Hard"
}
}
The chart object is abbreviated here: it also carries uuid, setUuid and the ratings when they are known. kind is an open set (osuSet, etternaPack, …): ignore kinds you do not know. ref is an identifier, never a URL: an osu! set id or an EtternaOnline pack id. The page of the source is https://osu.ppy.sh/beatmapsets/<ref> or https://etternaonline.com/packs/<ref>. The answer carries an ETag and Cache-Control: public, max-age=300.
The chart file and its notes
| Endpoint | Answer |
|---|---|
GET /api/charts/{hash}/rox |
The chart in the compact ROX format, as an attachment (application/octet-stream). 404 if the chart is unknown or was removed. Never audio, never images. |
GET /api/charts/{hash}/notes |
The notes at 1.0×, as JSON, for a preview playfield: keys, lengthMs and notes. Mines and rolls are left out, as the game drops them. The browser scales the times to another rate itself. |
Both are content-addressed: ETag is the hash and Cache-Control is immutable.
Ratings and pp
curl "https://prism.am/api/charts/<hash>/ratings?rate=1.2&calc=minacalc"
curl "https://prism.am/api/charts/<hash>/pp?rate=1.0"
curl https://prism.am/api/ratings
| Endpoint | Parameters | Answer |
|---|---|---|
GET /api/charts/{hash}/ratings |
rate: 0.70 to 2.00 in steps of 0.05 (1.0 by default). calc: minacalc, osu, quaver or sunny (all by default) |
The ratings of the chart at that rate: each calculator with its version, its overall and its skillsets. A rate other than 1.0 is computed on the first request. |
GET /api/charts/{hash}/pp |
rate, as above |
The Prism pp of the chart for every accuracy from 80.0 % to 100.0 % in steps of 0.1 (201 points), with msd, stars and the length factor. |
GET /api/ratings |
none | The calculators the site computes, their versions and the rates that may be asked for. |
An unknown chart answers 404 (for pp, also a chart MinaCalc cannot rate). When the calculation queue is full the answer is 503 with Retry-After.
Boards
The online board of a chart lists each player once, with their best play. The game server verified every play and replayed it on its own copy of the chart before it wrote it to the site's database, and every play is read under the Prism judgement: accuracy, combo and misses are the Prism ones, never the player's claim. The judgement a player chose is only the record of what they played with; there is no judgement dimension on the boards.
The order is: best rating first (the MinaCalc 527 rating the server computed; a play without one last), then Prism accuracy, then the highest combo, then the play recorded first. The plays of a banned account or of an account scheduled for deletion are not listed.
A page of the board
curl "https://prism.am/api/charts/<hash>/scores?limit=20&rate=1.0"
curl "https://prism.am/api/charts/<hash>/scores?country=FR"
| Query parameter | Meaning |
|---|---|
rate |
Absent or all: THE board of the chart, each player once with their best play whatever its speed. An exact playback rate from 0.5 to 2.0: the same ranking over the plays of that speed, each player once too (total counts players). |
limit, offset |
limit is 1 to 100 (default 50), offset at most 10000. |
country |
Only the players of this country: an ISO 3166-1 alpha-2 code in upper case (FR). rank and total count among them. A lowercase or unknown code is a 400. |
friends |
1: the board of the accounts the caller follows plus the caller. Needs Authorization: Bearer (401 invalid_token without) and the answer is Cache-Control: private, no-store. Not with country (400 conflicting_scope). |
There is no judgement parameter: an unknown parameter (an old client's judgement=) is ignored, not an error.
{
"chartHash": "9f2c…64 hex…", "rate": 1.0,
"total": 132, "offset": 0, "limit": 50,
"items": [
{ "id": 4821, "hasReplay": true, "rank": 1, "username": "Ada", "userId": "0190…uuid…", "accuracy": 99.12, "maxCombo": 842, "misses": 1,
"counts": [610, 120, 60, 30, 12, 6, 3, 1], "rating": 24.5, "playedAtMs": 1791600000000, "playbackRate": 1.0 }
]
}
An entry has more fields than shown (pp, skillsets, country, avatar, title, clan, unstableRate, pause counts…): see the reference. A chart nobody played is total: 0 with no items, never an error. rank counts over the whole board, not the page. playedAtMs is the date the player's game claims. userId is the account's UUID: the game compares it to its own account to spot "my score". counts (the eight Prism tiers, the Miss last) and rating are absent from a play stored before the server kept them.
Rates, one player, one play
| Endpoint | Answer |
|---|---|
GET /api/charts/{hash}/boards |
The rates a chart has, for a rate picker: one { "rate", "plays" } per playback rate with at least one visible play, by rate ascending (at most 200). A chart nobody played is an empty list. |
GET /api/charts/{hash}/scores/players/{user_id} |
One player's entry on THE board: their best play and its rank over the whole board. 404 if they have none. |
GET /api/charts/{hash}/attempts |
Where players miss and where they leave the chart, counted on the bins of the chart's profile (the same span and bins as its density curve). |
GET /api/scores/{id} |
One play, with the board's figures, its position when it is the player's best, every judgement the server stored and the chartset that holds its chart. |
GET /api/scores/{id}/replay |
The replay of the play, a .pvreplay file (application/octet-stream, immutable), to watch and rejudge in the game. 404 when the play has no replay or its account is not active. |
The id of a play is the id of a board entry; only an entry with "hasReplay": true has a replay.
Chartsets (Browse)
A chartset is one song folder: an osu! set or an Etterna pack song. GET /api/chartsets lists them with filters; most are the filters of the Browse page.
curl "https://prism.am/api/chartsets?keys=4,7&ratingMin=18&sort=rating&perPage=24"
curl "https://prism.am/api/chartsets?q=%22blue%20zenith%22&bpmMin=170"
Text and source
| Parameter | Meaning |
|---|---|
q |
Free words, 200 characters at most, ranked by relevance. A set matches when it holds most of the words in its title, artist, creator, difficulty names, pack or tags (case, accents and punctuation aside). Words in quotes are one phrase. qMatch=all asks for every word, spelled as typed. |
title, artist, creator, difficulty, pack |
Part of the name. Add titleMatch, artistMatch, creatorMatch, difficultyMatch or packMatch with exact for an exact, case-insensitive match (contains is the default). |
tags |
One or several tags, comma-separated: the set must hold all of them (8 tags and 200 characters at most). tagsMatch=exact asks for whole tags. |
source, packId |
osuSet or etternaPack; the EtternaOnline id of a pack. |
updatedFrom, updatedTo |
YYYY-MM-DD (UTC): the set was last updated at its origin in that range. Only osu! sets have that date. |
Numbers
Every pair xMin / xMax is an inclusive range, and a chart of the set must match all of them.
| Parameter | Meaning |
|---|---|
keys |
Comma-separated key counts, e.g. 4,7. |
bpmMin, bpmMax, lengthMin, lengthMax |
BPM and length in seconds (overlap with the set's charts). |
densityMin, densityMax, npsMin, npsMax |
Peak and average notes per second. |
notesMin, notesMax, lnMin, lnMax |
Notes (a long note counts once) and percentage of long notes (0 to 100). |
ratingCalc, ratingMin, ratingMax, rated |
Difficulty range by calculator: minacalc (default), osu, quaver or sunny. rated=yes keeps the charts that calculator rated, no the others. |
rate |
The rate of the rating criteria: 0.70 to 2.00 in steps of 0.05, 1.0 by default. Every chart is rated at 1.0 only; another rate matches the charts a visitor already asked for. |
pattern, streamMin, streamMax, jumpstreamMin, … technicalMax |
The dominant MinaCalc skillsets of a chart (stream, jumpstream, handstream, stamina, jackspeed, chordjack, technical) and a range for each. |
Order and pages
| Parameter | Meaning |
|---|---|
sort |
relevance (the default when q has words), updated (the default otherwise), title, artist, bpm, length, density, rating, date, or a skillset name. rating reads the 1.0× aggregates: with another rate it is a 400. |
dir |
asc or desc; the natural direction of the sort when absent. |
page, perPage |
page from 1, perPage 1 to 60 (24 by default). |
The answer is { "items": [...], "total": n, "page": p, "perPage": n }. total is exact when nothing restricts the list and exact up to 10 000 otherwise; past that it is 10000 and totalCapped is true. The order is total (every sort ends on the set's id), so a page never repeats or skips a set. An item carries id, uuid, title, artist, creator, sourceKind, sourceRef, keys, bpmMin, bpmMax, lengthMinMs, lengthMaxMs, densityMax, chartCount, coverUrl, difficulties and downloadUrl (/go/chartset/<id>, absent for a set with no public source).
One chartset, suggestions, redirect
| Endpoint | Answer |
|---|---|
GET /api/chartsets/{id} |
One chartset (its uuid or its numeric id): the fields above plus tags, sources and charts, each holding its chart object (with its note hash), its difficulty name in this set and, for osu!, its osuBeatmapId. |
GET /api/chartsets/suggest |
The values a text filter can take, with the number of sets that hold each. field is tag, creator, artist or pack (required); q is what was typed (50 characters at most); limit is 1 to 20 (10 by default). Answer: { "field", "items": [{ "value", "count" }] }. |
GET /go/chartset/{id} |
A 302 redirect to the page of the original source, where the map is downloaded. 404 for a set without a public source. |
GET /api/crawl/status |
Public progress counters of the index crawl: charts, chartsets, sources, and what the crawler reports about itself. |
The index hosts none of the audio, images or archives of the maps. It only points to the original source, and creators are credited wherever a chart is shown. To have an entry removed, use the Contact page.
Players and rankings
curl https://prism.am/api/players/Ada
curl "https://prism.am/api/players/search?q=ad"
curl "https://prism.am/api/rankings?keys=7&sort=stream&country=FR&limit=20"
| Endpoint | Answer |
|---|---|
GET /api/players/{name} |
A player's public profile: best plays, latest plays, rating and best by main pattern. The name is case-insensitive. 403 when the player has not made their profile public, 404 when the name is unknown. |
GET /api/players/id/{userId} |
A player's best plays by performance and their places in the global and per-key-count rankings, for any active account (the profile's privacy switch does not apply: it shows only the best play of each chart, which the public board already shows). |
GET /api/players/id/{userId}/achievements |
The game's achievements evaluated over the player's online plays: every achievement with its tier, progress and the date of each tier. An achievement the server cannot tell is flagged available: false. |
GET /api/players/search |
q is the start of a player name (2 to 20 characters of A-Z a-z 0-9 _ -). Active accounts whose name starts with it, any case. |
GET /api/players/ranks |
ids: 1 to 100 account ids, comma-separated. The rank and total pp of those accounts, with their picture, country and title. |
GET /api/rankings |
A page of the global ranking: active accounts by Prism performance total (the 50 best plays' pp, the best at full weight falling in a straight line to 1 % at the 50th). |
GET /api/rankings/achievements |
A page of the achievement points ranking. |
GET /api/rankings/clans |
The clans ranking: the sum (totalPp) and mean (averagePp) of the members' pp. sort is total (default), average or members. |
GET /api/rankings/sctp |
The Single Charts Top Performance ranking (SCTP): the plays worth the most pp, one per chart (the best play of each chart, any player, any rate). Takes keys too. |
The rankings take limit (1 to 100, 50 by default) and offset (at most 10000). GET /api/rankings also takes keys (4 for 4K, 7 for 7K…), sort (global, or a MinaCalc pattern: stream, jumpstream, handstream, stamina, jackspeed, chordjack, technical), country (upper-case alpha-2 code; the players are ranked again among themselves) and q (a username substring, any case, before paging; the place is kept). The achievements ranking takes country too. Equal totals share a place. A banned account is never listed.
Marathons
A marathon is a recipe of maps played one after the other, each at its own rate, with its own board. Its identity is its own note hash: the game composes the marathon and hashes the result.
curl "https://prism.am/api/marathons?keys=4&mapsMin=3&sort=rating"
curl https://prism.am/api/marathons/by-hash/<marathon-note-hash>/scores
| Endpoint | Answer |
|---|---|
GET /api/marathons |
The marathons, filtered and paged: q (name or creator), keys, creator (+ creatorMatch), lengthMin/lengthMax (seconds), mapsMin/mapsMax, ratingMin/ratingMax (the PrismCalc overall at 1.0×; ratingCalc is minacalc only), sort (updated default, title, rating, length, maps), dir, page, perPage (1 to 60, 24 by default). |
GET /api/marathons/{id} |
One marathon: its card, its source link and its maps in play order. A map the index does not know is listed with known: false. |
GET /api/marathons/{id}/recipe |
The game's marathon manifest as the site keeps it, with no local path. |
GET /api/marathons/{id}/scores, GET /api/marathons/by-hash/{note_hash}/scores |
The board of the marathon: each player once with their best play, best rating first. limit 1 to 100 (50 by default), offset 0 to 10000. A marathon has no rate and no replay. |
Sending a marathon (POST /api/marathons) needs an account and is done by the game: see authentication. The format of the recipe is on the .pvmarathon page.
Manners
- Requests are limited per address, in buckets of 240 per minute; beyond it the answer is
429withRetry-After. The exact buckets are in rate limits. - Use
ETag/If-None-Match; do not poll. - Put a way to reach you in your
User-Agent. - Cache what is immutable: a
.roxor a notes answer never changes for a given hash.