Skip to main content

Platforms

Targeting a Platform

mod.io supports mods on all platforms. Games can enable per-platform mod file support in their dashboard, if they wish to control which platforms each mod and their corresponding files can be accessed on. Otherwise, all mods and their files will be available on all platforms the game supports. To make this system work, it's important the following headers are included in all API requests as explained below. If you have any questions about setting up cross-platform mod support in your game, please reach out to developers@mod.io.

When making API requests you should include the X-Modio-Platform header (with one of the values below), to tell mod.io what Platform the request is originating from. This header is important because it enables mod.io to return data that is approved for the platform such as:

  • Supported mods and files
  • Supported tags the player can filter on
  • Localization of content for the platform
  • It also enables platform specific metrics

For example, passing the HTTP header X-Modio-Platform: xboxseriesx in your API request tells mod.io your player is on Xbox Series X.

Official mod.io Plugins and SDKs will automatically supply this value for you providing you have specified the correct platform in the tools' settings. We strongly recommend you supply this header in every request with the correct platform to enable mod.io to provide the best cross-platform experience for your players. Please see a list of supported platforms below:

Target PlatformHeader Value
Sourcesource
Windowswindows
Macmac
Linuxlinux
Androidandroid
iOSios
Xbox Onexboxone
Xbox Series Xxboxseriesx
PlayStation 4ps4
PlayStation 5ps5
Switchswitch
Oculusoculus

These are the only supported values and are case-insensitive, anything else will be ignored and default to windows. Have we missed a platform you are using? Get in touch!

Targeting a Portal

When making API requests you should include the X-Modio-Portal header (with one of the values below), to tell mod.io what Portal (eg. Store or App) the request is originating from. This header is important because it enables mod.io to fine-tune the experience, such as returning display names used by players on that portal (which can be a certification requirement).

For example, passing the HTTP header X-Modio-Portal: epicgames in your API request tells mod.io your player is coming via the Epic Games Store.

You can also instruct the mod.io website to authenticate the player using a portal from the list above (provided it is supported), as explained in Web Overlay Authentication. For example, if your game client has logged the player into mod.io on PlayStation using their PlayStation™Network account, and you want to open the mod.io website in-game with the player logged in using the same authentication method, you would add ?portal=psn to the end of the URL: https://mod.io/g/gamename?portal=psn. You can optionally add &login=auto as well to automatically start the login process.

Target PortalHeader Value
Appleapple
Discorddiscord
Epic Games Storeepicgames
Facebookfacebook
GOGgog
Googlegoogle
itch.ioitchio
Nintendonintendo
PlayStation™Networkpsn
SSOsso
Steamsteam
Xbox Livexboxlive

These are the only supported values and are case-insensitive, anything else will be ignored. Have we missed a portal you are using? Get in touch!