A Cloudflare worker app to get data from https://github.com/jamiephan/HeroesOfTheStorm_Gamedata and transform to various formats with Badge endpoint support!
Base Url: https://heroes-data.jamiephan.workers.dev
A cache has been setup for up to an hour for repeated request for the same file & version.
Get the file under mods
folder in https://github.com/jamiephan/HeroesOfTheStorm_Gamedata.
- URL Params:
path
: The file path undermods
folder in https://github.com/jamiephan/HeroesOfTheStorm_Gamedata.
- Query Params:
version
- Required:
false
(default=latest
) - Example:
v2.55.7.93054
,latest
- Get which version of the game. Any valid tags (https://github.com/jamiephan/HeroesOfTheStorm_Gamedata/tags) starts with
v
. You can also omit (or use valuelatest
) to always get the latest version.
- Required:
format
- Required:
false
(default=txt
) - Example:
json
,yaml
,xml
,txt
- Convert the file format version. This will also affect the
Content-Type
output. For valid formats, please refer to https://github.com/jamiephan/HeroesOfTheStorm_Gamedata_HTTP/blob/main/src/helper/transform.ts#L16. Incorrect format will just returntxt
version instead.
- Required:
- Examples:
- Get the latest build number:
- Get the Abathur data in JSON format on version v2.55.7.93054:
Generate a shields.io badge endpoint with supplied JSONPath Query.
Note: Badge Endpoint currently only supports
.txt
/.xml
/.storm*
files.
- URL Params:
path
: The file path undermods
folder in https://github.com/jamiephan/HeroesOfTheStorm_Gamedata.
- Query Params:
version
- Required:
false
(default=latest
) - Example:
v2.55.7.93054
,latest
- Get which version of the game. Any valid tags (https://github.com/jamiephan/HeroesOfTheStorm_Gamedata/tags) starts with
v
. You can also omit (or use valuelatest
) to always get the latest version.
- Required:
path
- Required only if the file type is
.xml
/.storm*
..txt
will just output the content.
- Example:
$.Catalog.CAbilEffectTarget[?(@._attributes.id=="AbathurUltimateEvolution")].Cost.Cooldown._attributes.TimeUse
- The JSONPath Query language to obtain a specific data and output to the
message
field of the badge endpoint.
- Required only if the file type is
label
- Required:
false
(default=Heroes Game Data
) - Example:
Abathur Ultimate Evolution cooldown
- The
label
field for the badge endpoint.
- Required:
- Examples:
- Get the latest build number:
- Get the Abathur Ultimate Evolution cooldown on version v2.55.7.93054:
Description | Badge |
---|---|
Get the latest build number | |
Get the Abathur Ultimate Evolution cooldown on version v2.55.7.93054 | |
Get Maiev's Fan of Knives (Q) Damage | |
Get the Bolt of the Storm (tp) Range |
yarn install
yarn run dev
npm run deploy