import requests import re portal_url = "https://sa-deployment-portal.cmd.navi-tech.in" s = requests.Session() # tbd: replace it with token cookie = "" x_xsrf_token = "" s.headers.update({'cookie': cookie, 'x-xsrf-token': x_xsrf_token}) list_teams_path = "/api/team" r = s.get(portal_url + list_teams_path) manifest_list = r.json() # print(manifest_list) for manifest in manifest_list: print(manifest['name'])