# Apple Shortcuts

No key needed

Build a “Convert Currency” shortcut for iPhone, iPad and Mac - and run it hands-free with Siri (“Hey Siri, Convert Currency”). It uses the keyless Rate-API rates feed.

[API reference](/content/docs/api/index.html)

## Examples

`“Hey Siri, Convert Currency”``100 USD → EUR`

## Setup

1. 1

### Create a shortcut

Open the Shortcuts app and tap + to create a new shortcut. Name it “Convert Currency”.

2. 2

### Ask for the inputs

Add three “Ask for Input” actions: a Number for the amount, then Text for the “from” code (USD) and the “to” code (EUR).

3. 3

### Fetch the rates

Add “Get Contents of URL” with this address. It returns a USD-based rates table, no key needed.

```
https://rate-api.com/widget/rates?base=USD
```

4. 4

### Read the two rates

Add two “Get Dictionary Value” actions on the result: Value for “rates.FROM” and Value for “rates.TO” (substitute the codes from your inputs).

5. 5

### Calculate and show

Use a Calculate action for amount × (rateTo ÷ rateFrom), then “Show Result”. Optionally add it to Siri so you can just ask for it.
