import json
import requests
url ='service's api url'
params = {
"clientKey":"67b6bcbb1a728ea8d563de6d169a2057",
"taskId": 7654321
}
answer = requests.get(url, params=params)
answer_body = json.loads(answer.text)
result = answer_body['solution']['text']