old_contents: import base64
  import json
  
  import requests
  import time
  
  from .utils import currenttimemillis_to_python_datetime
  
  
  __all__= [
      'get_statuses',
      'get_uuid',
      'get_usernames',
      'get_profiles',
      'get_detailed_profile',
      'get_blocked_server_hashes'
  ]
  
  
  def get_statuses():
      return requests.get('https://status.mojang.com/check/').json()
  
  
  def get_uuid(username, unix_timestamp=None):
      if unix_timestamp is None:
          unix_timestamp = int(time.time())
      return requests.get(
          'https://api.mojang.com/users/profiles/minecraft/{}?at={}'.format(username, unix_timestamp)
      ).json()
  
  
  def get_usernames(uuid):
      username_infos = requests.get('https://api.mojang.com/user/profiles/{}/names'.format(uuid)).json()
      for username_info in username_infos:
          try:
              changed_to_at = username_info['changedToAt']
          except KeyError:
              continue
          else:
              username_info['changedToAt'] = currenttimemillis_to_python_datetime(changed_to_at)
      return username_infos
  
  
  def get_profiles(*usernames):
      return requests.post(
          url='https://api.mojang.com/profiles/minecraft',
          headers={
              b'Content-Type': b'application/json'
          },
          data=json.dumps(list(usernames))
      ).json()
  
  
  def get_detailed_profile(uuid):
      response = requests.get('https://sessionserver.mojang.com/session/minecraft/profile/{}'.format(uuid))
      response.raise_for_status()
      body = response.json()
      for property in body['properties']:
          if property['name'] == 'textures':
              skin_info = json.loads(base64.decodebytes(property['value'].encode()).decode())
              timestamp = skin_info['timestamp']
              skin_info['timestamp'] = currenttimemillis_to_python_datetime(timestamp)
              property['value'] = skin_info
      return body
  
  
  def get_blocked_server_hashes():
      response = requests.get('https://sessionserver.mojang.com/blockedservers')
      response.raise_for_status()
      sha1_hashes = response.content.split(b'\n')
      return sha1_hashes
  
new_contents: import base64
  import json
  
  import requests
  import time
  
  from .utils import currenttimemillis_to_python_datetime
  
  
  __all__= [
      'get_statuses',
      'get_uuid',
      'get_usernames',
      'get_profiles',
      'get_detailed_profile',
      'get_blocked_server_hashes',
      'get_statistics'
  ]
  
  
  def get_statuses():
      return requests.get('https://status.mojang.com/check/').json()
  
  
  def get_uuid(username, unix_timestamp=None):
      if unix_timestamp is None:
          unix_timestamp = int(time.time())
      return requests.get(
          'https://api.mojang.com/users/profiles/minecraft/{}?at={}'.format(username, unix_timestamp)
      ).json()
  
  
  def get_usernames(uuid):
      username_infos = requests.get('https://api.mojang.com/user/profiles/{}/names'.format(uuid)).json()
      for username_info in username_infos:
          try:
              changed_to_at = username_info['changedToAt']
          except KeyError:
              continue
          else:
              username_info['changedToAt'] = currenttimemillis_to_python_datetime(changed_to_at)
      return username_infos
  
  
  def get_profiles(*usernames):
      return requests.post(
          url='https://api.mojang.com/profiles/minecraft',
          headers={
              b'Content-Type': b'application/json'
          },
          data=json.dumps(list(usernames))
      ).json()
  
  
  def get_detailed_profile(uuid):
      response = requests.get('https://sessionserver.mojang.com/session/minecraft/profile/{}'.format(uuid))
      response.raise_for_status()
      body = response.json()
      for property in body['properties']:
          if property['name'] == 'textures':
              skin_info = json.loads(base64.decodebytes(property['value'].encode()).decode())
              timestamp = skin_info['timestamp']
              skin_info['timestamp'] = currenttimemillis_to_python_datetime(timestamp)
              property['value'] = skin_info
      return body
  
  
  def get_blocked_server_hashes():
      response = requests.get('https://sessionserver.mojang.com/blockedservers')
      response.raise_for_status()
      sha1_hashes = response.content.split(b'\n')
      return sha1_hashes
  
  
  def get_statistics(keys=None):
      if keys is None:
          keys = [
              'item_sold_minecraft',
              'prepaid_card_redeemed_minecraft',
              'item_sold_cobalt',
              'item_sold_scrolls'
          ]
      response = requests.post(
          url='https://api.mojang.com/orders/statistics',
          headers={
              b'Content-Type': b'application/json'
          },
          data=json.dumps({
              'metricKeys': keys
          })
      )
      response.raise_for_status()
      return response.json()
  
subject: Add get statistics call