old_contents: import requests
  import json
  
  BASE_URL = "https://api.majestic.com/api/json"
  
  
  def get(cmd, params):
      querydict = {'cmd': cmd}
      querydict.update(BASE_PARAMS)
      querydict.update(params)
      response = requests.get(BASE_URL, params=querydict)
      return json.loads(response.text)
  
  if __name__ == '__main__':
      response = get(cmd='GetBackLinkData',
                     params={'item': 'http://boingboing.net',
                             'Count': '5',
                             'datasource': 'fresh'})
      print(response)
  
new_contents: import os
  import requests
  import json
  
  BASE_URL = "https://api.majestic.com/api/json"
  BASE_PARAMS = {'app_api_key': os.environ.get('THEAPIKEY')}
  
  def get(cmd, params):
      querydict = {'cmd': cmd}
      querydict.update(BASE_PARAMS)
      querydict.update(params)
      response = requests.get(BASE_URL, params=querydict)
      return json.loads(response.text)
  
  if __name__ == '__main__':
      response = get(cmd='GetBackLinkData',
                     params={'item': 'http://boingboing.net',
                             'Count': '5',
                             'datasource': 'fresh'})
      print(response)
  
subject: Fix api poking example.