spreadsheets.currentonlyCurrent spreadsheet only
Read user-selected inputs needed for an invoked feature and write formulas, requested market-data tables, and conversion outputs only in the spreadsheet where the add-on is open.
Available on Google Workspace Marketplace
Add source-aware oil, gas, refined-product, futures, marine-fuel, and drilling data to the spreadsheet where you work—without copying an API key into a cell or URL.
Quick start
=OILPRICE_PRICE("WTI_USD") in any cell.In a cell
=OILPRICE_PRICE("WTI_USD")Latest WTI_USD from the API
$99.00per barrel
As of 2026-10-16 20:46 UTC
Add =OILPRICE_INFO("WTI_USD") beside it to keep the source timestamp and freshness in the sheet.
What the add-on does
OAuth permissions
spreadsheets.currentonlyRead user-selected inputs needed for an invoked feature and write formulas, requested market-data tables, and conversion outputs only in the spreadsheet where the add-on is open.
script.external_requestSend HTTPS GET requests to api.oilpriceapi.com for market data the user explicitly requests. Requests use the user's OilPriceAPI key and reviewed identifiers or filters.
script.container.uiDisplay the add-on menu, API-key sidebar, price-selection dialog, help messages, and recovery actions inside the current spreadsheet.
Google may display default email and profile identity scopes in the Cloud configuration. OilPriceAPI for Google Sheets™ does not use those identity scopes for product behavior and does not read or store a user's Google email or profile.
Formula quickstart
=OILPRICE_PRICE("WTI_USD")=OILPRICE_INFO("WTI_USD")=OILPRICE_STATUS("WTI_USD")=OILPRICE_UNIT("WTI_USD")=OILPRICE_CODES()=OILPRICE_GET("/v1/prices/latest","by_code=WTI_USD")OilPriceAPI's use of information received from Google Workspace APIs adheres to the Google API Services User Data Policy, including the Limited Use requirements.
Install OilPriceAPI for Google Sheets™ from Google Workspace Marketplace, open the add-on from the Extensions menu, choose Configure API Key and paste your OilPriceAPI key. Then type =OILPRICE_PRICE("WTI_USD") in a cell, or any code listed by =OILPRICE_CODES().
Yes. The add-on is listed on Google Workspace Marketplace and installs from there or from Extensions > Add-ons > Get add-ons in Google Sheets.
Yes. Formulas call the OilPriceAPI REST API with your key. A free key includes 50 requests per day; dataset access depends on your plan.
It works only in the spreadsheet where the user opens it. It can read user-selected inputs needed for an invoked feature and write requested OilPriceAPI results. It does not request broad Google Drive access.
Requests send the user's OilPriceAPI key and the reviewed market identifiers or filters needed for the requested data. The add-on does not send the user's general spreadsheet contents.
Yes. IMPORTDATA can read the API's CSV output directly, with the trade-off that the key sits in the formula URL. The Google Sheets guide on our blog walks through it.
The add-on is published on Google Workspace Marketplace. Questions about permissions, data handling, or installation can be sent to [email protected]. A longer walkthrough, including the IMPORTDATA option, is in how to get oil prices in Google Sheets.
Google Sheets™ is a trademark of Google LLC.