ExchangeRate-API · Arazzo Workflow

ExchangeRate-API Pair Amount Conversion

Version 1.0.0

Validate currencies against supported codes, then convert a specific amount.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Currency ExchangeForeign ExchangeFinancial DataForexCurrency ConversionPublic APIsArazzoWorkflows

Provider

exchangerate-api

Workflows

pair-amount-conversion
Convert a specific amount between two currencies after confirming support.
Looks up the supported currency codes, then converts the supplied amount from the base currency to the target currency at the current exchange rate.
2 steps inputs: amount, apiKey, baseCode, targetCode outputs: conversionRate, conversionResult, supportedCodes
1
listSupportedCodes
Retrieve the supported ISO 4217 currency codes to confirm the base and target currencies are available before converting.
2
convertAmount
Convert the supplied amount from the base currency to the target currency, returning the live rate and the converted result.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: ExchangeRate-API Pair Amount Conversion
  summary: Validate currencies against supported codes, then convert a specific amount.
  description: >-
    A money-movement flow that converts a concrete amount from one currency to
    another. It first retrieves the supported currency codes so the base and
    target can be validated, and then calls the pair-conversion-with-amount
    endpoint to return both the live exchange rate and the converted amount.
    Each step inlines its full request, including the API key path parameter,
    so the flow is self-describing.
  version: 1.0.0
sourceDescriptions:
- name: pairConversionApi
  url: ../openapi/exchangerate-api-pair-conversion-api-openapi.yml
  type: openapi
- name: supportedCodesApi
  url: ../openapi/exchangerate-api-supported-codes-api-openapi.yml
  type: openapi
workflows:
- workflowId: pair-amount-conversion
  summary: Convert a specific amount between two currencies after confirming support.
  description: >-
    Looks up the supported currency codes, then converts the supplied amount
    from the base currency to the target currency at the current exchange rate.
  inputs:
    type: object
    required:
    - apiKey
    - baseCode
    - targetCode
    - amount
    properties:
      apiKey:
        type: string
        description: Your ExchangeRate-API dashboard API key.
      baseCode:
        type: string
        description: ISO 4217 three-letter base currency code (e.g. USD).
      targetCode:
        type: string
        description: ISO 4217 three-letter target currency code (e.g. EUR).
      amount:
        type: number
        description: Decimal amount in the base currency to convert.
  steps:
  - stepId: listSupportedCodes
    description: >-
      Retrieve the supported ISO 4217 currency codes to confirm the base and
      target currencies are available before converting.
    operationId: getSupportedCodes
    parameters:
    - name: api_key
      in: path
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/result == "success"
    outputs:
      supportedCodes: $response.body#/supported_codes
  - stepId: convertAmount
    description: >-
      Convert the supplied amount from the base currency to the target currency,
      returning the live rate and the converted result.
    operationId: getPairConversionWithAmount
    parameters:
    - name: api_key
      in: path
      value: $inputs.apiKey
    - name: base_code
      in: path
      value: $inputs.baseCode
    - name: target_code
      in: path
      value: $inputs.targetCode
    - name: amount
      in: path
      value: $inputs.amount
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/result == "success"
    outputs:
      conversionRate: $response.body#/conversion_rate
      conversionResult: $response.body#/conversion_result
      baseCode: $response.body#/base_code
      targetCode: $response.body#/target_code
  outputs:
    supportedCodes: $steps.listSupportedCodes.outputs.supportedCodes
    conversionRate: $steps.convertAmount.outputs.conversionRate
    conversionResult: $steps.convertAmount.outputs.conversionResult

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/exchangerate-api-pair-amount-conversion-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.