AI agents: the setup steps for Coinlayer are in the Agents section of this page (#agents) and as Markdown at /products/coinlayer/agents.md. Index of every APILayer API: https://apilayer.com/llms.txt

Coinlayer

Operational

Real-Time Cryptocurrency Exchange Rate API · by APILayer

  • Finance
  • JSON · JSONP
  • 385+ cryptocurrencies
  • 25+ exchange sources

Free plan · 100 requests / month · no card

Playground tab is switched off on the live page (AP-6510). Delete this widget to turn it back on.

Overview

API info

Get accurate, reliable cryptocurrency market data with a simple REST API. Access real-time and historical exchange rates for 385+ cryptocurrencies, sourced from 25+ exchanges and delivered in milliseconds.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/coinlayer/live?access_key=YOUR_ACCESS_KEY"
Run it in the Playground

Example response

200 - OK
{
    "success": true,
    "terms": "https://coinlayer.com/terms",
    "privacy": "https://coinlayer.com/privacy",
    "timestamp": 1794514527,
    "target": "USD",
    "rates": {
        "BTC": 71541.203333,
        "ETH": 2018.185333
    }
}

Built for Real-Time Crypto Applications

Get live and historical crypto rates for trading dashboards, portfolio trackers, financial apps and crypto websites, all from one API.

  • Live Exchange Rates

    Retrieve the latest available cryptocurrency rates with a single API call.

  • Historical Data

    Query cryptocurrency rates for a specific date and analyze how markets have changed over time.

  • Currency Conversion

    Convert amounts between cryptocurrencies and supported target currencies directly through the API.

  • Time-Frame Data

    Retrieve cryptocurrency exchange rate data across a defined period for analysis, reporting, and historical comparisons.

  • Change Data

    Track cryptocurrency rate fluctuations over a selected period and identify changes across supported assets.

  • Extended Results

    Add daily highs, lows and trading volume, plus market cap and supply, to your rates with a single parameter.

  • 385+ CryptocurrenciesRetrieve exchange rate data for more than 385 cryptocurrencies from a single API.
  • 25+ Exchange SourcesCoinlayer aggregates data from 25+ cryptocurrency exchanges to provide consistent and reliable market information.
  • 166 Target CurrenciesPaid plans can return cryptocurrency rates against supported fiat target currencies, giving your application greater flexibility for international use cases.
  • Data Since 2011Access historical cryptocurrency exchange rate data going back to Bitcoin rates from 2011.

Build Smarter With Crypto Data

From real-time exchange rates to historical market analysis, Coinlayer gives developers the infrastructure they need to build reliable cryptocurrency-powered products.

  • See Coinlayer in Action

    Explore how straightforward cryptocurrency data integration can be.

    Explore Use Cases
  • Coinlayer Documentation

    Get started with interactive documentation, response examples and API guides. Learn how to get real-time cryptocurrency exchange rates, look up historical rates for any date, convert between crypto and fiat currencies, and track rate changes over custom time frames.

    View Documentation

Pricing

Pricing That Scales With You

Start for free and upgrade as your application grows.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get Free API Key

100 requests / month

Includes:

  • Update frequency: Hourly
  • Historical data
  • Target currencies: USD only
  • Usage: Non-commercial
  • Support: None

+ 1 more

See all 10 features

Starter

For your first live product

$9.99/ month

Billed monthly

Then $0.007992 per extra request, up to 10,000 extra a month

Subscribe Now

5,000 requests / month

Everything in Free, plus:

  • Target currencies: All
  • Usage: Commercial
  • Extended results
  • Conversion endpoint
  • Support: Standard
See all 10 features
Most popular

Professional

For growing traffic

$39.99/ month

Billed monthly

Then $0.005332 per extra request, up to 60,000 extra a month

Subscribe Now

30,000 requests / month

Everything in Starter, plus:

  • Update frequency: 10-minute
  • Time-frame endpoint
  • 6× the requests of Starter
  • Lower cost per request
See all 10 features

Enterprise

For high volume

$79.99/ month

Billed monthly

Then $0.0031996 per extra request, up to 200,000 extra a month

Subscribe Now

100,000 requests / month

Everything in Professional, plus:

  • Update frequency: 60-second
  • Change data
  • 3.3× the requests of Professional
  • Lower cost per request
See all 10 features

Custom

Need more? Get custom enterprise pricing for higher-volume requirements, dedicated technical support, and additional business needs: volume requests, 60-second updates, all features and custom solutions.

Contact Sales

Compare all features

10 featuresFree$0Get free keyStarter$9.99/moSubscribeProfessional$39.99/moSubscribeEnterprise$79.99/moSubscribe
Update frequencyHourlyHourly10-minute60-second
Historical data
Target currenciesUSD onlyAllAllAll
UsageNon-commercialCommercialCommercialCommercial
SupportNoneStandardStandardStandard
SSL encryption
Extended results–
Conversion endpoint–
Time-frame endpoint––
Change data–––
Price per extra request after the monthly limitNone$0.007992$0.005332$0.0031996

Playground

Try the API

Build a request in your browser and see the response it returns.

GET
expand Optional

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add Coinlayer to a project.

  1. 1Get an API key

    A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Coinlayer. The Free plan includes 100 requests / month and needs no credit card.

    Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).

  2. 2Keep the key out of code

    Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.

    Call Coinlayer from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/coinlayer
    Auth
    access_key query parameter
    Formats
    JSON, JSONP
    Endpoints
    • /live Live rates
    • /{date} Historical rates for a date (YYYY-MM-DD)
    • /convert Convert an amount
    • /timeframe Rates for a time frame
    • /change Rate changes over a period
    • /list Supported cryptocurrencies and target currencies
    Shell
    curl "https://api.apilayer.net/coinlayer/live?access_key=$APILAYER_ACCESS_KEY"

    The API info tab shows the response this request returns.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100Update frequency: Hourly, Historical data, Target currencies: USD only, Usage: Non-commercial, SSL encryption, Support: None
    Starter5,000Target currencies: All, Usage: Commercial, Extended results, Conversion endpoint, Support: Standard
    Professional30,000Update frequency: 10-minute, Time-frame endpoint
    Enterprise100,000Update frequency: 60-second, Change data

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

