Ruby Exchange Rates API
Ruby Currency API
Get Live Exchange Rates in Ruby. Simple integration, comprehensive documentation, and reliable exchange rate data for your Ruby applications.
No card required. Free plan is 500 requests/month
require "net/http"
require "uri"
uri = URI("https://currencyapi.net/api/v1/rates?key=YOUR_API_KEY&base=USD&output=JSON")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyTrusted by Ruby developers worldwide
Join thousands of developers who rely on our Currency API for their Ruby applications, with low latency JSON responses, dependable uptime, and reliable data sources.
Our API powers Ruby applications across industries—from Rails web applications to Sinatra microservices. Built for Ruby developers, trusted by teams.
50M+ Requests Every Month
Built to handle high traffic smoothly and reliably.
10,000+ Happy Customers
Chosen by developers, startups, and growing teams.
Supporting Devs Since 2019
A proven platform you can count on long-term.
~50ms Average Latency
Fast responses for real-time Ruby apps and websites.
Our Pricing Plans
Get started with our Ruby Exchange Rates API for free. Perfect for Ruby developers building personal projects or testing. Upgrade to paid plans for production Ruby applications with higher limits, faster updates, and commercial usage rights.
Free
Perfect for personal projects
- 500 monthly requests
- Hourly updates
- Fetch currency rates in Ruby
- Rate limits (10 req/min)
- Commercial use
- Technical support
- Change base currency
Commercial
Built for production applications
- Up to 10M+ monthly requests
- Updates as fast as 60 seconds
- Historical rates back to 2000
- Code examples included
- Convert endpoint for Ruby
- Commercial use allowed
- Technical email support
- Team management
- Multiple API keys
- IP whitelisting/blacklisting
How Our Ruby Currency API Works
Sign Up
Sign up for a free account to get started with our API. Paid plans start at just $9.99/month.
Get Your API Key
After signing up, you'll receive an API key. Use this key to authenticate requests to our API endpoints.
Integrate the API
Use our code samples with Ruby's Net::HTTP library to quickly integrate into your Ruby or Rails applications.
Getting Started: Ruby Integration
Implement our Ruby Currency API in your application using Ruby's standard Net::HTTP library. Simple, straightforward, and requires no additional dependencies.
require "net/http"
require "uri"
uri = URI("https://currencyapi.net/api/v1/rates?key=YOUR_API_KEY&base=USD&output=JSON")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyAI Assisted Ruby Integration
Integrate our Exchange Rates API effortlessly with AI assistants. We provide a simple llms.txt file that contains all the information about our API in a format optimized for AI assistants and Large Language Models.
AI assistants like ChatGPT, Claude, Cursor, Windsurf, and others can quickly understand our API capabilities and help you integrate Currency API more efficiently into your Ruby applications.
Simply reference our llms.txt file and let AI assistants guide you through Ruby integration, code examples, and best practices. More information can be found on our LLM Documentation page.
What Ruby Developers Build With Our API
See how Ruby developers use our Currency API endpoints to power their applications. From real-time rates to historical analysis, discover the possibilities.
require "net/http"
require "uri"
uri = URI("https://currencyapi.net/api/v1/rates?key=YOUR_API_KEY&base=USD&output=JSON")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyLive Exchange Rates
Fetch real-time exchange rates for 152+ currencies in a single API call. Perfect for building currency converters, e-commerce pricing engines, and financial dashboards.
Ruby developers use this endpoint to power real-time currency displays, update product prices dynamically, and build trading applications that need current market rates.
Currency Conversion
Convert a currency from one to another with a single API request. Ideal for checkout flows, invoice generation, and payment processing systems.
Ruby developers integrate this endpoint into Rails and Sinatra applications to handle multi-currency transactions, calculate shipping costs in different currencies, and build international payment gateways.
require "net/http"
require "uri"
uri = URI("https://currencyapi.net/api/v1/convert?key=YOUR_API_KEY&from=GBP&to=USD&amount=100&output=JSON")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyrequire "net/http"
require "uri"
uri = URI("https://currencyapi.net/api/v1/history?key=YOUR_API_KEY&date=2020-01-01&base=USD&output=JSON")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyHistorical Exchange Rates
Access Historical Exchange Rates for a specific date going back to the year 2000. Essential for financial reporting, backtesting trading strategies, and analyzing currency trends over time.
Ruby developers use historical data to build various graphs, analytics dashboards, generate financial reports, perform currency trend analysis, and create data visualizations for business intelligence tools.
Timeframe Analysis
The Timeframe Endpoint allows you to retrieve rates for multiple historical dates in one request. Perfect for analyzing currency movements over weeks, months, or years.
Ruby developers leverage timeframe data to build portfolio tracking tools, create currency performance reports, analyze seasonal trends, and power financial forecasting models in data science applications.
require "net/http"
require "uri"
uri = URI("https://currencyapi.net/api/v1/timeframe?key=YOUR_API_KEY&start_date=2017-12-25&end_date=2018-01-10&base=USD&output=JSON")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyPowerful Dashboard for Ruby Developers
Manage your Ruby API usage, monitor performance, and access powerful analytics through our intuitive dashboard. Everything you need to optimize your Ruby currency data integration.

Dashboard Features
FAQs
Questions about using our API with Ruby? Below are some of our most asked questions or feel free to get in touch.
Is there a free version of the currency conversion API?
Yes, we offer a free exchange rate API for personal projects only. This free version allows access to our rates endpoint, updated every hour. Please note that we do not allow commercial use on our free account. For commercial use, please refer to our terms here.
Is there any sample JSON (or XML) data that shows the response from your API?
Our API Documentation page has sample data returned from our APIs in both JSON and XML formats. Developers can use this to start planning the returned response before even signing up.
Can I use this with Rails or Sinatra?
Absolutely! Our Ruby Currency API works seamlessly with Rails, Sinatra, Hanami, and any Ruby web framework.
You can integrate it into controllers, create service objects, or use it in background jobs. Check our documentation for framework-specific examples.
How live are the currency exchange rates?
The rate in which our data is updated depends on the plan you are subscribed to. Currency rates are updated every:
• 1 minute (Professional plan)
• 10 minutes (StartUp plan)
• 60 minutes (Essential and free plan)
What is the source of the currency exchange rates in the API?
Our data comes from various reputable finance sources. We have backup sources to prevent a single point of failure and have automation checks on this data to ensure accuracy.
Which currencies are supported by your API?
CurrencyApi.net covers real time and historical exchange rates on 152 currencies, including some cryptocurrencies and precious metals. You can find a full list of the currencies we support.