The TargetDummy CLI fetches data from the Battle.net API and logs the JSON string to the console.
The CLI is called with td
or targetdummy
and your Battle.net Developer API key available through your environment variables.
$ BATTLENET_CLIENT_ID=<apikey> td request <game> <resource> [--options]
All request commands accept origin
(-o
) and locale
(-l
) options.
--origin, -o
String- choices:
us
,eu
,kr
,tw
,sea
,cn
- default:
us
- choices:
--locale, -l
- String- choices: depends on which
origin
is specified - default: the primary language code for the specified
origin
- see the API documentation for reference
- choices: depends on which
$ td request d3 <resource>
--key, -k
String - the key of the data resource- choices:
artisan
,follower
,item
- choices:
--id, -i
String - the ID of the data resource- artisan:
blacksmith
,jeweler
,mystic
- follower:
templar
,scoundrel
,enchantress
- item: the item ID
- artisan:
--id, -i
Number - the era ID--leaderboard, -b
String - the leaderboard ID--token, -t
String - an authenticated user access token
--battletag, -b
String - the battletag of the user profile--hero, -i
Number - the hero ID
--id, -i
Number - the era ID--token, -t
String - an authenticated user access token
$ td request sc2 <resource>
--key, -k
String - the key of the data resource- choices:
achievements
,rewards
- choices:
--id, -i
Number - the ladder ID
--key, -k
String - the key of the profile resource--id, -i
Number - the user profile ID--name, -n
String - the user profile name--region, -r
[Number] - the user profile region- default:
1
- default:
$ td request wow <resource>
--id, -i
Number - the achievement ID
--realm, -r
String - the realm slug
--id, -i
[Number] - the boss ID- omit for all bosses
--realm, -r
String - the realm slug
--realm, -r
String - the realm of the character--name, -n
String - the name of the character--fields, -f
[Array] - one or more additional character data fields- choices:
profile
,achievements
,appearance
,audit
,feed
,guild
,hunterPets
,items
,mounts
,pets
,petSlots
,professions
,progression
,pvp
,quests
,reputation
,statistics
,stats
,talents
,titles
- default:
profile
- choices:
--key, -k
String - the key of the data resource- choices:
battlegroups
,character:achievements
,character:classes
,character:races
,guild:achievements
,guild:rewards
,guild:perks
,item:classes
,talents
,pet:types
- choices:
--realm, -r
String - the realm of the guild--name, -n
String - the name of the guild--fields, -f
[Array] - one more more additional guild data fields- choices:
profile
,achievements
,members
,news
,challenge
- default:
profile
- choices:
--id, -i
Number - the item ID--set, -s
Boolean - whether the item ID is for a set
- no options
--key, -k
String - the key of the pet data- choices:
list
,ability
,species
,stats
- default:
list
- choices:
--id, -i
[String] - the pet abilities or species ID--level, -e
[Number] - the pet level--breed, -d
[Number] - the pet breed--quality, -q
[Number] - the pet quality
--bracket, -b
String - the PvP bracket ID- choices:
2v2
,3v3
,5v5
,rgb
- choices:
--id, -i
Number - the quest ID
--realms, -r
[Array] - One or more realm slugs- omit for all realms
--id, -i
Number - the recipe ID
--id, -i
Number - the spell ID
--id, -i
[Number] - the zone ID- omit for all zones