• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Last Call - The RapidAPI Blog

  • Marketplace
  • Add Your API
  • About
  • Docs
    • API Glossary
  • Blog
    • API Tutorials
      • Google Sheets
      • Python
      • JavaScript
      • PHP
      • Java
      • Ruby on Rails
      • C#
    • Most Popular APIs
  • Teams
  • Sign Up
    • Log In
Blog > API Tutorials > How To Use the CoinMarketCap API in 3 Easy Steps [Tutorial]
CoinMarketCap API RapidAPI

How To Use the CoinMarketCap API in 3 Easy Steps [Tutorial]

September 3, 2018 By RapidAPI Staff 1 Comment

Table of Contents

  • What is CoinMarketCap?
    • CoinMarketCap API & Endpoints
    • How much does it cost to use the CoinMarketCap API?
  • How to use the CoinMarketCap API
    • 1. Navigate to the CoinMarketCap API page on RapidAPI
    • 2. Sign up or Login
    • 3. Select a programming language
  • Cryptocurrency APIs Comparison

What is CoinMarketCap?

CoinMarketCap.com is a website used for tracking the capitalization of various cryptocurrencies.

This cryptocurrency site allows you to compare cryptocurrencies and trading prices.

Related: Best Cryptocurrency APIs

 

Connect to API


 

Related: CoinMarketCap API Alternatives

For each cryptocurrency, you can view its:

  • Market cap
  • Price
  • Volume (24 hours)
  • Circulating Supply
  • Change (over last 24 hours)
  • and Price Graph

CoinMarketCap API on RapidAPI

CoinMarketCap API & Endpoints

The CoinMarketCap API is a cryptocurrency trading API that provides access to market cap rankings, charts, and more.

The top endpoints include:

  • getCryptoCurrenciesList – returns a list of all available cryptocurrencies
  • getCryptoCurrency – returns information for a specific cryptocurrency
  • getGlobalData – returns global data of all cryptocurrencies

 

Connect to API


 

How much does it cost to use the CoinMarketCap API?

The CoinMarketCap is a free-to-use cryptocurrency API on RapidAPI when you register for an account (also free!) on RapidAPI.com.

How to use the CoinMarketCap API

So how do you use the API?

Follow the steps below to get started:

1. Navigate to the CoinMarketCap API page on RapidAPI

First, head on over to RapidAPI.com and search for the CoinMarketCap API.

Have an API you want to add to our API Marketplace?
plus
Add your API to our marketplace

2. Sign up or Login

To begin testing the CoinMarketCap API endpoints, you’ll need a RapidAPI account.

Log in or sign up for an account on the website.

Don’t worry, it’s free!

3. Select a programming language

Now that you’re logged in, let’s test the getCryptoCurrenciesList API endpoint.

Before you click “Test Endpoint”, select your preferred programming language.

CoinMarketCap API PHP Python JavaScript NodeJS

The CoinMarketCap API is available in the following programming languages:

  • NodeJS
  • PHP
  • Python
  • Ruby
  • Objective-C
  • Java (Android)
  • C# (.NET)
  • cURL

 

Connect to API


Here are some code snippet examples:

CoinMarketCap API Python Example

Python Request Snippet Example

response = unirest.post("https://CoinMarketCapzakutynskyV1.p.rapidapi.com/getCryptocurrenciesList",
  headers={
    "X-RapidAPI-Key": "{Your RapidAPI Key}",
    "Content-Type": "application/x-www-form-urlencoded"
  }
)

CoinMarketCap API PHP Example

PHP Request Snippet Example

$response = UnirestRequest::post("https://CoinMarketCapzakutynskyV1.p.rapidapi.com/getCryptocurrenciesList",
  array(
    "X-RapidAPI-Key" => "{Your RapidAPI Key}",
    "Content-Type" => "application/x-www-form-urlencoded"
  )
);

CoinMarketCap API NodeJS / JavaScript Example

NodeJS Request Snippet Example

unirest.post("https://CoinMarketCapzakutynskyV1.p.rapidapi.com/getCryptocurrenciesList")
.header("X-RapidAPI-Key", "{Your RapidAPI Key}")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});

To learn more about consuming APIs and installing SDKs, click here.

 

Connect to API


 

Once you’ve selected a language, click “Test Endpoint”…

… and voila!

You should see something like this:

CoinMarketCap API Response

Now you’re ready to begin integrating the CoinMarketCap API into your crypto application or website.

Click the button below to get started:

Connect to API

How do you plan on using this API? Have any other questions? Let us know in the comments below!

Cryptocurrency APIs Comparison

APIWallet IntegrationTransaction SupportSpecial CapabilitiesPrice
Digital Currency Tickers API by BraveNewCoinNoNoYesFree
Crypto Market Intraday Reference Rates API by BraveNewCoinNoNoYesFree
CoinAPINoNoYesFree
ICOs API by ZloadrNoNoYesVarying Plans
Due Diligence API by ZloadrNoNoYesVarying Plans
Global Bitcoin Price Index – GBX API by BitcoinAverageNoNoYesFree
CoinbaseYesYesYesFree
CoinMarketCapNoNoYesFree
NexchangeYesYesYesExchange Fees
GetBalanceYesNoNoFree
BitcoinAverageNoNoYesVarying Plans
BitcointyNoNoYesFree
Bitcoin ATMsNoNoYesVarying Plans
5 / 5 ( 9 votes )
« How To Use the Yahoo Finance API in 2019 [Tutorial]
Top 7 NLP (Natural Language Processing) APIs [Updated for 2019] »

Related Blog Posts

How to Build an API in Python (with Django)
How to Build an API in Python (with Django)

How To Use IMDb API with Python To Power Your Movie Search App
How To Use IMDb API with Python To Power Your Movie Search App

How To Build a Weather App in JavaScript (Node.js) Using the OpenWeatherMap API
How To Build a Weather App in JavaScript (Node.js) Using the OpenWeatherMap API

How to Send SMS Messages with PHP (using Nexmo or Twilio)
How to Send SMS Messages with PHP (using Nexmo or Twilio)

RapidAPI for Teams [The Complete Tutorial + FAQs]
RapidAPI for Teams [The Complete Tutorial + FAQs]

How to Build an API in Python (with Flask & RapidAPI)
How to Build an API in Python (with Flask & RapidAPI)


Filed Under: API Tutorials Tagged With: api tutorial, Bitcoin, CoinMarketCap, Cryptocurrency, tutorial

RapidAPI Staff

The RapidAPI staff consists of various writers in the RapidAPI organization. Check out our medium team page here. For support, please email us at [email protected].

Reader Interactions

Comments

  1. Konstantin says

    January 7, 2019 at 5:57 am

    I think that a great alternative to CCM, is Crypto APIs. It has a lot more exchanges integrated, plus blockchain endpoints.

    They use REST API, WebHook Notifications & WebSockets. Crypto APIs supports BTC, ETH, LTC, BCH & is working on EOS and XRP. They have trades, quotes and collecting data to 100+ Crypto Exchanges.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Build amazing apps, faster.

Discover, evaluate, and integrate with any API. RapidAPI is the world’s largest API marketplace with over 1,000,000 developers and 10,000 APIs.

Browse APIs

Footer

Learn

  • How to use an API
  • Skyscanner Travel API Overview
  • API Glossary
  • For Developers
  • For API Providers
  • About
  • Team
  • Jobs
  • Contact Us
  • API Directory
  • Press Room
  • Privacy Policy
  • Terms of Use

© 2019 RapidAPI. All rights reserved.