Can't get Title in WoW Armory APi

👨🏽‍💻 Can’t get Title in WoW Armory APi – Solution 2022

What is WoW Armory?

The Armory is a searchable database of information for World of Warcraft. Since the Armory pulls its data from the actual game servers, it is the most comprehensive database on the characters, arena teams, and guilds of World of Warcraft in existence.

Host Names

For all regions except China, the API host name follows the format {region}.api.blizzard.com, where {region} is one of us | eu | kr | tw. For China, the host name is gateway.battlenet.com.cn. For more information, see Regionality and APIs.

Namespaces

The World of Warcraft profile APIs

require a namespace as part of every request. Each endpoint below lists the correct namespace to use as a parameter. A namespace can be submitted as a header (Battlenet-Namespace: {namespace}) or as a query parameter (?namespace={namespace}). For more information, see World of Warcraft Namespaces.

 

 

Also, read

 

    $(window).load(function getSite(){
            $.ajax({                
                url: "http://eu.battle.net/api/wow/character/server/character?fields=titles&jsonp=GoGet",
                type: 'GET',
                dataType: 'jsonp',
                success: UpdateTitle
                });
            }

        );  

        function UpdateTitle(response) {
            if (response.titles) {
                for (var i = 0; i < response.titles.length; i++) {
                  if (response.titles[i].selected === true) {
                      $("#title").html(response.titles[i].name);
                      break;
                  }
                }
            }                  
        }