Access Herald data via API

Started 21 Mar 2019
by Dreloc
in Ask the Team
Hey there,

I wanna add some of the Heralds data (Players, RR...) to our guild page.

I checked the actual Herald and it seems the Data is rendered into the page (No additional access for
the player/guild data).

Is there an xml/json api to get the data?

Greetings Dreloc
Thu 21 Mar 2019 9:08 AM by jelzinga_EU
Would also be awesome for using something like that for making a Discord bot where you can do something like

!info dreloc

and that the bot would respond with something like:

Dreloc <Ehrengarde> - Sorcerer - Level 50 - Realm Rank 3L6 - Inconnu Myrmidon
Total kills: 705 - Solo kills: 7
(info from : https://herald.playphoenix.online/c/dreloc )

I would reckon with a XML/JSON it would be a lot easier to make such a bot rather than parsing the HTML (which might change due to changes on the herald)
Thu 21 Mar 2019 12:06 PM by Dreloc
Yeah I also thought about parsing the HTML, but afaik this is meaning you use a crawler mechanic which is forbidden.

A structured data source would be quite nice

One of the main reasons I wanna have this data is to have a summary of twinks.

So I have a page where I can fast query a character called 'Dreloc' and I see he belongs to George.

And after I click onto George I can see all of his twinks...
Thu 21 Mar 2019 3:11 PM by Rdw
jelzinga_EU wrote:
Thu 21 Mar 2019 9:08 AM
Would also be awesome for using something like that for making a Discord bot where you can do something like

!info dreloc

and that the bot would respond with something like:

Dreloc <Ehrengarde> - Sorcerer - Level 50 - Realm Rank 3L6 - Inconnu Myrmidon
Total kills: 705 - Solo kills: 7
(info from : https://herald.playphoenix.online/c/dreloc )

I would reckon with a XML/JSON it would be a lot easier to make such a bot rather than parsing the HTML (which might change due to changes on the herald)

If you just want a discord bot you can use mine:

https://discordapp.com/api/oauth2/authorize?client_id=404012031705088000&scope=bot&permissions=68608


command is ?who username
Thu 21 Mar 2019 7:22 PM by goatHooves
I'm also interested in accessing herald data in json form, RDW how does your bot collect this information if you don't mind?
Thu 21 Mar 2019 8:47 PM by jelzinga_EU
goatHooves wrote:
Thu 21 Mar 2019 7:22 PM
I'm also interested in accessing herald data in json form, RDW how does your bot collect this information if you don't mind?

I'm guessing it does a regular HTML request to e.g. https://herald.playphoenix.online/c/charname and parses the resulting HTML file you get returned.
Thu 21 Mar 2019 9:02 PM by Rdw
goatHooves wrote:
Thu 21 Mar 2019 7:22 PM
I'm also interested in accessing herald data in json form, RDW how does your bot collect this information if you don't mind?

As the post above stated I just scrape the html
Fri 22 Mar 2019 5:29 AM by jelzinga_EU
Rdw wrote:
Thu 21 Mar 2019 9:02 PM
goatHooves wrote:
Thu 21 Mar 2019 7:22 PM
I'm also interested in accessing herald data in json form, RDW how does your bot collect this information if you don't mind?

As the post above stated I just scrape the html

I found a small bug in your bot - when you ?who a level 1 1L1 (basically a fresh character) it gets shown as 11L1
Fri 22 Mar 2019 5:52 AM by Rdw
jelzinga_EU wrote:
Fri 22 Mar 2019 5:29 AM
Rdw wrote:
Thu 21 Mar 2019 9:02 PM
goatHooves wrote:
Thu 21 Mar 2019 7:22 PM
I'm also interested in accessing herald data in json form, RDW how does your bot collect this information if you don't mind?

As the post above stated I just scrape the html

I found a small bug in your bot - when you ?who a level 1 1L1 (basically a fresh character) it gets shown as 11L1

Oh I noticed that while leveling but totally forgot, tomorrow I'm going to fix that and the 'None' bug that appeared after the herald update

Edit: Already updated, should be working as intended now, hit me up on discord if you have any issues
Rdw#9186
Fri 22 Mar 2019 6:34 AM by Dreloc
Back on Topic:

If there ain't a server running where I can query JSON data, I would be also fine with a 100MB JSON which
gets updated each day. I would download it, push it into my own MongoDB or likewise and host a
server on my own if network traffic is an issue.

But somehow structured data would be nice
Sat 8 Jun 2019 11:57 PM by denzionvij
Bump - im super interested in this as well
Thu 3 Jun 2021 7:36 AM by TheConcepteur
Bump too !
Could be nice !
I can give help on that too if you need it
Thu 3 Jun 2021 12:51 PM by gotwqqd
So it can be abused?
Auto choosing correct arrows?
Knowing class as to avoid making mistakes ?
This topic is locked and you can't reply.

Return to Ask the Team or the latest topics