Jump to content

.NET API Library


Recommended Posts

Since I didn't find any .NET implementation regarding the API I've gone ahead and make one myself.

With my limited experience regarding webapis and accessing them etc. the source may look reasonably bad.

Which APIs does it support?

  • Cards API (limited)
  • Map API (not working)
  • Auction API (should work to its full extent)
  • Leaderboards API (untested)
  • Battleforge replay reader

So with that out of the way:

Nuget link

Github repository

Example Usage


private static readonly JsonSerializerSettings Settings = new()
    MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
    Formatting = Formatting.Indented,
    DateParseHandling = DateParseHandling.None,
    Converters =
        new StringEnumConverter()

static void Main()
    var x = Instances.CardService.HandleCardRequest(new List<Tuple<RequestProperty, string>>
        new(RequestProperty.Name, "Gro"),
        new(RequestProperty.Defense, "1100")
    foreach (var card in x)
        Console.WriteLine(JsonConvert.SerializeObject(card, Settings));


Edited by RaiNote
update 1.0.5 | ReplayReader working
Link to comment
Share on other sites

  • RaiNote changed the title to .NET API Library

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use