import requests
import json

url = "https://api.yaxun.top/index.php?s=mobile/Video/getList"
params = {
    "cid": 1,
    "page": 12,
    "api_version": 1,
    "appid": "wx479b517622b7875e",
    "version": "1.9.1",
    "env_version": "release"
}

headers = {
  'Host': 'api.yaxun.top',
  'ik': 'b326b5062b2f0e69046810717534cb09',
  'xweb_xhr': '1',
  'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 MicroMessenger/6.8.0(0x16080000) NetType/WIFI MiniProgramEnv/Mac MacWechat/WMPF MacWechat/3.8.5(0x13080510)XWEB/1100',
  'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDI5NTUwNDYsIm5iZiI6MTcwMjk1NTA0NiwiZXhwIjoxNzAyOTYyMjQ2LCJkYXRhIjp7InVzZXJfaWQiOiIyNTMzMTkyNTQifX0.UGj965n2hmfBmr40kZvBZ8Tz_NIpCMD0XDTnWGtx7cA',
  'Content-Type': 'application/json',
  'Accept': '*/*',
  'Sec-Fetch-Site': 'cross-site',
  'Sec-Fetch-Mode': 'cors',
  'Sec-Fetch-Dest': 'empty',
  'Referer': 'https://servicewechat.com/wx479b517622b7875e/4/page-frame.html',
  'Accept-Language': 'en-US,en;q=0.9'
}

response = requests.request("GET", url, headers=headers, params=params)

# print(response.text)
print(json.dumps(response.json(), ensure_ascii=False, indent=4))