Examples - Excel
Excel import data
Selecting data to export
In the dRofus client, go to Reports and Exports → Excel exports. Find the relevant export to use as starting point. In the example below we want to get a list of rooms with a few relevant properties;
![](../../../__attachments/1353156079/image-20221124-132533.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
List of included properties for the root entity Rooms
Click ‘Power query’ to access the related API request URI and API key
![](../../../__attachments/1353156079/image-20221124-133257.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
The API request URI and API key will be used for the query and authentication in Excel
Connect and authenticate in Excel
Create a new Excel-sheet, and select Data → From Web
![](../../../__attachments/1353156079/image-20221124-133831.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
Enter the API request URI as shown in the image below.
![](../../../__attachments/1353156079/image-20221124-134000.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
First time you use the API you will be asked to authenticate. Use Basic as authentication method. In the field for “Password”, paste in the API key as shown in the dRofus power query dialogue. Leave “User name” field blank.
![](../../../__attachments/1353156079/image-20221124-135830.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
Creating your report
The data will initially be shown in one column. To expand data to a table Expand data to Table select Convert → To Table in the upper left side of the Excel query window and expand columns (optional).
![](../../../__attachments/1353156079/image-20221124-140042.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
![](../../../__attachments/1353156079/image-20221124-140242.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
Close And Load to fill your Excel spreadsheet with data.
![](../../../__attachments/1353156079/image-20221124-140510.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)
You now have live data from API in Excel. To refresh data from source, right-click anywhere and select Refresh.
![](../../../__attachments/1353156079/image-20221124-140636.png?inst-v=0afdfd47-3bc6-4c62-adaf-adf72ef5899e)