Diablo® III

API Libraries for Programming Languages

MVP
Posts: 116
View profile
My goal for this thread is to keep an up-to-date list of tools for different programming languages that facilitate accessing the Diablo 3 Community Platform API. If you'd like your project listed, just reply to the thread! Alternatively, follow the instructions at https://github.com/BinaryMuse/wow-api-projects#readme (which I use to maintain this list and generate the markup).

The WoW version of this thread can be found at http://us.battle.net/wow/en/forum/topic/2369882588

.NET
  • BATTLE.NET - SDK by Asesjix
    http://battlenetsdk.codeplex.com/

  • bnapi-4-net by femor
    http://code.google.com/p/bnapi-4-net/




C#
  • D3-API-by-ZTn by Tok
    https://github.com/zetoken/D3-API-by-ZTn/


ColdFusion


Java
  • D3-armory-library by kovmarci
    https://github.com/kovmarci86/d3-armory


JavaScript
  • d3-js-client by MasterBoo
    https://github.com/evyatron/d3-js-client


Objective-C
  • D3Kit by rnystrom
    https://github.com/rnystrom/D3Kit


PHP
  • d3-api-php by NetJunky
    https://github.com/jeserkin/d3-api-php

  • Diablo-3-API by BeingTomGreen
    https://github.com/BeingTomGreen/Diablo-3-API

  • Diablo-3-API-PHP by XjSv
    https://github.com/XjSv/Diablo-3-API-PHP


Python
  • simple-python-Diablo-3-API by Brian Fehrle
    https://github.com/BrianFehrle/simple-python-Diablo-3-API


Ruby
  • Covetous by corroded
    https://github.com/corroded/covetous


________________________________________________
MVP, Web and API
WoW Libraries for the Community Platform API: http://us.battle.net/wow/en/forum/topic/2369882588
D3 Libraries for the Community Platform API: http://us.battle.net/d3/en/forum/topic/6307731317
Edited by BinaryMuse#1961 on 8/9/2013 1:20 PM PDT
Reply Quote
Here is a Simple one for PHP: https://github.com/XjSv/Diablo-3-API-PHP... still working on it. But its functioning.
Reply Quote
Hi BinaryMuse,

I appreciate you adding me to your list! I really hope this gets a sticky soon so everyone can see it; as opposed to it floating from the bottom of the page to the top everyone once in a while.

I have another Lib for you to add. It is called D3MediaLib. This library contains all request-able media in an offline and fast manner. It allows retrieval of item icons by themselves or with its proper background to make things even easier. In addition to items, D3MediaLib contains a bunch of other request-able media such as gems, pots, and skills.

Here's a link to the codeplex page:
d3medialib.codeplex.com
Reply Quote
Posts: 115
Quoting isn't working for some reason.

"Python
simple-python-Diablo-3-API by Brian Fehrle
https://github.com/BrianFehrle/simple-python-Diablo-3-API"

This is great! I'm working on a python version as well. Once I get it up on github, I'll include it as well. Its more for myself as a learning tool.
Reply Quote
MVP
Posts: 116
View profile
Thanks, guys, I've updated the opening post. Glad to see things taking off!
________________________________________________
MVP, Web and API
Libraries for the Community Platform API: http://us.battle.net/wow/en/forum/topic/2369882588
Libraries for the Community Platform API: http://us.battle.net/d3/en/forum/topic/6307731317
Edited by BinaryMuse#1961 on 8/20/2012 4:20 PM PDT
Reply Quote
You might want to consider cross referencing the vishnevskiy battlenet api as well, there's a lot of good basic info in there.
Reply Quote
I will post my API for converting from tooltipParams link to ingame link tomorrow or on thursday if noone did it. I'm working on it right now.
Reply Quote
Yes another .NET library. This ones supports Caching and Authentication and comes with a sample WPF application

http://code.google.com/p/bnapi-4-net/
Reply Quote
The original WoWColdFusionAPI has been upgraded to v2.0 to support:
+ WoW Localization
+ Added Diablo 3 API support.

