Eranio
Color theme

GeyserMC API

Base: https://download.geysermc.org/v2

GeyserMC provides the tools that let Bedrock players join a Java server. The plugin offers six fixed projects: Geyser, Floodgate, Hurricane, GeyserConnect, ThirdPartyCosmetics and EmoteOffhand. Their versions and builds are read from download.geysermc.org/v2, which needs no key. This is the only provider whose project list is fixed in the plugin itself and not searched remotely.

Handler: GeyserMCProvider
GET /projects

List projects

Returns the list of all GeyserMC download projects with their available versions.

Response Example

["geyser","floodgate","hurricane","geyserconnect","thirdpartycosmetics","emoteoffhand"]

cURL

curl "https://download.geysermc.org/v2/projects"
The plugin does not call this list. Its project list is fixed and contains six entries: geyser, floodgate, hurricane, geyserconnect, thirdpartycosmetics and emoteoffhand. The summaries and the download numbers shown in the browser are values stored in the plugin, not live statistics, and all projects share the same island icon. A search keyword only filters these six entries by name and summary on your panel, nothing is sent to GeyserMC for it. The endpoint is listed so you can see which projects the download service offers.

Internal Behavior

Because the project list is fixed, a new GeyserMC project does not appear in the plugin until the plugin itself is updated. The last-update date of each project is read from its newest build and cached for 24 hours.
GET /projects/{project}

Get project info

Returns the metadata of one GeyserMC project, including the list of available versions.

Parameters

Name Type Required Description
project string Yes Project name: geyser, floodgate, hurricane, geyserconnect, thirdpartycosmetics or emoteoffhand.

Response Example

{"project_id":"geyser","project_name":"Geyser","versions":["2.4.0","2.3.1"]}

cURL

curl "https://download.geysermc.org/v2/projects/geyser"
This is the first step of the version list. The plugin reads the versions array and removes empty entries. For every version it then loads /projects/{project}/versions/{version}, takes the highest number from builds and loads that build to read its time. Each entry is shown as Version (Build N) with the ID in the form version-build. The list is reversed so that the newest comes first. Because several requests per project are needed, the result is cached for one hour.

Internal Behavior

If a request for a version or build fails, that entry is skipped and a warning is logged; the rest of the list still appears. For the download the plugin splits the ID at the last hyphen into version and build and loads /projects/{project}/versions/{version}/builds/{build}. Which file is taken from the downloads of the build depends on the project: for Geyser the order is geyser-spigot, geyser-bukkit, geyser-bungeecord, geyser-velocity, geyser-standalone, for Floodgate floodgate-spigot, floodgate-bukkit, floodgate-bungeecord, floodgate-velocity. If none matches, the first file of the build is used. The file is saved as <project>-<version>.jar.
GET /projects/{project}/versions/latest/builds/latest

Get latest build

Returns the latest build of the latest version of a project, including file names, hashes and download keys.

Parameters

Name Type Required Description
project string Yes Project name, for example geyser.

Response Example

{"project_id":"geyser","version":"2.4.0","build":670,"downloads":{"spigot":{"name":"Geyser-Spigot.jar","sha256":"abc..."}}}

cURL

curl "https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest"
The path with latest is a feature of the GeyserMC download service. The plugin does not use these aliases. It reads the real version numbers and uses the highest build number of each version itself, so the installed file is always a concrete, reproducible build. The downloads object of a build lists the available files by key, for example geyser-spigot or geyser-velocity; the key chooses the platform variant. Use this call when you want to check from outside which build is currently the newest.

Internal Behavior

The download address of a file is built by the plugin as https://download.geysermc.org/v2/projects/{project}/versions/{version}/builds/{build}/downloads/{key}. For a Geyser plugin on a Spigot or Paper server the key geyser-spigot is the right one; on a proxy use geyser-velocity or geyser-bungeecord.