Forums

API feedback

Quick find code: 278-279-872-66230361

Branjos
Mar Member 2005

Branjos

Posts: 3,396 Adamant Posts by user Forum Profile RuneMetrics Profile
Hi!

I'm a heavy user of the APIs for clan related tracking.

I'd like to give some feedback on the APIs I've been using over the years and maybe ask if there are any plans to touch them at all? Anyway, jumping right into it...

1. Can we please add a unique key to track users? The system I maintain stores information (think, number of caps/visits, point system, etc...) and username is the only unique thing I have to go on. So when users change their name, all of that data goes with it. There are ways to "guess" but it really isn't concrete and sometimes getting that "guess" wrong is harder to fix than manually going to find out.

2. Is there any way to use the RuneMetrics API for users with RuneMetrics set to private? In this case we would then only get the data that the Highscores Lite API returns such as skill levels/experience/rank. The Highscores Lite API is way more painful to deal with in terms of rate limits and formatting of data

3. Speaking of rate limits, is it possible to provide a batching service? As in I provide a CSV of usernames I'd like to pull the RuneMetrics data for and the response comes in the form of an array of objects instead of having to go one at a time. I see this as a potential win/win because it could reduce calls and load on your infrastructure too.

4. Since I am mainly in the Clan space, wondering if there are any plans for additions to the Clan API? I worked close with Shauny while he was there and know there are limitations with how Clans were built. But anything at this point would be welcomed!

5. In the same way as users, clans are also unique based on a name. Could we get a unique ID for clans too?


Thanks for hearing me out at least - I've had this tool for quite a while now and always am looking for ways to improve the usability of the tool for my userbase! Happy to chat more about this or anything else if you want.

Bran

26-Sep-2021 00:52:40 - Last edited on 26-Sep-2021 03:32:08 by Branjos

Yurple
Jun Member 2018

Yurple

Posts: 1,578 Mithril Posts by user Forum Profile RuneMetrics Profile
Branjos said :


In the same way as users, clans are also unique based on a name. Could we get a unique ID for clans too?




I believe there is a unique clan ID it's just a pain to get to. Let me see if I can find out how to do it - not sure if it's integrated directly from the API though, or from html headers. Are you working on a discord bot?
Keep your account safe:

31-Oct-2021 16:40:06

Yurple
Jun Member 2018

Yurple

Posts: 1,578 Mithril Posts by user Forum Profile RuneMetrics Profile
Ok I found it! Example here:

http://services.runescape.com/m=clan-hiscores/compare.ws?clanName=####


/html/body/div/div/div[2]/div/div[2]/div/div/div[5]/div[1]/div[5]/div/div[1]/a
or

//*[@id="coreStats"]/div[5]/div/div[1]/a

xpath html pull and split url on link return and has clanid for automated system

http://services.runescape.com/m=clan-hiscores/ranking?clanId=####&ranking=num_members


You can compare monthly gains runemetrics api too determine name changes.
Keep your account safe:

31-Oct-2021 17:25:24 - Last edited on 31-Oct-2021 17:34:03 by Yurple

Branjos
Mar Member 2005

Branjos

Posts: 3,396 Adamant Posts by user Forum Profile RuneMetrics Profile
Interesting, that does sound like a pain to get to but possible. I've found some things like this in the past, and have had to modify my code after they get removed. Not too keen on relying on something like that, but worth a try.

Also - hadn't thought about comparing monthly gains, however this really shouldn't even be needed. I can and may implement the checks based on that as a stopgap - but ideally I'd still like to see some unique identifier for users. Monthly gains api may get me close enough

04-Nov-2021 02:12:39

Quick find code: 278-279-872-66230361 Back to Top