Get process variables from completed processes by REST API


I have mapped a process in Camunda. Now I want that from each process run the completed tasks are displayed with time and name. For this I have already searched for API queries and found the following:

So far I could not assign the process variables to the tasks within the process. Maybe someone here knows how this works.