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

  1. Log into Rillet and go to Settings > API Access

  2. Click "Create API Key" and give it a name

  3. Copy the key from the pop-up and save it in a safe place

circle-info

Note: The key will not be shown again once generated

Step 2 - Set Up Google Sheets

  1. Open a new Google Sheet

  2. Go to Extensions > Apps Script

  1. Delete any existing code and paste the script provided below

    1. Note: This is an example of how the data can be displayed. Some customization may be desired on a case by case basis.

  1. Replace YOUR_API_KEY_HERE with the API key generated in step 1 above

  2. Update year to the fiscal year you want to pull

Step 3 - Run the Script

  1. Click Run at the top of the AppScript page

  1. Google will ask you to authorize the script - click through the permissions prompt

  2. Wait ~15-20 seconds for all API calls to complete

  3. Switch back to your Google Sheet tab - data should be populated

Step 4 - Validate the Data

  1. Check that all data has populated from Rillet

  2. Verify the Period Total column matches what you see in Rillet's Income Statement report for the same date range

  3. Spot check a few monthly figures against Rillet directly

Step 5 - Set Up Automatic Refresh (Optional)

  1. In Apps Script, click the clock icon in the left sidebar (Triggers)

  1. Click Add Trigger in the bottom right

  1. Set function to importIncomeStatement, event type to "Time-driven", and pick your desired frequency (daily, weekly, monthly)

  2. 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