# Currency Converter API (`gentle_cloud/currency-converter-api`) Actor

Convert between 166+ world currencies using real-time exchange rates. Supports single conversion, all rates for a base currency, and multi-base comparison modes. Powered by the free ExchangeRate API with daily updated rates.

- **URL**: https://apify.com/gentle\_cloud/currency-converter-api.md
- **Developed by:** [Monkey Coder](https://apify.com/gentle_cloud) (community)
- **Categories:** Other
- **Stats:** 7 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Currency Converter API

### 💱 What It Does

Converts currencies and fetches real-time exchange rates for **166 currencies** worldwide. Powered by the free ExchangeRate API — no API key required. Get instant conversions, full rate tables, and multi-currency comparisons.

### 📊 Modes

| Mode | Description | Output |
|------|-------------|--------|
| **Convert** | Convert a specific amount between currencies | Conversion results with rates |
| **All Rates** | Get all 166 exchange rates for a base currency | Complete rate table |
| **Multi-Base** | Compare rates across multiple base currencies | Cross-currency comparison |

### 🚀 How to Use

1. **Select a mode** — Choose your conversion or rate lookup type
2. **Set base currency** — Enter the source currency code (e.g., USD)
3. **Set targets** (optional) — Enter target currency codes, or leave empty for popular defaults
4. **Set amount** (optional) — Enter the amount to convert (default: 1000)
5. **Run the Actor** — Click "Start" and get results in seconds
6. **Download data** — Export as JSON, CSV, or Excel

#### Input Examples

**Convert $1000 USD to specific currencies:**

```json
{
    "mode": "convert",
    "base_currency": "USD",
    "target_currencies": "EUR,GBP,JPY,CNY,CAD",
    "amount": 1000
}
```

**Get all 166 rates for Euro:**

```json
{
    "mode": "all_rates",
    "base_currency": "EUR"
}
```

**Compare USD, EUR, GBP against Asian currencies:**

```json
{
    "mode": "multi_base",
    "base_currency": "USD,EUR,GBP",
    "target_currencies": "JPY,CNY,KRW,SGD,HKD,TWD,THB,INR",
    "amount": 100
}
```

### 📋 Sample Output

#### Convert Mode

```json
{
    "base_currency": "USD",
    "base_currency_name": "US Dollar",
    "target_currency": "EUR",
    "target_currency_name": "Euro",
    "exchange_rate": 0.867203,
    "amount": 1000,
    "converted_amount": 867.203,
    "rate_display": "1 USD = 0.867203 EUR",
    "conversion_display": "1000 USD = 867.203 EUR",
    "last_updated": "Wed, 18 Mar 2026 00:02:31 +0000",
    "fetched_at": "2026-03-18T12:00:00"
}
```

### 🌍 Supported Currencies (166 total)

#### Major Currencies

| Code | Currency | Code | Currency |
|------|----------|------|----------|
| USD | US Dollar | EUR | Euro |
| GBP | British Pound | JPY | Japanese Yen |
| CNY | Chinese Yuan | CAD | Canadian Dollar |
| AUD | Australian Dollar | CHF | Swiss Franc |
| HKD | Hong Kong Dollar | SGD | Singapore Dollar |
| KRW | South Korean Won | INR | Indian Rupee |
| BRL | Brazilian Real | MXN | Mexican Peso |
| ZAR | South African Rand | SEK | Swedish Krona |
| TRY | Turkish Lira | AED | UAE Dirham |

Plus 148 more currencies including all major, minor, and exotic currency pairs.

### 📝 Notes

- **No API key required** — Uses the free ExchangeRate API
- **166 currencies** — Covers all major, minor, and exotic currencies
- **Daily updates** — Rates are updated once per day by the API
- **Fast execution** — Typically completes in 1-3 seconds
- **Rate precision** — Up to 6 decimal places for accurate calculations
- **ISO 4217 codes** — Uses standard three-letter currency codes

# Actor input Schema

## `mode` (type: `string`):

Operation mode: 'convert' (convert specific amount), 'all\_rates' (all 166 rates for a base currency), or 'multi\_base' (rates from multiple base currencies)

## `base_currency` (type: `string`):

Source currency code (e.g., USD, EUR, GBP). For multi\_base mode, use comma-separated codes (e.g., USD,EUR,GBP).

## `target_currencies` (type: `string`):

Comma-separated target currency codes (e.g., EUR,GBP,JPY,CNY). Leave empty for popular defaults.

## `amount` (type: `number`):

Amount to convert (used in 'convert' and 'multi\_base' modes).

## Actor input object example

```json
{
  "mode": "convert",
  "base_currency": "USD",
  "amount": 1000
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "convert",
    "base_currency": "USD",
    "target_currencies": "",
    "amount": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("gentle_cloud/currency-converter-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "convert",
    "base_currency": "USD",
    "target_currencies": "",
    "amount": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("gentle_cloud/currency-converter-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "convert",
  "base_currency": "USD",
  "target_currencies": "",
  "amount": 1000
}' |
apify call gentle_cloud/currency-converter-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gentle_cloud/currency-converter-api"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JThfL8WpgZExD5oOm/builds/9sVQ2RnErIx1JtGEM/openapi.json
