Blog / How-to
How to get Dutch TTF gas prices in Google Sheets
To pull the Dutch TTF gas price into Google Sheets, install OilPriceAPI for Google Sheets, paste your API key in the add-on's Configure API Key pane, and enter:
=OILPRICE_PRICE("DUTCH_TTF_EUR")The value is in euros per megawatt hour (EUR/MWh), the unit TTF trades in. Put =OILPRICE_INFO("DUTCH_TTF_EUR") next to it so the sheet keeps the source timestamp and freshness state with the number.
By OilPriceAPI · Published · Code and request checked against the live API on Nov 27, 2026
The workflow
Install OilPriceAPI for Google Sheets
Extensions → Configure API Key
The key stays out of cells.
=OILPRICE_PRICE("DUTCH_TTF_EUR")
EUR per MWh.
=OILPRICE_INFO("DUTCH_TTF_EUR")
Source timestamp and freshness beside the value.
Read the timestamp before using the value
Set up the add-on
- Create an OilPriceAPI account and copy your key from the dashboard.
- Install OilPriceAPI for Google Sheets from Google Workspace Marketplace, then open it from the Extensions menu.
- Choose Configure API Key and paste the key. The add-on keeps it out of cell formulas, so it does not show up for anyone reading the sheet.
- Run
=OILPRICE_CODES()once and check thatDUTCH_TTF_EURis in the list for your key.
The full setup, including sharing a sheet that uses your key, is in how to get oil prices in Google Sheets. The steps are the same for every code; only the code changes.
TTF formulas you can paste into cells
=OILPRICE_PRICE("DUTCH_TTF_EUR")The latest TTF value as a number, in euros per megawatt hour. Use it in calculations.
=OILPRICE_INFO("DUTCH_TTF_EUR")Spills a small table with the source, the source timestamp, the unit and the freshness state for the same value.
=OILPRICE_UNIT("DUTCH_TTF_EUR")The currency and unit as text (EUR/mwh), so a label in the sheet cannot drift from the data.
=OILPRICE_CODES()The commodity codes your key can read. Check that DUTCH_TTF_EUR is in the list before you build on it.
A small layout that keeps the value, its unit and its timestamp together:
A1 Dutch TTF (EUR/MWh) B1 =OILPRICE_PRICE("DUTCH_TTF_EUR")
A2 Unit B2 =OILPRICE_UNIT("DUTCH_TTF_EUR")
D1 =OILPRICE_INFO("DUTCH_TTF_EUR") (spills down and right from D1)Units: EUR/MWh, not $/MMBtu
DUTCH_TTF_EUR is quoted in euros per megawatt hour. Henry Hub and most US gas prices are in US dollars per million British thermal units. Do not put the two side by side without converting both the currency and the energy unit. The arithmetic, with a worked example, is in how to convert TTF from €/MWh to $/MMBtu.
Refresh and check the result
TTF is collected during European market hours. Outside them, and at weekends, the formula returns the last observation, with its own timestamp. Read the source timestamp and freshness state from OILPRICE_INFO before you use the number in a report: a cell returning a value does not prove the market moved today.
If a formula does not return a price
Reopen Configure API Key if the key is missing or revoked. If DUTCH_TTF_EUR is not in OILPRICE_CODES(), your key cannot read it; check your plan. If you hit a request limit, wait for the retry window and recalculate less often.
Related guides
- Dutch TTF gas price: the live page for the same series, with history.
- European gas prices: other European hubs.
- Google Sheets add-on details: scope and add-on status.
Try it with your own key
New accounts get a 7-day trial with 10,000 requests and no credit card. After that, the Free plan is 50 requests/day. The Developer plan is $19/month for 10,000 requests/month.
Sources
- Live calls to /v1/prices/latest?by_code=DUTCH_TTF_EUR and /v1/commodities, Nov 27, 2026.
- OilPriceAPI for Google Sheets custom functions (OILPRICE_PRICE, OILPRICE_INFO, OILPRICE_UNIT, OILPRICE_CODES), read Nov 27, 2026.