API Discussion

Jan 29 D3 - 504 Gateway Timeout Hello Lads, I noticed this morning issues with the D3 API. I can easily get tokens using the curl request to https://eu.battle.net/oauth/token but when I use the token to actually get profile information I get a HTTP 504 Gateway Timeout error: curl -v -H "Authorization: Bearer EUxxxIT49gGty5keQVkHefnQo8xxxxxxxx" https://eu.api.blizzard.com/d3/profile/Chocopipe%232208/hero/96006772?region=eu&locale=en_GB [1] 98886 [oayoun † Manganese] ~  * Trying 37.244.28.18... * TCP_NODELAY set * Connected to eu.api.blizzard.com (37.244.28.18) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /opt/local/share/curl/curl-ca-bundle.crt CApath: none * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: C=US; ST=California; L=Irvine; O=Blizzard Entertainment, Inc.; OU=BIIS; CN=*.api.blizzard.com * start date: Aug 17 00:00:00 2016 GMT * expire date: Aug 22 12:00:00 2019 GMT * subjectAltName: host "eu.api.blizzard.com" matched cert's "*.api.blizzard.com" * issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA * SSL certificate verify ok. > GET /d3/profile/Chocopipe%232208/hero/96006772?region=eu HTTP/1.1 > Host: eu.api.blizzard.com > User-Agent: curl/7.63.0 > Accept: */* > Authorization: Bearer EUxxxIT49gGty5keQVkHefnQo8xxxxxxxx > < HTTP/1.1 504 Gateway Timeout < content-type: text/plain;charset=utf-8 < content-length: 7 < x-trace-traceid: 157a6a59-bb22-c100-98bd-fa165a4991fc < x-trace-spanid: 157a6a59-bb28-5980-98bd-fa165a4991fc < x-trace-parentspanid: 157a6a59-bb22-c140-98bd-fa165a4991fc < x-frame-options: SAMEORIGIN < X-Content-Type-Options: nosniff < connection: keep-alive < * Connection #0 to host eu.api.blizzard.com left intact Timeout Is this because I am doing something wrong or because something is broken at Blizzard's end? Thank you for your help.Chocopipe1 Jan 29
Jan 29 401 invalid_client / Bad client credentials Hello, I'm updating an app for the new API. I've generated a new client_id / secret and I'm passing it as Basic auth to https://us.battle.net/oauth/token when trying to exchange a code for an access_token, but I always seem to get a 401 {"error":"invalid_client","error_description":"Bad client credentials"} response. I've even dumped the raw HTTP request and decoded the Authorization header to verify the correct credentials are being sent. Is there any other cause for this error?R1CH1 Jan 29
Jan 28 Discrepancy in inventoryType So I query the API for an item I get the item, all good on that front. However one of the items I get back I'm having trouble reconciling. Harlan's Loaded Dice (JSON below), there may be others I haven't really looked. The item seems to have an inventoryType of 12 in spite of the fact that being a trinket the slot for this item should be 13 or 14, as confirmed by https://wowwiki.fandom.com/wiki/API_TYPE_InventorySlotID/Slots as well as the macros I use in-game that say /use 13 or 14, obviously this item isn't useable, but just for the sake of example. I condensed it down a bit to make it clearer. { "id": 155881, "name": "Harlan's Loaded Dice", "icon": "inv_misc_dice_02", "quality": 3, "itemClass": 4, "itemSubClass": 0, "inventoryType": 12, <--- HERE } Looking at an entire JSON of equippable items I can't see a single item that has a value of 0 therefore I don't believe that it starts at 0, a situation that would make 12 the 13th value. Just wondering if anyone can shed some light on this, as currently it's causing me quite a headache when trying to autocomplete particular fields. Perhaps the value I'm looking at is not the one I actually want for this purpose, but a cursory search of the forums suggests otherwise.dual1ty3 Jan 28
Jan 28 Overwatch API Hello, Is there anything currently against TOS to scrape playoverwatch for player statistic data in lieu of an API? Additionally will I have to worry about scraping being blocked for too many requests? I know this is the current method for many of the stat websites, but Blizzard have never been clear or consistent--see wowhead, methods against TOS, not only allowed but highlighted--with their policy. Has there been any news or information regarding the availability of an API for these statistics? It would be a lot more efficient (and more clear that it's legal/allowed) than scraping playoverwatch. Best, TazTaz0 Jan 28
Jan 27 All WoW Item IDs On Github Hello fellow developers. I have been working on a project for a while and now I need Item IDs. I could not find any complete list so I created one. If you want to use it you can find it as .txt file on GitHub. https://github.com/yavuzselim8/WoWAllItems If you find any missing IDs feel free to add.Xendread4 Jan 27
Jan 27 Playable Race API doesn't list Pandaren as old API did When I list user characters using /wow/user/characters -endpoint, I may get character like this { .... "race": 25 .... } However, when I fetch race list using /data/wow/race/index and /data/wow/race/{id} there is only ID = 24, name = Pandaren Old API returned all Pandaren IDs (Alliance, Horde, neutral) but this new one only returns which was neutral in old API. Is this bug or do I really need to hard-code these special Pandaren race IDs to my program? I think either character listing should return race = 24 OR race index should know these other race IDs.Kehet2 Jan 27
Jan 25 401 Bad client credentials Hi everyone, I'm not entirely sure that's the correct section for that, however i'm trying to connect my Bnet account with websites such as "https://thetrackernetwork.com/" and "https://masteroverwatch.com" to follow-up with my stats and have a clear leaderboards of what's going on with my OW gameplay. But every time I try to link my bnet to one of the websites mentioned before, i'm getting the 401 Bad Client Credentials error. So far i tried to: Log-out / Log-In from the bnet and attempt to link on each of the websites. Attempt to link the bnet with more then one website to isolate the issue. Might that be related to the region? Something like "i'm an EU player trying to link my bnet to a website that's trying to call an US bnet?" not sure if that makes any sense though.Guccigold1 Jan 25
Jan 25 WoW: Progression API returning incorrect boss names for Alliance toons I have a few toons on my raid roster that haven't logged in since Battle for Dazar'alor was added to the progression data. These toons are returning "Grong, the Jungle Lord" for the third boss. For Alliance toons, this is incorrect as the boss is named "Grong, the Revenant" for that faction. One example of a toon doing this is Rickybobby on US-Aerie Peak.timwoj1 Jan 25
Jan 24 Tushui Pandaren Reputation missing My character is revered with the Tushui Pandaren (id 1353) but whenever I load her data via the API, Tushui Pandaren is missing. Is there a way to get the API to show this reputationAussieEevee3 Jan 24
Jan 24 SC2 API Performance Hey folks, Pulling this out into its own thread to highlight the issue. I migrated over to the new StarCraft II APIs (https://develop.battle.net/documentation/api-reference/starcraft-2-community-api) and I've noticed all of my API calls are now taking 10-15 seconds to complete. This is for both Legacy APIs and Profile APIs. I'm integrating via Java using the same code I used in the previous API, except specifying the OAuth token in the header instead of as a query parameter. Previously all of the legacy API calls typically took less than a second. Is this a known issue on Blizzard's side? Thanks! brownbeargrizzlybear5 Jan 24
Jan 23 OAuth character endpoint returns erroneous guild data Hi there, I just realised that the "/wow/user/characters" endpoint of the Community OAuth Profile API (EU) returns wrong guild data in some cases. More specifically, I have a couple of characters for which the payload contains a guild name, although those characters left their guild several months ago. The guild is the last one they were in, but it should have updated and be empty now. Would it be possible to update this field so it returns the character's current guild or null? Thanks for your help!Keden4 Jan 23
Jan 21 How to convert 'bid' value to gold and what does 'auc' mean? I am a newbie. Here is auction snapshot: http://auction-api-eu.worldofwarcraft.com/auction-data/8e9b4312d03d292346f6beea19c6c2a2/auctions.json Let's take this line: {"auc":1301815458,"item":160711,"owner":"Woofer","ownerRealm":"Azuremyst","bid":5996875,"buyout":6000000,"quantity":37,"timeLeft":"VERY_LONG","rand":0,"seed":0,"context":0}, Questions: 1. What does 'auc' mean? Is it unique id of the deal or maybe some timestamp? 2. How to convert "bid":5996875 (I suppose this number means amount of copper) to a gold. I am currently sitting in the game and watching on this item at the auction house and it's bid price = 16g 20s 77c. And I am confused, because 16g 20s 77c not equal to 5996875c 3. Regarding "timeLeft":"VERY_LONG". As I understand VERY_LONG = 48h, MEDIUM=24h, LONG=12h, is that correct? P.S: if there is a documentation that answers my questions you can just post a link, but I haven't found anything so decided to ask here. Thanks in advance!iJSmile2 Jan 21
Jan 20 PHP can't get characters back - Insufficient scope for this resource Hi, I am trying to return the character list from eu.api.blizzard.com/wow/user/characters while passing the access token first obtained via a curl post, I also have the client token, again obtained via curl post. During the client token post I am requesting both account.public and wow.profile in the scope but I cannot seem to get the characters back when using file get contents. As getting the characters requires a GET request, same as getting back /oauth/userinfo/ does I assumed file_get_contents would work, the same way it does for the userinfo request. Although I seem to be getting insufficient scope for the request. Anyone have any ideas? The rest of the authentication has been a breeze but this has me stumped. I can't work out for the life of me what this issue could be... This is the array im posting for client credentals.. $fields = array( 'code' => $code, 'scope' => 'account.public', 'redirect_uri' => $redirectUri, 'grant_type' => 'client_credentials', ); $clientToken = getClientToken($fields, $url, $clientId, $clientSecret); This is the array im posting to get the access token $code = $_GET['code']; $grantType = 'authorization_code'; $url = 'https://'eu.battle.net/oauth/token'; $fields = array( 'code' => $code, 'grant_type' => $grantType, 'redirect_uri' => $redirectUri, 'client_id' => $clientId, 'scope' => 'wow.profile' ); $accessToken = getAccessToken($fields, $url, $clientId, $clientSecret); I am defining the scope above to get the wow.profile but it still wont let he have access once the call has been made.Injure2 Jan 20
Jan 18 invalid_client - Bad client credentials For some reason I am getting this error: error="invalid_client", error_description="Bad client credentials" I thought it was a problem on my end but it wont even work on https://dev.battle.net/io-docs on 'Account API - US' using the example form.vamp20 Jan 18
Jan 18 Why do WoW forums require active subscription? You can post on any other Blizzard game forum for free. Hearthstone, StarCraft... Some games require you to purchase them. Fair enough. But I purchased WoW. I purchased multiple expansions, and quite a few years worth of subsription. Yet, if the current state of the game made me unsubscribe, I can't even share feedbacks on why since I'm prevented from voicing my opinion on the official forums. The other Blizzard games aren't locked behind such restrictions, so why should the WoW forums ? This is a game I still deeply care about, and I follow its evolution to maybe come back to it someday, and I would really like to participate on certain threads that I see there.Гуди1 Jan 18
Jan 18 PHP - cURL necessary? Hi, I played around with the old api for a while and got to work with it quite good. Now I try to understand the new API and the Oauth-Integration. If I understand that correctly there is a token I need to get to access data from the API. This Tokens come for Clients („Website-Users“) and Applications („Website“). Is that correct? So I looked into some example-Code and it seems like I need to make a HTTP-Request with my Key and Secret and then I get a token in return which I then can use to access data from the api. So all the example-code uses cURL. I never used cURL and PHP is able to make HTTP-Requests without cURL, but I don’t understand how that Request would look like. Somebody has some PHP-Example-Code he could provide? Thank you in advance.Bahamut5 Jan 18
Jan 18 403 : insufficient_scope Hello there, I try to get wow characters data from battlenet account. Using this url : https://eu.api.blizzard.com/wow/user/characters?access_token=<userToken> It works! Except for one account. I get this response : <oauth> <error_description>Insufficient scope for this resource</error_description> <error>insufficient_scope</error> </oauth> I tried with a scope param (wow.profile) but same problem... https://eu.api.blizzard.com/wow/user/characters?access_token=<userToken>&scope=wow.profile I'm looking for on web but I didn't find the problem's response... :( Do you have any idea? Thank you very much! HirokumiHirokumi2 Jan 18
Jan 18 Reagents/World Quest Sources? Are there any API endpoints available for getting Crafted Item reagents, or a list of active World Quests? WowHead, for example, has a section showing all the active world quests. How are they getting this data? The same question for crafted item reagents - if I want to find out what makes item ID 164682, is there a list of corresponding item IDs and quantities that link to this, or is this something I'd have to manually populate and maintain? There's the recipe endpoint that shows certain items come from an action, but not the corresponding inputs. Recipe ID 251832, for example, only shows that it's a blacksmith entry, but not what it needs for input to create the item: { "id": 283248, "name": "Sinister Combatant's Plate Gauntlets", "profession": "Blacksmithing", "icon": "inv_plate_glove_warfrontshorde_b_01" }Puscifer2 Jan 18
Jan 18 [Solved] Issue with getting russian char data by API (WoW) Hi all! Get some strange bug with russian names and realms. I get this response for all russian chars that I try (10+) {"status":"nok", "reason": "Character not found."}, and all is ok with EU chars. Also if I open a direct link in browser - I can get a data for russian character. How I gan get a data in my code? $charName = 'Морана'; $realmName = 'Howling%20Fjord'; $charName = 'Palladus'; $realmName = 'Sylvanas'; $url = "https://eu.api.blizzard.com/wow/character/$realmName/$charName?locale=en_US"; $authorization = "Authorization: Bearer ".$token; $curl = curl_init(); curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json' , $authorization )); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($curl); print_r($result); //Russian - {"status":"nok", "reason": "Character not found."} curl_close($curl); echo "</br><a href = '$url&access_token=$token'>link</a>"; //link is work wellKsanshie2 Jan 18
Jan 17 WoW Token Price not updated for NA Hello, WoW Token Price has not been updated for NA region in more than 5 days. The API is responding fine, is just the value that is outdated. All the other regions seem to be working properly. { "_links": { "self": { "href": "https://us.api.blizzard.com/data/wow/token/?namespace=dynamic-us" } }, "last_updated_timestamp": 1547243431000, "price": 1199590000 } mt40 Jan 17
Jan 16 Is it no longer possible to get D3 profile data without authorizing? I don't understand why we need authorization to access data that is already publicly available. Do I have to force users to log in via battle.net just to use my website, or how is the workflow supposed to work?Riv2 Jan 16
Jan 16 Match WoW Char with User Is it possible to make sure that a character is owned by user x when he is using my web portal? If the user selects a WoW char from the armory i don´t know if hes really the one that the selected character belongs to. Is there a possibility to make a mapping or to retrieve all characters from a user?Zottelino3 Jan 16
Jan 16 Diablo III - Add achievements to API It would be nice to get achievements exposed on the API before D3 development is completely sunsetted. Is there any realistic chance of this happening?MrRammer1 Jan 16
Jan 15 Request - /wow/mount - creatureId When using the WoW Mount endpoint, the object key "creatureId" sometimes matches the render URL. Some mounts match and some do not. I would like to request that either the Render URL is added to the endpoint and/or the creatureId in the endpoint references the render properly, and/or the Dev Console command, "exportInterfaceFiles art" or a new Dev Console command can get these renders. Examples: Non-Matching CreatureID to Render Link { "name": "Albino Drake", "spellId": 60025, "creatureId": 32158, "itemId": 44178, "qualityId": 4, "icon": "ability_mount_drake_blue", "isGround": true, "isFlying": true, "isAquatic": false, "isJumping": false }, Render: https://render-us.worldofwarcraft.com/npcs/zoom/creature-display-25836.jpg Sort-of Matching CreatureID to Render Link CreatureID is a negative number... { "name": "Acid Belcher", "spellId": 253662, "creatureId": -79593, "itemId": 152904, "qualityId": 4, "icon": "inv_argusfelstalkermountgrey", "isGround": true, "isFlying": false, "isAquatic": true, "isJumping": true }, Render: https://render-us.worldofwarcraft.com/npcs/zoom/creature-display-79593.jpg If the creatureId was the same across the whole scheme, we could make the render link ourselves but just having it in the API would be fantastic!Kryo6 Jan 15
Jan 14 US PvP Ladder hasn't been updated in 3 days Please could this be resolved? EU is working fine, US is not for any bracketRey0 Jan 14
Jan 12 [SOLVED] 404 returned for new Account API I'm in the process of migrating my apps to the new endpoints/APIs. Everything is going fine so far, except the OAuth Account API (endpoint /account/user which is documented in the Community API reference https://develop.battle.net/documentation/api-reference/community-oauth-profile-api but for some reason is not mentioned/listed in the OAuth guide https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow). I have no problem getting a token, however, when I try to access the Account API (to get the user's battle tag), I get a HTTP response of 404. This worked fine using the old API endpoints, and from what I've read in the migration guide and the other docs for the new API, I believe that all I needed to do was update my endpoints and generate new client ids/secrets for my apps. Here is the old and new HTTP requests that I am making: Old endpoint (still works, using old client id/secret): HTTP GET https://us.api.battle.net/account/user?access_token=<token> New endpoint (returns HTTP 404): HTTP GET https://us.api.blizzard.com/account/user?access_token=<token> Dawg65 Jan 12
Jan 12 Trouble logging in by BNet on 3rd party sites I cannot seem to get logged in with BNet login to any third party sites. Is there something wrong with the OAUTH2 API or was a change made that blocks 3rd party sites from using BNet logins now? Here's some example community sites with the login issue: https://www.overbuff.com/ https://masteroverwatch.com/ https://www.ugcleague.com/bn I filed a support ticket and they suggested posting here for more help! Thanks!snowblind1 Jan 12
Jan 11 Invalid Certificate? My greetings. I'm running a simple Google-Sheet to track my guilds itemlevel and azeritelevel. At some point today it stopped working. I'm using UrlFetchApp.fetch(...) to get the information from https://eu.api.battle.net/. Now it throws an Exception: SSL Error. Manually visiting the page I get: Your connection to this site is not secure. Looks like the certificate expired? So there is nothing I can do but wait until Blizzard fixes their stuff? Regards, EluElu2 Jan 11
Jan 11 2 minutes lag when trying to use file_get_contents Hello! Could anyone tell me what should I do to get rid of near 2 minutes lag when using PHP file_get_contents? My code looks like this: <?php $response = file_get_contents('https://eu.api.blizzard.com/wow/auction/data/outland?locale=en_US&access_token=mysecrettoken); $responseObject = json_decode($response, true); $a=json_decode($response,true); echo $responseObject['files'][0]['url']; php?> When I was getting file from api.battle.net before, I had no problems. Now, when I get it from api.blizzard.com and try to use json_decode it take so long. To long.ŚpiącyPazur2 Jan 11
Jan 11 SC2 Total career game count Hey, on sc2 profile endpoint is some problem with total career game count. In game i can see value 9604 but api returns value 8976. Can someone check this please? The difference is really huge. Thanks BoockieBoockie1 Jan 11
Jan 10 Use API to retrieve a player's WoW information and stats by using their Battle.net ID I would like to use a player's Battle.net ID (which I'm told is a string that looks like letters#numbers, ex. Palemoon#4567) to retrieve their information with the API and post it on an external site. Is this possible? I would like to not require them to log in with their Blizzard credentials every time this information needs to be updated. I can't find anything in the docs that explicitly says that this is possible, but it seems like the very first thing folks would want to use the API for. Could someone point me in the right direction? Thanks!Joshua2 Jan 10
Jan 9 Internal Server Error on battle.net/oauth/authorize Hi, I have an internal server error from the blizzard page https://eu.battle.net/oauth/authorize Erreur d’analyse XML : erreur de syntaxe Emplacement : https://eu.battle.net/oauth/authorize?client_id=8daeeaba4d1b4246bde81cf721215d55&scope=wow.profile&state=1370ce6156f74d0b673f9af4683b320b&redirect_uri=https://cercle.marecage-de-zangar.teamside.localhost/auth/bnet/callback&response_type=code Numéro de ligne 1, Colonne 1 : Internal Server Error ^ Any idea ? ps: it's a development project, also, my credential will be changed for production.Stigz4 Jan 9
Jan 7 Blizzard API Go Client Library Hello Everyone (specifically Gophers!), I've been busy moving over my Blizzard API Golang client library to the new developer portal (https://github.com/FuzzyStatic/blizzard) and I would appreciate any feedback, help, or suggestions! I still have some work to do! I want it to be easy to use so let me know what you guys think. -FuzzyStaticFuzzyStatic4 Jan 7
Jan 6 401 Unauthorized When i try to get data for a diablo3 account with the community api, i get this : 401 Unauthorized. Why is that ? I created my client yesterday. Request url is : https://eu.api.blizzard.com/d3/profile/madmartigan#2545/?locale=en_US&access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx where xxxxxx.... is my access token. For the {account}, we must write this , right ? -> i.e : madmartigan#2545Madmartigan2 Jan 6
Jan 6 X-Plan headers missing? In the new Blizzard API, these headers are missing that were in the Mashery API. X-Plan-Qps-Allotted X-Plan-Qps-Current X-Plan-Quota-Allotted X-Plan-Quota-Current Is there a plan to add them?ihsw0 Jan 6
Jan 6 Blizzard Shop Product API? Hello, I would like to know if it is currently possible (or in future possible) to get information regarding a store product and retrieve all it's prices and discounts via JSON or XML for the Blizzard Shop as I am making a price comparison site and would like to fetch the price of each game on the Blizzard Shop every few hours. Please let me know if this is possible, thank you!WulfGamesYT2 Jan 6
Jan 5 D3 Hero Stats missing fields Hello lads, I have been rewriting my GO code to map the new API and I found out that compared to the past version of the API some some fields have changed (like Dead became Alive, ahahah) and it is particularly striking when it comes to Hero Stats. The new JSON structure for stats is (as of today the 5th of January): Stats struct { Life float64 `json:"life"` Damage float64 `json:"damage"` Toughness float64 `json:"toughness"` Healing float64 `json:"healing"` AttackSpeed float64 `json:"attackSpeed"` Armor float64 `json:"armor"` Strength float64 `json:"strength"` Dexterity float64 `json:"dexterity"` Vitality float64 `json:"vitality"` Intelligence float64 `json:"intelligence"` PhysicalResist float64 `json:"physicalResist"` FireResist float64 `json:"fireResist"` ColdResist float64 `json:"coldResist"` LightningResist float64 `json:"lightningResist"` PoisonResist float64 `json:"poisonResist"` ArcaneResist float64 `json:"arcaneResist"` BlockChance float64 `json:"blockChance"` BlockAmountMin float64 `json:"blockAmountMin"` BlockAmountMax float64 `json:"blockAmountMax"` GoldFind float64 `json:"goldFind"` CritChance float64 `json:"critChance"` Thorns float64 `json:"thorns"` LifeSteal float64 `json:"lifeSteal"` LifePerKill float64 `json:"lifePerKill"` LifeOnHit float64 `json:"lifeOnHit"` PrimaryResource float64 `json:"primaryResource"` SecondaryResource float64 `json:"secondaryResource"` } `json:"stats"` As you can easily notice here are the fields we are not getting anymore: critDamage damageIncrease damageReduction magicFind This is a bit sad since it is very useful to calculate some metrics important to offline analysis. My question is therefore: Should we expect this is the final version, or do you expect to feed the API back with those metrics?Chocopipe0 Jan 5
Jan 4 WoW AH json file returning CORS error (Angular 6) Hi all, I am developing a Angular 6 app, and when trying to http.get the json url from the AH I get: ... When trying to: this.http.get(res.files[0].url).subscribe(... If I copy/paste the url in the browser or postman it shows the json perfectly, but the code above is return the CORS error. Any ideas/suggestions? Thanks in advance.Lango3 Jan 4
Jan 3 Blizzard Api OAuth in php So .. here is my work-in-progress php oauth api https://github.com/Ulminia/blizzard-api-oauth I have massively updated my wiki for my latest push. https://github.com/Ulminia/blizzard-api-oauth/wikiUlminia71 Jan 3
Jan 2 New SC2 endpoints (What I've found) First off thanks so much for releasing the new endpoints, and a big THANK YOU for fixing the match history bug if you have played a co-op game in recent history. That has been a thorn in my side for a very long time. After looking these endpoints over I have found a lot of data is no longer accessible via the latest endpoints. I'll list them below. I am really hoping this was just a first pass and there is more coming soon. Bugs/Technical Issues: (FIXED) GET - /sc2/player/:account simply times out (504 Gateway timeout) The api feels sluggish the first time you hit an endpoint. i.e. the first time i tried to get my ladder summary i got a 504, the second time it loaded Payload Issues, Concerns Match History: it would be nice to have a way to query games played in a date range Match History: It would be nice to add teamMember info into the payload (playerName, race, mmr, mmr change realm, region) (FIXED)Season: The season endpoint needs the startDate and endDate added back in (FIXED)Season: The season endpoint needs the seasonId added back in we need this for the league api that was just added back in. (as of the date this was added the season api does not include this) Season: It would be nice to have the maps in the rotation in the payload as well (name, map, thumbnail, game_type, etc) Player Profile (GET - /sc2/profile/:region/:realm/:id): it would be nice to remove or make optional achievements and rewards. The payload does not need to be that large (FIXED)Ladder Summary: it would be nice to have the members realm as part of the payload. Since that is necessary to get player profiles now (added on 11/28/2018) please fix or remove the highest rank finish from the profile payload, it has been out of date for a long time and if it is no longer being updated then it should be removed. New endpoint Requests: (ADDED) League Info: this endpoint is completely missing in the new api: https://us.api.battle.net/data/sc2/league/:SEASON_ID/:QUEUE_ID/:TEAM_TYPE/:LEAGUE_ID it is absolutely necessary for building a league continum for the season (new)Race Report: it would be nice to have a race report payload that mirrors what you see in game (new)Season: It would be nice to get historical data for seasons (new)General Game data: units/structures/stats it would be really cool to build an almanac about the units since this no longer exists on the main starcraft 2 site (added to list on 11/28/2018) implementation of the looking forward section from this post: https://us.battle.net/forums/en/sc2/topic/20749724960 I would be very happy with the first two items on the list being implemented.MooCow25 Jan 2
Jan 1 How to retrieve BattleNet avatar What's the path to retrieve someone's BattleNet avatar with oauth? Thank you.Nyriss3 Jan 1
Jan 1 Neural network to play arena in World of Warcraft Hi, I'm a young developper. I know PHP, JS, Python and C#. I have some experiences in neural network. I have a project : create a bot built on neural network to play arena games in World of Warcraft. I have two goals with this post : first, earn the approval from Blizzard for this project. After all, using bot is forbidden in World of Warcraft. Second, recruit a team in order to put this project together. I am looking for an expert in C# to build an API that will "talk" with the Python neural network. I am also looking for an expert in neural network to help me put together the Python neural network. If you have questions, just ask :) Have a nice day, Vestibule.Vestibule1 Jan 1
Dec 31 Expiring Tokens Question In working with the API and through reading the forums it seems to work like this: You get the user's permission (Bnet pop up) to connect The token returns with a 24 hour expiration The forums say you have a 30 day expiration My tokens only seem to live 24 hours. I have one that I'm using now as a test to figure out how to refresh it and it was generated 22-Dec-2018, here it is the 30th and it's expired (message from Bnet is 'invalid token, error 401'). How do you 'keep alive' the token for the 30 days since there is no Oauth refresh_token action? I'm ok with asking the user to permit access monthly but to ask them to do it more than that seems excessive. Now I do understand that the vast majority of the API does not require the user's token and that I can use 'client credentials' to get most of the data - but I have a case where I want to actually run through all characters on the user on a weekly basis and the only way to get all characters tied to an account is via the user token rather than the generic one.Mutfico5 Dec 31
Dec 30 Request Time Hello, I have a problem with the new API the response time is too high. (I'm using php language). I have just this code : Old URL <?php echo file_get_contents('https://eu.api.battle.net/wow/character/chants-éternels/Acham?locale=fr_FR&apikey=<APIKEY>'); Response time : 600 ms New URL <?php echo file_get_contents('https://eu.api.blizzard.com/wow/character/archimonde/Hirokumi?locale=fr_FR&access_token=<APIKEY>'); Response time : 120000 ms Do you have an idea? I have no problem directly into browser. HirokumiHirokumi5 Dec 30
Dec 29 In game Community mass whisper. We have a community for WPvP with multiple guilds. We are all hoping there is a way to make a /run macro to whisper all community members a message when our WPvP begins. We have a working one for guild, but cannot find the right info to know if we can do it for the community members in game also. Regards, SpifftSpifft1 Dec 29
Dec 27 Confusing Documentation on Default Locale The Localization section of the Regionality, Partitions, and Localization documentation (https://develop.battle.net/documentation/guides/regionality-partitions-and-localization) says that the default behaviour if no locale is specified is to return data for all locales: ... However, this doesn't seem to be the case. All of the WoW Community APIs I've tried using both the Try It tool on the developer site and manual requests from code only return en_US data when no locale is specified. Is the documentation outdated, or is the API not doing what it's supposed to? Having data for multiple locales available in a single request would be useful for me, as I'm using the API in a script that collects the names of Hunter Pet abilities in all available locales.Choonster1 Dec 27
Dec 26 Mobile Payment with Congstar stoped working I wanted to get the Anual Pass for Destiny 2 Forsaken by Mobiel Payment and it dosent accept Congstar any more. It definetly worked on the 6th of December and before because there i bought Destiny 2 Forsaken and Overwatch on the same way. Can someone help meChaos1 Dec 26
Dec 25 Relation between Item ID and Spell ID Hi guys. I'm reading the API to figure out how to make my addon identifies when a player had drink a potion or had consume an item. However, I can't find a way to match the spell it triggers with the item itself. Example: let's say my character drinks a Morning Glory Dew. By UNIT_SPELLCAST_SUCCEEDED event, I get 1137 as the spell ID triggered by this item. By looking at http://wowhead.com/spell=1137 I see that 1137 is a "drink" spell, but it's not bound to Morning Glory Dew item. I also believe that other items share the same spell. Do you guys now how to get the item ID whenever my character uses an item (potions, scrolls, etc)? PS.: if there's another strategy than UNIT_SPELLCAST_SUCCEEDED event, I'll more than happy to know. That was only my starting point. Thanks!AdrianoCastr2 Dec 25
Dec 25 See friend added date? Just wondering if I am able to see how long someone has been on my friends list. I have been playing Overwatch with a group of friends I met in game for quite a few months and I'm curious of exactly how long it has been. Is there a way to check how long we have been friends or is that not a feature?MajorMystery6 Dec 25
Dec 24 WoW API - Special characters problem After a few days looking around every corner of the Internet, I've decided to open a topic here. I'm designing a Discord bot in Java, which uses the WoW API to get Guild's info. The problem is that (At least in my case) many of my guild members have special characters in their names (like á, é, í, ó ú, ä, â, etc) and I can't check if theirs Discord name equals theirs character name. I saw a lot of post on the web, but no one worked for me. I've tried to encode/decode from Latin1 to UTF-8 and viceversa, tried with Unicode, and a lot of things. Is there a way to verify if both names matches? My character's name is Ávha. The input I get from the API is something like Ã?vha and the input from Discord is ?vha (encoding as UTF-8). I found no way no compare them. For what I saw, is some kind of "API problem". Saw some 2017 posts with a similar problem and maybe a solution, but explained in PHP, and I have zero idea about that. Im not very familiar with Charset. This is my first time using an API and Http Requests. Sorry for the inconventients, and thanks in advance.DeMaa4 Dec 24