I'll most likely rename the project soon, but in the meantime, here it is:

https://github.com/Hanzo55/WoWColdFusionAPI

So if your technology of choice is Adobe ColdFusion / BlueDragon / Railo, this wrapper's for you.
Reply Quote
Very nice PHP-Class! It is easy to use. Thank you a lot !

There ist a problem with specialchars like "ó" or "ò"? Could it be ?

Graceful

Erendil
Reply Quote
Very nice PHP-Class! It is easy to use. Thank you a lot !

There ist a problem with specialchars like "ó" or "ò"? Could it be ?

Graceful

Erendil


Is this in reference to my project (Diablo-3-API-PHP)?
If so where are these special characters in the Battle.net tag?
Reply Quote

Is this in reference to my project (Diablo-3-API-PHP)?


Yes it iss.

A member of our clan hast such a specialchar

Link: http://eu.battle.net/d3/de/profile/Chl%C3%B2e-2629/

His Battle.net tag is : Chlòe#2629
Reply Quote

Is this in reference to my project (Diablo-3-API-PHP)?


Yes it iss.

A member of our clan hast such a specialchar

Link: http://eu.battle.net/d3/de/profile/Chl%C3%B2e-2629/

His Battle.net tag is : Chlòe#2629


I'm looking into it.

Update: Seems like there is nothing I can do. This is a bug with the API that Blizzard is still working on: http://us.battle.net/d3/en/forum/topic/6308662062

http://us.battle.net/api/d3/profile/Chl%C3%B2e-2629/

Even if you call it via the browser it returns HTTP Status 200 along with:


{
"code" : "OOPS",
"reason" : "There was a problem processing the request."
}
Edited by XjSv#1677 on 9/6/2012 8:30 AM PDT
Reply Quote
Hey,

yes i've read this a few minutes after i had posted my reply.

Thank you for your answer.

Greetings

Erendil
Reply Quote
As Poutine mentioned in this: http://us.battle.net/d3/en/forum/topic/6308662062#9 post, adding "index" as the end of the URL will fix is for now.
Reply Quote
Please add this ;-)
http://us.battle.net/d3/en/forum/topic/6490540912
Reply Quote
17 Human Mage
0
Posts: 2
Ruby on Rails

Added to a helper. Code will call and parse the JSON return from the Battle Net API

require "net/http"
require "json"
USER_AGENT = "API"
def blizzard_profile_url(battle_name, battle_tag)
"http://#{ENV['blizzard_host']}#{ENV['blizzard_profile']}#{battle_name}-#{battle_tag}/"
end

def pull_blizzard_profile(battle_name, battle_tag)
url = blizzard_profile_url(battle_name, battle_tag)
options = Hash.new(nil)
options["User-Agent"] = USER_AGENT
options["Expect"] = ''
options["Accept"] = 'application/json'
options["Content-Type"] = 'application/json'
uri = URI(URI.escape(url))
req = Net::HTTP.new(uri.host)
resp = req.get(uri.to_s, options)
JSON.parse(resp.body)
end
Reply Quote
Here is my PHP Api for Diablo 3: https://github.com/jeserkin/d3-api-php
If there will be any questions, don't hesitate to ask. Tryed to make it as easy as it can be.

PS.
Problem with battleTag is present in my api as well, since actual problem is on Blizzard side.
Edited by NetJunky#2214 on 9/7/2012 6:51 AM PDT
Reply Quote
Hi,
As I was playing with the API these last days, I finally obtained a C# wrapper for the Diablo API and the informations retrieved.
It's available on github: https://github.com/zetoken/D3-API-by-ZTn/

A GUI tool is also provided that allows to get raw informations on career, heroes and items presented in a tree view (not user friendly, but very precise).
Note: right clic on underline nodes allows to retrieve more detailed informations from battle.net server.

Be free to comment, review, use... or forget ;-) .
Edited by Tok#2360 on 9/12/2012 1:35 PM PDT
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]