Import Live Metal Prices To Google Sheets

Import live metal prices to Google Sheets
Reading Time: 4 minutes

In this article, we’ll learn how to import live metal prices to Google Sheets. We can retrieve the prices of precious metals such as gold, silver, platinum, and palladium in most major currencies of the world.

We’ll use an extension in Google Sheets–Amigo Data–to pull the data into Google Sheets. And not just fetch the data and stop at that; in fact, the journey starts from there. The data is automatically pulled to Google Sheets, updated periodically, and delivered to our inbox so that the data follow us everywhere. Amigo Data serves you fresh and hot information.

Read on to know how to import live metal prices to Google Sheets. Below are the steps we’ll encounter.

  1. Install the Amigo Data extension
  2. Get the endpoint URL
  3. Import the data to Google Sheets

How to import live metal prices to Google Sheets

Install the Amigo Data extension in Google Sheets

Install the Amigo Data Google Sheets add-on from the Google Workspace Marketplace.

Amigo Data in Google Workspace Marketplace

Click here to install.

Alternatively, you can get it from Google Sheets.

  • Open a new sheet
  • Go to Extensions→Add-ons→Get add-ons
  • Search for Amigo Data and install

Get the endpoint URL

Sign up or log in to RapidAPI.

Once you’re logged in, go to the Live Metal Price API Documentation page in RapidAPI.

Click on the Subscribe to Test button and subscribe to a plan that’s right for you.

Subscribe to Test button

On subscribing to a plan (the free one included), an API key will be generated, which is used to authenticate API calls to RapidAPI.

Click Endpoints to go back to the API documentation. On the left is the list of the available endpoints. Select any one. For this tutorial, we’ll import the prices of precious metals in a currency of our choice, so we select Latest in chosen currency.

List of available endpoints

The key and the header are filled automatically and the query parameters are also filled with default values. We can change these with symbols of our choice.

Default parameters

The default parameters will return the prices of gold, silver, palladium and platinum in euro and the value of the pound sterling and euro in euro.

We’ll modify the parameters to include the prices of 24-karat gold, and gold price change since open, with the prices quoted in the US dollar. For a list of supported metals and currencies, see this page.

Modified parameters

On the right of the screen under the Code snippets is the endpoint for the specified parameters along with the headers we’ll need to import the data.

The endpoint URL along with the headers

Note the endpoint URL and headers. We’ll use these in the next step.

Import the Live Metal Prices to Google Sheets

Open Google Sheets and launch Amigo Data from the sheet into which you want to fill the data. To connect to Amigo Data, click Extensions→Amigo Data→Connect.

Launch Amigo Data

You’ll be presented with a list of sources to connect to. Choose Custom API.

Select Custom API as the source to connect

Paste the endpoint URL in the API URL field. Do not include the apostrophes. (Likewise for the headers.)

Entering the endpoint URL

Then expand the Details tab and enter the headers.

The headers

Click the PREVIEW button. Flatten and expand the nested datasets and delete the columns that are not required. Then click IMPORT.

The data will be imported into Google Sheets in a moment. Below is a snippet of the imported data.

Snippet of the data

The endpoint used here retrieves the price of the metals in ounce, We can get the price in gram by using the Latest Selected Metals in Selected Currency In Grams endpoint.

Once the data have been imported into Google Sheets, they can be updated automatically at regular intervals–hourly, daily, weekly or on custom days–should you so wish, and get these data sent to your inbox. Click here to learn how set a refresh schedule and set up alerts in Amigo Data.

Visit our blog for to find out about the kinds of data that you can import to Google Sheets and how you can track stock and other financial data from Google Sheets.

Some recommended articles:

Get Real-Time Crypto Prices In Google Sheets With Live Coin Watch API

Import NSE Data To Google Sheets

Import TD Ameritrade data to Google Sheets