Currency Conversion

Currency Conversion API

Convert between currencies with ease using our Currency Conversion API. Get up-to-date exchange rates for over 170 currencies.

Sample API Request

import requests
 
headers = {
    'Authorization': 'Api-Key YOUR_API_KEY'
}
 
params = {
    'from': 'USD',
    'to': 'EUR',
    'amount': 100
}
 
response = requests.get('https://api.tinyapi.co/v1/currency-conversion/', headers=headers, params=params)
 
if response.status_code == 200:
    print(response.json())
else:
    print(f"Error: {response.status_code}")

Sample API Response

{
    "from": "USD",
    "to": "EUR",
    "amount": 100,
    "convertedAmount": 85.23,
    "exchangeRate": 0.8523
}

Use the Currency Conversion API to convert between currencies, get historical and real-time exchange rates, and perform financial calculations.

Integration

Easily integrate Tiny API into your projects

Integrating Tiny API into your projects is a straightforward process. Follow these simple steps, and you'll have the power of Tiny API at your fingertips.

Step 1: Sign Up and Get Your API Key

To get started with Tiny API, you'll first need to sign up for an account on our website. Once you've signed up, you'll receive an API key, which you'll need to include in your API requests for authentication.

Step 2: Choose Your API

Next, you'll need to choose the API you want to integrate into your project. Explore our extensive catalog of APIs, and find the one that best suits your needs. Make sure to familiarize yourself with the API documentation, which includes important information on the available endpoints, request parameters, and response formats.

Step 3: Make API Requests

With your API key and chosen API in hand, you're now ready to start making API requests. You can use any programming language or tool that supports HTTP requests to make calls to the Tiny API endpoints. Remember to include your API key in the request headers for authentication.

Here's a sample API request using Python and the popular requests library:

import requests
 
api_key = "your_api_key"
url = "https://api.tinyapi.co/v1/currency-conversion/"
headers = {"Authorization": f"Api-Key {api_key}"}
 
response = requests.get(url, headers=headers)
 
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")