If you’re selling gold products using WooCommerce, keeping prices updated with the current market can be a hassle. Manually updating prices is time-consuming. The solution? Use a free gold price API to automatically update your product prices based on real-time market rates.
In this guide, we’ll walk through how to set up a free gold price API for your WooCommerce store using the Dynamic Gold Price for WooCommerce Products plugin. This plugin supports a free API tier that gives you 30-60 requests per hour—perfect for most small to medium stores.
Step 1 : Get Your Free API Key
The first step is to register for a free API key. Here’s how:
- Go to the official API registration page
- Fill out the registration form to create your account
- After registration, your API key will be displayed on-screen
- Copy your API key and store it safely—you’ll need it in the next step
Step 2 : Activate Your API Key
Before you can use your API key, you need to activate it:
- Read the API Terms on the provider’s website
- Send one email to goldpricekg@gmail.com including:
- Your API key
- Your website URL
3. Wait for verification. In many cases, activation completes automatically once they record your details
For manual activation status checks, you can use the key status/info page linked from the API documentation.
Step 3 : Install and Configure the Plugin
Now that you have your free API key, it’s time to set up the plugin:
- Install the Dynamic Gold Price for WooCommerce Products plugin
- Go to WordPress Admin → Gold API Key
- In the “Free API Key” field, paste your API key
- Set the “Gold Price Source” dropdown to “Free API”
- Click “Save Changes”
That’s it! Your plugin is now configured to use the free API.
Step 4 : Set Up Your Products
For each gold product in your store, you’ll need to:
- Edit the product in WooCommerce
- In the General tab, find the gold pricing fields
- Enter the Gold Weight in grams (e.g., 10.5)
- Enter the Markup Percentage (e.g., 25 for 25% markup)
- Optionally enter a Fixed Extra amount for additional costs like labor or settings
- Click “Update Price Now” to calculate and apply the price immediately
The plugin uses this formula to calculate prices:
Final Price = (Gold Price per Gram × Product Weight) × (1 + Markup Percentage ÷ 100) + Fixed Extra
Step 5 : Update Your Prices
You have two options for updating prices:
Automatic Updates : The plugin automatically updates all product prices once per day using WordPress cron.
Manual Updates : Go to Gold API Key → Update Gold Prices and click “Update Now” to update all products immediately.
Important Notes About the Free API
- Rate Limits: The free tier allows 30-60 requests per hour. The plugin handles this by caching prices and updating once per day, so you’ll stay well within limits.
- HTTPS Only: The API uses HTTPS-only endpoints for security
- Currency Support: The API supports multiple currencies including USD, EUR, GBP, CAD, AUD, INR, PKR, AED, and more
- Best Practices: The plugin follows best practices by caching prices and using scheduled updates rather than calling the API on every page view
That’s all there is to it! With these simple steps, your WooCommerce store will automatically keep gold prices up-to-date using the free API. No more manual price updates, and your customers will always see current market-based pricing.
For more information and to get the plugin, visit: Dynamic Gold Price for WooCommerce Products

Leave a Reply