import requests
code = """
return API.users.get({
"user_ids": id1, id2, id3,
"v": "5.122"
});"""
r = requests.post(
url="https://api.vk.com/method/execute",
data={
"code": code,
"access_token": "здесь токен",
"v": "5.122"
}
)
response_data = r.json()