# Zapier — Metals-API Integrations
> zapier.com/apps/metals-api/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Metals-API is a real-time data service providing latest rates, timeseries, and OHLC prices for metals

- App slug: metals-api
- Operations published here: 6 (6 queries)

## Authentication
Zapier connects to Metals-API via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection metals-api
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/metals-api/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Metals-API through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `search · get_convert_rates`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "metals-api", owner: "me" });

const { data } = await zapier.runAction({
  app: "metals-api",
  actionType: "search",
  action: "get_convert_rates",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action metals-api search get_convert_rates \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Metals-API's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "metals-api" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions metals-api --page-size 50 --max-items 200 --json
```

### Queries (6)

Queries read from Metals-API and return data. They change nothing.

#### Get Convert Rates
Retrieve metals commodity exchange rates.

- Type: search · Key: `get_convert_rates`
- Requires: from, to, amount
- Optional: date
- SDK: `runAction({ app: "metals-api", actionType: "search", action: "get_convert_rates" })`
- CLI: `npx zapier-sdk run-action metals-api search get_convert_rates`

#### Get Metals Fluctuation Rates
Get metals price fluctuations between two dates

- Type: search · Key: `get_fluctuation_rates`
- Requires: start_date, end_date, symbols
- Optional: base
- SDK: `runAction({ app: "metals-api", actionType: "search", action: "get_fluctuation_rates" })`
- CLI: `npx zapier-sdk run-action metals-api search get_fluctuation_rates`

#### Get Historical Metals Rates
Retrieve historical metals exchange rates.

- Type: search · Key: `get_historical_rates`
- Requires: date, symbols
- Optional: base
- SDK: `runAction({ app: "metals-api", actionType: "search", action: "get_historical_rates" })`
- CLI: `npx zapier-sdk run-action metals-api search get_historical_rates`

#### Get Latest Metals Rates
Retrieve latest metals exchange rates.

- Type: search · Key: `get_latest_rates`
- Requires: symbols
- Optional: base
- SDK: `runAction({ app: "metals-api", actionType: "search", action: "get_latest_rates" })`
- CLI: `npx zapier-sdk run-action metals-api search get_latest_rates`

#### Get OHLC Rates
Retrieve open, high, low, and close (OHLC) metals prices for a specific date.

- Type: search · Key: `get_ohlc_rates`
- Requires: date, symbols
- Optional: base
- SDK: `runAction({ app: "metals-api", actionType: "search", action: "get_ohlc_rates" })`
- CLI: `npx zapier-sdk run-action metals-api search get_ohlc_rates`

#### Get Timeseries Rates
Returns time-series metals price data between two dates for the selected symbols.

- Type: search · Key: `get_timeseries_rates`
- Requires: start_date, end_date, symbols
- Optional: base, order
- SDK: `runAction({ app: "metals-api", actionType: "search", action: "get_timeseries_rates" })`
- CLI: `npx zapier-sdk run-action metals-api search get_timeseries_rates`

## Popular integrations
- [Metals-API + Notion](zapier.com/apps/metals-api/integrations/notion.md)
- [Metals-API + Google Sheets](zapier.com/apps/metals-api/integrations/google-sheets.md)
- [Metals-API + Facebook Lead Ads](zapier.com/apps/metals-api/integrations/facebook-lead-ads.md)
- [Metals-API + Airtable](zapier.com/apps/metals-api/integrations/airtable.md)
- [Metals-API + ActiveCampaign](zapier.com/apps/metals-api/integrations/activecampaign.md)
- [Metals-API + TikTok Lead Generation](zapier.com/apps/metals-api/integrations/tiktok-lead-generation.md)
- [Metals-API + Amazon S3](zapier.com/apps/metals-api/integrations/amazon-s3.md)
- [Metals-API + Workiz](zapier.com/apps/metals-api/integrations/workiz.md)
- [Metals-API + Gymdesk](zapier.com/apps/metals-api/integrations/gymdesk.md)
- [Metals-API + Cronfree Time Scheduler](zapier.com/apps/metals-api/integrations/cronfree-time-scheduler.md)

## Links
- Full app page: zapier.com/apps/metals-api/integrations
- MCP: zapier.com/mcp/metals-api
- SDK: npmjs.com/package/@zapier/zapier-sdk