4

I want to make a SC2 clan and we need an website. We want to let users register free on website based on Server, Character Name and Number.

I saw on http://sc2ranks.com/ that they can somehow can find / construct player profile URL, for example: http://sc2ranks.com/cn/85055/ZeroKyo

From where did they get /85055/? It isn't based on anything as far I can see. How can I find this URL if I have the character name and number?

2 Answers 2

6

Why not just use the API that sc2ranks.com has created. That way you can focus your efforts on building the website, and sc2ranks will deliver the data you need.

Read more about the restrictions for the service and how to use SC2 Ranks API.

EDIT

Since you do not want to use sc2ranks.com, you should take a look at the sc2profile project. It is made for the single purpose of fetching profile information from Battle.net. I think that would be a good starting point.

3
  • +1 This seems like it would be the easiest and quickest method to implement. If nothing else the OP should at least use this until they can come up with their own platform (if they wish to do so)
    – Wipqozn
    Commented Jul 18, 2011 at 13:11
  • The only problem with this is your relying on a third party website. Should it go down, you would have to rewrite everything.
    – Resorath
    Commented Jul 18, 2011 at 15:51
  • @Resorath But it's a good method to use until they have their own system in place.
    – Wipqozn
    Commented Jul 19, 2011 at 10:32
1

That number is from the user's battle.net profile URL. Example:

http://eu.battle.net/sc2/en/profile/326029/1/LiquidTLO/

http://sc2ranks.com/eu/326029/LiquidTLO

That's probably how sc2ranks gets it, but if all you have is username + character code, I don't know a way to get it without using their API like @Sharken said. However even on their website they say character code is not the most accurate way to search for a player's profile.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.