The Answers You Might Be Looking For

Data & features

01.What is Coinlayer?

Coinlayer is a REST API for cryptocurrency exchange rate data. It provides live and historical rates for 385+ cryptocurrencies, with data collected from 25+ exchanges.

02.How do I get started?

Create a Coinlayer account, obtain your API access key, and use it with the API's endpoints. The API returns straightforward JSON responses designed for easy integration.

03.How many cryptocurrencies does Coinlayer support?

Coinlayer currently provides exchange rate data for more than 385 cryptocurrencies.

04.Where is Coinlayer API data coming from?

Cryptocurrency exchange rate data delivered by Coinlayer is gathered from 25+ worldwide cryptocurrency exchanges, ensuring the highest possible level of accuracy and reliability, and covering more than 385 coins.

05.How often is Coinlayer data updated?

The most up-to-date crypto exchange rate data is fed into our systems every 60 seconds. Depending on your subscription plan, you will be able to retrieve updates in the following frequencies: 60 minutes, 10 minutes or 60 seconds.

06.Can I retrieve historical cryptocurrency data?

Yes. Coinlayer provides historical exchange rate data reaching back to 2011.

07.Can I convert cryptocurrency values?

Yes. Supported plans include a conversion endpoint for converting amounts between cryptocurrencies and supported target currencies.

08.Can I choose a target currency?

Yes. Starter plans and higher support 166 target currencies beyond USD.

API access

01.Does Coinlayer support HTTPS?

Yes. Coinlayer supports 256-bit SSL/HTTPS encryption across its plans.

02.What happens if my allowed volume is exceeded?

Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly. You can learn more about overages billing here.

03.What is the Coinlayer API's uptime?

The Coinlayer API has had an uptime of 99.99% throughout the last 12 months. You can review the current status anytime on the Status Page.

Plans & pricing

01.Does Coinlayer offer a free plan?

Yes. The Free plan provides 100 API requests per month and does not expire, subject to its feature limitations.

02.Why would I choose a paid subscription?

The Coinlayer Free Plan offers a way of testing the API and its capabilities in a non-production website or application. Premium plans come with standard customer support, commercial use, larger amounts of queries, more frequent updates and essential API features like currency conversion, time-frame and change data.

03.What if I need more than 100,000 API requests per month?

The infrastructure behind Coinlayer was built to scale almost indefinitely. Let us know your requirements and we will work out a custom solution for you.

04.How can I pay?

Payment can be made via credit card (Visa, MasterCard, American Express, Diner's Club, Discover), or, for Enterprise clients, standard bank transfer. You can change your payment method at any given time in your account dashboard.

05.Can I pay yearly?

Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.

06.Can I cancel anytime?

Yes. Coinlayer is a subscription-based service and your chosen plan renews automatically each month. You can upgrade, downgrade or cancel anytime.

07.How do I cancel/downgrade?

You can initiate a cancellation or downgrade by selecting a new plan and providing at least one reason for your decision. The customer service team will cancel or downgrade your plan. Downgrades are not effective immediately; your premium subscription will remain active until the end of the current billing period.

08.How do I change between monthly and yearly billing?

To change your subscription from monthly to yearly billing, submit a request on the Contact Us page following these steps:

Step 1: Sign in to your account.

Step 2: Go to the Contact Us page.

Step 3: Fill out the form and choose the “Sales” category for this request.

Step 4: In the text box, include your specific request, for example “Change from Monthly to Yearly subscription.”

Overages

01.What is an overage?

An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.

Prices for additional API calls will vary based on your plan. See the table below for prices per call and an example of an overage billing.

PlanMonthly priceRequests / monthPrice per extra requestExtra requestsOverage cost
Starter$9.995,000$0.00799210,000$79.92
Professional$39.9930,000$0.00533210,000$53.32
Enterprise$79.99100,000$0.003199610,000$32.00

Note: For complete details, please refer to the overages documentation here.

02.Why does APILayer have overage fees?

Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.

03.How do I know if I will be charged for overages?

When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.

04.How will I be charged for my API subscription?

You will be charged for your monthly subscription plan, plus any overage fees applied. Your credit card will be billed after the billing period has ended.

05.What happens if I don't have any overage fees?

In this case, there will be no change to your monthly invoice. Only billing cycles that incur overages will see any difference in monthly charges. The Business Continuity plan is an insurance plan to be used only if needed and guarantees your end users never see a drop in coverage from you.

06.What if I consistently have more API calls than my plan allows?

If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base. Find out about our pricing plans here.

07.I would like to upgrade my plan. How can I do that?

You can easily upgrade your plan by going to your Dashboard and selecting the new plan that would be more suitable for your business needs. Additionally, you may contact your Account Manager to discuss a custom plan if you expect a continuous increase in usage.

Still have a question?

Contact support