Build an economic release watchlist in Google Sheets with Google Apps Script. Load dates, countries, impact ratings and available forecast/result fields into your spreadsheet, then refresh the data on a schedule that suits your workflow. This guide includes a ready-to-run script and a private place to store your API key.

Contents
This tutorial’s forecast/result fields and broader date range use paid API access. Your own Apps Script can also consume Free Developer’s permitted schedule JSON within its window and limits; Free does not include the paid Data explorer or its export tools.
Connect your Finance Calendar account
Use a verified account key for authenticated data requests, in X-API-Key or Authorization: Bearer. Choose Free Developer for its bounded schedule JSON or a paid plan for numerical figures, wider dates, richer routes and tools. The OpenAPI schema, current product offer and fixed recorded sample are public without a key. Create and manage keys in your account; anonymous key creation is not supported.
Browse the public economic calendar free. Connect apps and AI tools with paid API access from US$9.99/year. Starter includes 1,000 requests per UTC day and 25,000 per UTC calendar month. Build is US$9.99/month or US$95.90/year, with 100,000 requests per UTC day. Scale is US$29.00/month or US$278.40/year, with 1,000,000 requests per UTC day and the complete current dataset download. Free Developer provides 100 successful schedule JSON responses per UTC calendar month, up to 10 per UTC day, with one key after email verification. Use /calendar and /today for economic-release and central-bank schedules from UTC today through today+6, with country/impact filters, bounded date narrowing and up to 20 records per response. The allowance renews monthly; no card, fixed expiry or automatic paid subscription. Figures, history, wider dates/routes, CSV/ICS, hosted MCP, Data explorer and webhooks require a paid plan. Personal and customer-facing projects are allowed within these limits and applicable source terms. Annual prices are charged upfront. Paid plans renew at their selected interval until cancelled; applicable tax is included. Linked keys share one account allowance.
Inspect the recorded sample · Compare current plans. Existing subscription agreements and paid-through migration access retain their confirmed terms.
Keep keys in private server or application configuration. Do not put them in public HTML, client JavaScript, spreadsheet cells, iframe URLs or query strings. For the shell examples below, enter your real key privately:
read -r -s FC_API_KEY
export FC_API_KEY
1. Connect your API key
Create and verify your Finance Calendar account, then create a key. In your spreadsheet open Extensions → Apps Script. In the Apps Script project settings, add a Script property named FC_API_KEY with your real key as its value. Keep it out of the source code.
Script properties are shared across users of that script. Restrict project/editor access to people you trust with this credential; storing it here does not make it safe from other script editors. See Google’s Properties service guide.
2. Run the authenticated refresh
Paste this function into the project, save it, and run refreshFinanceCalendar from the script editor. Review and authorize the permissions Google requests. The function writes one returned CSV page to a tab named Calendar after validating the response, preserving the prior sheet if the request fails.
function refreshFinanceCalendar() {
const key = PropertiesService.getScriptProperties().getProperty("FC_API_KEY");
if (!key) throw new Error("Set FC_API_KEY in this project's Script properties");
const params = { country: "US,GB", impact: "high", limit: "100", format: "csv" };
const query = Object.keys(params).map(k => encodeURIComponent(k) + "=" + encodeURIComponent(params[k])).join("&");
const response = UrlFetchApp.fetch("https://www.financecalendar.com/wp-json/fc/v1/calendar?" + query, {
headers: { "X-API-Key": key }, muteHttpExceptions: true, followRedirects: false
});
const status = response.getResponseCode();
if (status !== 200) throw new Error("Calendar API returned HTTP " + status + "; do not replace the existing sheet");
const rows = Utilities.parseCsv(response.getContentText());
if (!rows.length || !rows[0].length) throw new Error("No usable CSV returned");
const width = rows[0].length;
if (rows.some(row => row.length !== width)) throw new Error("CSV column count changed");
const safeRows = rows.map(row => row.map(value => {
const numeric = /^[+-]?\d+(?:\.\d+)?$/.test(value);
return !numeric && /^[\s]*[=+@-]/.test(value) ? "'" + value : value;
}));
const book = SpreadsheetApp.getActiveSpreadsheet();
const sheet = book.getSheetByName("Calendar") || book.insertSheet("Calendar");
sheet.clearContents();
sheet.getRange(1, 1, safeRows.length, width).setValues(safeRows);
}
UrlFetchApp supports request headers; Range.setValues writes the two-dimensional values. This example does not publish a web app or expose a public proxy.
3. Filters, date windows and pagination
Change the params object to select country, impact, series, category or timezone. For example set series: "fomc" or category: "market-holidays". The default is today to 14 days ahead; pass explicit from and to dates for a different window. A calendar request permits at most a 92-day date difference and 500 rows. This example requests one page of 100 rows. For complete paging, use the JSON response’s count/total and offset in a deliberate loop, or the authenticated Python client’s pagination helper; do not assume this first page is the full dataset.
4. Keep your watchlist updated
Run the function manually or configure a time-driven trigger in Apps Script after testing it. Each authenticated API request uses the effective account allowance. Choose a refresh interval appropriate to your use and Google’s own quotas; a snapshot generation time does not prove every publisher result is current. Handle 429 and Retry-After without repeatedly retrying in a tight loop.
5. JSON endpoints and Excel
For /next, /series, /holidays or /market-status, use the same header with UrlFetchApp and parse the JSON response. In Excel use an authenticated server-side integration or an import tool capable of storing a private header credential. Do not reuse anonymous IMPORTDATA-style URLs or put the key in a shared workbook.
Moving from an IMPORTDATA formula?
Use the Apps Script example above to send your private API key in a request header. Store the key in Script properties rather than spreadsheet cells or URLs.
Connection errors and retry behaviour
Missing or invalid credentials return 401; revoked or disallowed access returns 403; exhausted allowance returns 429. Key validation or data unavailability can return 503. Respect Retry-After when supplied. Credentialed responses are private/no-store; do not treat them as public CDN content. Retain Finance Calendar attribution and each record’s source rights.
6. Coverage, full datasets and attribution
Unknown times and missing consensus or actual values must stay unknown. Preserve source links, stale flags and record-level rights. Active Starter, Build and Scale subscriptions include filtered browser CSV/JSON exports; the complete current snapshot file is available only to an active Scale account through the authenticated full-export route. A current snapshot is not a point-in-time archive.
Keep a visible link to Finance Calendar in your sheet and retain applicable source credits and licensing requirements. Software licences do not relicense upstream data. Review coverage and plans.
About Finance Calendar
Economic release schedules, market calendars and practical guides to using the data.
About the site

