You can't use the runtime/tasks/{taskId} for this to fetch both data and variable. However, you can use GET runtime/tasks?processInstanceId=123&taskDefinitionKey=taskImInterestedIn&includeTaskVariables=true. This will return all matching tasks (in this case, only one) including the task-variables