| 开发者 | qeras89 |
|---|---|
| 更新时间 | 2026年6月4日 20:13 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[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):
X-API-Key HTTP header) — used for authentication and rate-limit tracking.https://metalflowapi.com/wp-json/metals/v1/prices (historical)https://metalflowapi.com/wp-json/metals/v1/live (24h intraday)https://metalflowapi.com/wp-json/metals/v1/all-prices-internal (spot + FX bulk)https://metalflowapi.com/wp-json/metals/v1/sparkline (SVG chart)/wp-content/plugins/metalflowapi-live-precious-metals-prices/ or install it through the WordPress Plugins screen.[metalflow_ticker currency="EUR"].No. The free tier (100 requests/month) is plenty for low-traffic jewelry sites with caching enabled (default 5-min cache).
In your WordPress database (wp_options). Requests to MetalflowAPI are made from your WordPress server — the key is never sent to visitor browsers.
No. All API responses are cached server-side via WordPress transients (default 5 min, configurable). On a cache hit, response time is essentially zero.
Yes. Each site has its own settings and its own 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.
Not in v1.0. BTC/ETH support is on the roadmap for the MetalflowAPI service.
Yes — the plugin emits semantic class names (mfapi-price, mfapi-ticker, etc.). Override in your theme's CSS.
/api/v1) so dashboard keys (mfk_live_*) from metalflowapi.com/dashboard/keys work correctly. Previous versions incorrectly called the internal WordPress REST API (/wp-json/metals/v1), which rejected dashboard keys with "Invalid API key".[metalflow_chart] shortcode + "Historical Chart" Gutenberg block — server-side SVG sparkline for any metal/currency, from 30 days up to the full 58-year archive. Light/dark theme, custom width/height, gradient fill, last-value label./wp-json/metalflowapi/v1/data and /calc.