Connecting Rillet to Google Sheets
Rillet's Reporting API allows you to pull financial data directly into Google Sheets, giving your team a live, customizable view of your financials without any manual exports. This guide walks through how to connect Rillet to Google Sheets using Google Apps Script - no coding experience required beyond copying and pasting a script. Once set up, the sheet can be refreshed on demand or scheduled to update automatically, keeping your data current with minimal ongoing effort.
Step 1 - Generate an API Key
Log into Rillet and go to Settings > API Access
Click "Create API Key" and give it a name
Copy the key from the pop-up and save it in a safe place
Note: The key will not be shown again once generated
Step 2 - Set Up Google Sheets
Open a new Google Sheet
Go to Extensions > Apps Script

Delete any existing code and paste the script provided below
Note: This is an example of how the data can be displayed. Some customization may be desired on a case by case basis.
Replace YOUR_API_KEY_HERE with the API key generated in step 1 above
Update year to the fiscal year you want to pull
Step 3 - Run the Script
Click Run at the top of the AppScript page

Google will ask you to authorize the script - click through the permissions prompt
Wait ~15-20 seconds for all API calls to complete
Switch back to your Google Sheet tab - data should be populated
Step 4 - Validate the Data
Check that all data has populated from Rillet
Verify the Period Total column matches what you see in Rillet's Income Statement report for the same date range
Spot check a few monthly figures against Rillet directly
Step 5 - Set Up Automatic Refresh (Optional)
In Apps Script, click the clock icon in the left sidebar (Triggers)

Click Add Trigger in the bottom right

Set function to importIncomeStatement, event type to "Time-driven", and pick your desired frequency (daily, weekly, monthly)
The sheet will now refresh automatically on that schedule
Notes
If you see a 401 error, your API key is likely incorrect - regenerate and re-paste it
The sheet is overwritten every time the script runs
Feel free to have Claude adjust some of the code below to adjust formatting!
Last updated