MapleStory.OpenAPI
3.4.1
See the version list below for details.
dotnet add package MapleStory.OpenAPI --version 3.4.1
NuGet\Install-Package MapleStory.OpenAPI -Version 3.4.1
<PackageReference Include="MapleStory.OpenAPI" Version="3.4.1" />
<PackageVersion Include="MapleStory.OpenAPI" Version="3.4.1" />
<PackageReference Include="MapleStory.OpenAPI" />
paket add MapleStory.OpenAPI --version 3.4.1
#r "nuget: MapleStory.OpenAPI, 3.4.1"
#:package MapleStory.OpenAPI@3.4.1
#addin nuget:?package=MapleStory.OpenAPI&version=3.4.1
#tool nuget:?package=MapleStory.OpenAPI&version=3.4.1
MapleStory OpenAPI C# Library
This C# library enables the use of the MapleStory OpenAPI of Nexon.
Packages written in other languages can be found HERE.
English | 한국어
Notice
🌏 Notice 1: Starting from version 3.4.0, support for tms region has been added. You can now retrieve data from KMS, TMS, MSEA.
🌏 Notice 2: Starting from version 3.0.0, support for msea region has been added.
💡 Notice 3: Migration is required when updating from version 2.x.x to 3.0.0. Please refer to the documentation for Migration.
Installation
Install the latest version of the C# library in your NuGet project:
dotnet add package MapleStory.OpenAPI
Usage
API Key
Before using the library, register your application and obtain an api key from the Nexon Open API Console.
Applications must be registered separately for each region. (For example, an API key issued for KMS cannot be used to request data from MSEA.)
Region
Currently, this library supports data retrieval from the KMS, TMS, MSEA regions. To access data from a specific region, import the corresponding namespace.
using MapleStory.OpenAPI.KMS; // data from KMS
// or
using MapleStory.OpenAPI.MSEA; // data from MSEA
Even though the regions differ, each package inherits the same interface, ensuring a consistent API usage experience across all regions.
Sample Code
Below is an example that retrieves the identifier of a specific character from the KMS server based on the nickname, and then fetches that character’s basic information.
using MapleStory.OpenAPI.KMS;
var apiKey = "{Your API Key}";
var api = new MapleStoryAPI(apiKey);
// run your code
try
{
var character = await api.GetCharacter("{Your Character Name}");
var characterBasic = await api.GetCharacterBasic(character.OCID);
Console.WriteLine(characterBasic.ToJson());
}
// exception handling
catch (MapleStoryAPIException e)
{
// handle MapleStoryApiException
}
catch (HttpRequestException e)
{
// handle HttpRequestException
}
You can find more examples in the test cases at the following link.
- Character Information Retrieval
- Union Information Retrieval
- Guild Information Retrieval
- History Information Retrieval
- Ranking Information Retrieval
- Notice Information Retrieval
Features
This library supports all apis published in the MapleStory OpenAPI official docs.
Some features are supported only in specific regions. Please refer to the official documentation for each region for details.
- KMS: https://openapi.nexon.com/game/maplestory
- TMS: https://openapi.nexon.com/game/maplestorytw
- MSEA: https://openapi.nexon.com/game/maplestorysea
Exception Handling
Handle MapleStoryAPIException to safely make calls, ensuring that specific Status defined in the MapleStory OpenAPI Guide are not encountered.
While MapleStoryAPI is designed to prevent the occurrence of certain Status, exceptions may arise due to developer mistakes.
Therefore, it's recommended to use MapleStoryAPIException for exception handling based on the MapleStoryAPIErrorCode list described in the table below.
| ErrorCode | Description |
|---|---|
| OPENAPI00001 | Internal server error |
| OPENAPI00002 | Access denied |
| OPENAPI00003 | Invalid identifier |
| OPENAPI00004 | Request format error (incorrect parameter input) |
| OPENAPI00005 | Invalid api key |
| OPENAPI00006 | Invalid api path |
| OPENAPI00007 | Request allowance (Rate Limit) exceeded |
| OPENAPI00009 | Not prepared data |
| OPENAPI00010 | Game server maintenance |
| OPENAPI00011 | API server maintenance |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- RestSharp (>= 112.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.5.0 | 170 | 11/4/2025 |
| 3.4.1 | 150 | 10/24/2025 |
| 3.4.0 | 96 | 10/18/2025 |
| 3.3.0 | 177 | 8/21/2025 |
| 3.2.1 | 231 | 8/8/2025 |
| 3.2.0 | 176 | 7/17/2025 |
| 3.1.0 | 215 | 6/19/2025 |
| 3.0.0 | 362 | 6/12/2025 |
| 2.13.1 | 266 | 5/12/2025 |
| 2.13.0 | 205 | 3/29/2025 |
| 2.12.1 | 202 | 3/20/2025 |
| 2.12.0 | 207 | 3/20/2025 |
| 2.11.0 | 173 | 2/21/2025 |
| 2.10.0 | 147 | 1/17/2025 |
| 2.9.0 | 152 | 12/19/2024 |
| 2.8.0 | 160 | 11/24/2024 |
| 2.7.2 | 172 | 10/3/2024 |
| 2.7.1 | 180 | 8/14/2024 |
| 2.7.0 | 179 | 7/19/2024 |
| 2.6.1 | 160 | 7/8/2024 |
| 2.6.0 | 179 | 6/14/2024 |
| 2.5.0 | 215 | 4/9/2024 |
| 2.4.1 | 196 | 2/21/2024 |
| 2.4.0 | 189 | 1/26/2024 |
| 2.3.2 | 228 | 1/9/2024 |
| 2.3.1 | 183 | 1/4/2024 |
| 2.3.0 | 176 | 12/31/2023 |
| 2.2.0 | 190 | 12/27/2023 |
| 2.1.1 | 204 | 12/24/2023 |
| 2.1.0 | 180 | 12/23/2023 |
| 2.0.0 | 201 | 12/14/2023 |
| 1.1.0 | 193 | 12/3/2023 |
| 1.0.1 | 171 | 11/28/2023 |
| 1.0.0 | 183 | 11/18/2023 |