Introducing Predecessor's Public API!
As previously announced, V.0.6 brings with it the launch of the Predecessor Public API.
WHAT IS THE PUBLIC API?
The Public API (Application Programming Interface) is a tool that allows community members, programmers and developers to access certain pieces of raw data from the Predecessor back end, which can then be used or outputted into community applications such as websites, leaderboards and more. The API is designed to facilitate community projects and fan-features that should enhance both Predecessor and the wider community.
PUBLIC API DEVELOPMENT
As previously mentioned, the Public API has been developed in collaboration with (and made possible by the support of) a handful of community developers.
With the Public API now live, these partners now have live access to the Public API.
We’d like to take this opportunity to showcase what they have been working on, which might inspire your own Predecessor Public API-based projects!
Builds, Guides, Items, Heroes
A powerful reference tool for Predecessor items, builds and stats!
We hope these community websites and tools will serve as inspiration for others who are interested in using the API to create new and innovative features for the Predecessor community.
Thank you for your continued support, and we look forward to seeing all of the amazing applications that will be built using the Public API.
HOW TO USE THE PUBLIC API?
Welcome to the first version of our Public API. We aim to keep adding new features to the public API over time.
We’re currently trialling a “completely open” access model, meaning for now we’re not imposing any restrictions. We ask you not to hammer our endpoints constantly - if people do abuse these endpoints we will bring in rate limiting and/or necessitate API keys.
The following data points are now available to pull.
Get Matches By Epoch
You pass in a unix epoch to the endpoint which will then return ten matches/ For pagination take the endTime of the last match and use that as the new epoch to call the endpoint with.
Get Match By Identifier
Some endpoints didn’t quite make the cut for this initial release. Here’s some additional endpoints that’ll be available in the future.
Get Matches By Player Identifier
Partially implemented - currently only returns ten matches.
Not implemented, but will return the ItemID -> ItemName mapping
Not implemented, but will return information about items.
Not implemented, but will return information about heroes based on their codenames.