# queryStaticProfileData

Returns metadata for an individual's account.

const StarCraft2API = require('starcraft2-api');

const sc2api = new StarCraft2API({
  region: 'us',
  clientId: 'client id',
  clientSecret: 'client secret'

const data = await sc2api.queryPlayerAccount('123456');


// Do something with data

# Parameters

  • accountId (string / number) - the ID of the account for which to retrieve data. As stated in Blizzard Battle.net docs, account Id is a player's profile id which is retrieved via GET /oauth/userinfo. This is not the same as profileId used across different API endpoints for SC2.
Last Updated: 8/3/2019, 4:41:00 PM