# Query$list\_variables

### Query$<mark style="color:purple;">list\_variables</mark>(*max\_results=NULL*) → **list<**[**Variable**](https://docs.redivis.com/api/client-libraries/redivis-r/reference/variable)**>**

Returns a list of variables associated with the query's output. Each entry in the list will be an instance of a [Variable](https://docs.redivis.com/api/client-libraries/redivis-r/reference/variable), whose properties are populated with the values on the [variable.list resource definition](https://docs.redivis.com/api/resource-definitions/variable).

### **Parameters:**

**`max_results` :&#x20;*****int, default NULL***\
If specified, will only return up to max\_results uploads

### **Returns:**&#x20;

**list<**[**Variable**](https://docs.redivis.com/api/client-libraries/redivis-r/reference/variable)**>**
