code: def get_possible_app_ids():
      
  
      try:
          req = requests.get(
              "https://clients3.google.com/cast/chromecast/device/baseconfig")
          data = json.loads(req.text[4:])
  
          return [app['app_id'] for app in data['applications']] + \
              data["enabled_app_ids"]
  
      except ValueError:
          # If json fails to parse
          return []
docs: Returns all possible app ids.