How to Get Real-Time Gold and Silver Prices in IFTTT

Step-by-step guide on integrating GoldAPI.io Price Call in IFTTT applets

Integrating GoldAPI.io with IFTTT

IFTTT is useful when you want simple automation around live precious metals prices, such as alerts, notifications, or lightweight data routing.

The practical approach is to call GoldAPI.io from a small backend or serverless endpoint, then connect that endpoint to IFTTT Webhooks. This keeps your GoldAPI.io key private.

What you need

  1. An IFTTT account.
  2. A GoldAPI.io API key.
  3. An IFTTT applet that uses Webhooks.
  4. A backend endpoint or serverless function that calls GoldAPI.io.

Step 1: Create a backend price endpoint

Create an endpoint on your backend, for example:

https://example.com/api/gold-price

That endpoint should call GoldAPI.io server-side:

app.get('/api/gold-price', async (req, res) => {
  const response = await fetch('https://www.goldapi.io/api/price/XAU/USD?melt_price=false&currency_info=false', {
    headers: {
      'x-access-token': process.env.GOLDAPI_API_KEY,
      'Content-Type': 'application/json'
    }
  });

  if (!response.ok) {
    res.status(response.status).json({ error: 'Price unavailable' });
    return;
  }

  const data = await response.json();

  res.json({
    value1: data.price,
    value2: data.bid,
    value3: data.ask
  });
});

IFTTT Webhooks commonly use value1, value2, and value3, so this shape is convenient for later applet actions.

Step 2: Create an IFTTT Webhooks trigger

In IFTTT, create an applet and choose:

Webhooks -> Receive a web request

Use an event name such as:

gold_price_update

Step 3: Send data to IFTTT

From your backend or scheduled job, call the IFTTT Webhooks endpoint:

const iftttKey = process.env.IFTTT_WEBHOOK_KEY;

const priceResponse = await fetch('https://example.com/api/gold-price');
const priceData = await priceResponse.json();

await fetch(`https://maker.ifttt.com/trigger/gold_price_update/with/key/${iftttKey}`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify(priceData)
});

Step 4: Configure the IFTTT action

After the Webhooks trigger, choose an action such as:

  • send an email
  • send a mobile notification
  • add a row to Google Sheets
  • post to Slack or Discord through another connected service

In the action message, use:

Gold price: {{Value1}}
Bid: {{Value2}}
Ask: {{Value3}}

Example workflow

  1. A scheduled job runs every hour.
  2. Your backend calls GoldAPI.io for XAU/USD.
  3. Your backend sends value1, value2, and value3 to IFTTT Webhooks.
  4. IFTTT sends a notification, email, or spreadsheet update.

Price threshold alerts

If you only want alerts above or below a target price, add the condition before calling IFTTT:

if (priceData.value1 > 2400) {
  await fetch(`https://maker.ifttt.com/trigger/gold_price_update/with/key/${iftttKey}`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify(priceData)
  });
}

Security note

Do not put your GoldAPI.io key in an IFTTT public webhook URL, browser script, or shared applet documentation. Keep it on your backend and rotate the key if it is exposed.

Conclusion

IFTTT works well for simple GoldAPI.io automations. A small backend endpoint and one Webhooks applet are enough to turn real-time gold and silver prices into alerts, messages, or spreadsheet updates.

GoldAPI.io Developer FAQ

Helpful answers for developers working with precious metals price data.

Can I use GoldAPI.io price API examples in production?

Yes. GoldAPI.io API examples can be used in production applications with your API key. Developers can integrate real-time gold, silver, and precious metals prices into websites, trading platforms, and financial tools.

Does GoldAPI.io support multiple currencies for gold price API?

Yes. GoldAPI.io supports multiple currencies including USD, AUD, CAD, EUR, GBP, AED, SGD, KWD, OMR, and SAR. You can request gold price and other metals price data in any supported currency.

Is GoldAPI.io suitable for trading bots and financial applications?

Yes. GoldAPI.io is designed for developers building trading bots, financial dashboards, analytics platforms, and pricing tools. It provides fast and reliable real-time and historical metals price data via JSON API.

Integration Guides To

Build With GoldAPI.io Today

Practical guides for WordPress, Shopify, Excel, Joomla, and Drupal.

WordPress integration icon
WordPress

How to Get Real-Time Gold and Silver Prices in WordPress

Step-by-step guide on integrating GoldAPI.io Price Call in WordPress site

Read article →
Shopify integration icon
Shopify

How to Get Real-Time Gold and Silver Prices in Shopify

Step-by-step guide on integrating GoldAPI.io Price Call in Shopify store

Read article →
Excel integration icon
Excel

How to Get Real-Time Gold and Silver Prices in Excel

Step-by-step guide on integrating GoldAPI.io Price Call in Excel spreadsheet

Read article →
WebSockets integration icon
WebSockets

How to Stream Live Gold Prices Using GoldAPI.io WebSockets Integration

Build a real-time gold price WebSocket feed for bullion dealer quotes, live dashboards, inventory valuation, and customer price updates with GoldAPI.io.

Read article →
FX WebSockets integration icon
FX WebSockets

How to Get Real-Time Currency FX Rates Using GoldAPI.io WebSockets

Stream live foreign-exchange rates, bid and ask prices, and currency-pair updates into FX dashboards, conversion tools, checkout pricing, and treasury workflows.

Read article →
MCP Server integration icon
MCP Server

How to Connect ChatGPT, Claude and Codex to the GoldAPI MCP Server

Connect AI agents to the hosted GoldAPI MCP Server for live and historical metal (gold, silver) prices, currency conversion, valuations, portfolio analysis and LBMA benchmarks.

Read article →