Linux 软件免费装
Banner图

MetalflowAPI — Live Precious Metals Prices

开发者 qeras89
更新时间 2026年6月4日 20:13
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

precious metals jewelry gold price silver price gold api

下载

1.0.6 1.0.7 1.0.8

详情介绍:

The official MetalflowAPI WordPress plugin makes it dead simple to embed live precious metals prices on any WordPress site — perfect for jewelers, publishers, trade-in calculators and bullion shops. Features Shortcodes [metalflow_price metal="Gold" currency="EUR" unit="g"] — live spot price for one metal [metalflow_carat carat="14" currency="EUR" unit="g"] — carat-aware Gold price [metalflow_ticker currency="EUR" theme="light"] — all 4 metals with 24h change [metalflow_table currency="EUR" unit="g"] — full carat table 9k–24k [metalflow_change metal="Gold" days="30"] — % change over N days [metalflow_calc currency="EUR"] — interactive carat-weight calculator [metalflow_chart metal="Gold" range="1y" currency="EUR" width="600" height="180"] — historical sparkline (30d/90d/180d/1y/2y/5y/10y/30y/max) Pricing The plugin is 100% free. The MetalflowAPI service offers a free tier (no credit card required): Sign up free → EU & GDPR Servers in Strasbourg (France). All data within EU. GDPR-compliant. EUR billing with VAT invoices. External Service Disclosure This plugin relies on the MetalflowAPI service (metalflowapi.com) to fetch real-time and historical precious metals prices. By using this plugin you agree to MetalflowAPI's terms of service and privacy policy. What data is sent to MetalflowAPI from your WordPress server: What is NOT sent: Cache: all responses are cached locally on your server via WordPress transients (default 5 minutes, configurable) so the same query does not hit MetalflowAPI repeatedly. Before you add an API key: the plugin shows built-in static sample data and makes no request to MetalflowAPI. The service is only contacted once a valid API key is saved. Service endpoints used: Legal:

安装:

  1. Upload the plugin to /wp-content/plugins/metalflowapi-live-precious-metals-prices/ or install it through the WordPress Plugins screen.
  2. Activate the plugin.
  3. Go to Settings → MetalflowAPI and paste your API key. Get one free at metalflowapi.com/signup.
  4. Click Test connection to verify.
  5. Drop a shortcode into any post or page, e.g. [metalflow_ticker currency="EUR"].

屏幕截图:

  • Carat-aware price shortcode in a jewelry product page.
  • Live ticker showing Au/Ag/Pt/Pd in EUR with 24h change.
  • Carat table 9k–24k for trade-in calculators.
  • Interactive carat-weight calculator block.

升级注意事项:

1.0.5 Review compliance update. Safe upgrade — "Powered by" now off by default. 1.0.4 Adds the long-awaited historical chart shortcode + block. Safe upgrade. 1.0.3 Displays unit suffix (/g, /kg, /ozt) next to single-metal prices. Safe upgrade. 1.0.2 Adds auto-migration for legacy/orphan options. Safe upgrade. 1.0.0 First release.

常见问题:

Do I need a paid plan to use this plugin?

No. The free tier (100 requests/month) is plenty for low-traffic jewelry sites with caching enabled (default 5-min cache).

Where is my API key stored?

In your WordPress database (wp_options). Requests to MetalflowAPI are made from your WordPress server — the key is never sent to visitor browsers.

Does this plugin slow down my site?

No. All API responses are cached server-side via WordPress transients (default 5 min, configurable). On a cache hit, response time is essentially zero.

Can I use this in a multisite / network?

Yes. Each site has its own settings and its own API key.

Does the plugin work without an API key?

Yes, in preview mode. Until you add a key, every widget renders static sample data (clearly labelled "Sample data") so you can see how it looks. This sample is built into the plugin — no network request is made and nothing is sent anywhere. Add a free API key (Settings → MetalflowAPI) to switch to real live prices. The free tier is enough for most jewelry sites.

Do you support cryptocurrency prices?

Not in v1.0. BTC/ETH support is on the roadmap for the MetalflowAPI service.

Can I customize the styling?

Yes — the plugin emits semantic class names (mfapi-price, mfapi-ticker, etc.). Override in your theme's CSS.

更新日志:

1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0