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

Step-by-step guide on integrating GoldAPI.io Price Call in n8n workflows

Integrating GoldAPI.io with n8n

n8n is useful when you want to fetch GoldAPI.io price data inside self-hosted or cloud automation workflows.

The simplest approach is to use an HTTP Request node.

What you need

  1. An n8n workspace.
  2. A GoldAPI.io API key.
  3. A workflow with an HTTP Request node.

Step 1: Add an HTTP Request node

Create a workflow and add:

HTTP Request

Set the method to:

GET

Step 2: Configure the request

Use a URL like:

https://www.goldapi.io/api/price/XAU/USD?melt_price=false&currency_info=false

Add headers:

x-access-token: YOUR_API_KEY
Content-Type: application/json

In n8n, add these in the Headers section of the HTTP Request node.

Step 3: Use the returned fields

GoldAPI.io returns JSON fields that can be used by later n8n nodes, such as:

  • price
  • ask
  • bid
  • timestamp

You can then:

  • send a Slack or email alert when price crosses a threshold
  • append the price to Google Sheets
  • write the value to a database
  • trigger another workflow or webhook

Example workflow

  1. Schedule Trigger runs every hour.
  2. HTTP Request calls GoldAPI.io.
  3. IF checks whether price is above or below a target.
  4. Slack, email, database, or webhook node sends the result onward.

Example IF condition

After the HTTP Request node, add an IF node and compare the returned price:

{{ $json.price }} > 2400

You can replace 2400 with your own alert threshold.

Security note

n8n can store API credentials in the workflow or in credential storage, depending on your setup. Keep the GoldAPI.io key out of public workflow exports, restrict access to your n8n workspace, and rotate the key if it is shared accidentally.

Conclusion

n8n is a flexible automation path for GoldAPI.io. A scheduled trigger, one HTTP Request node, and a conditional step are enough to build live metals price alerts, reporting jobs, and data sync workflows.

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 →