How to connect Excel to Coinmarketcap API - The Excel Club (2024)

Using the Coinmarketcap API, you can quickly get live ticker information into your Excel spreadsheet for your favorite cryptocurrency. With the free API that is available, in this article we will look at how you can connect to this API with Excel and keep your data up to date.

Obtaining a Coinmarketcap API Key

You can register and sign up for an API key here

https://pro.coinmarketcap.com/

The free key will allow you

  • 9 market data endpoints
  • 10K call credit/mo

However, you will not get access to historical data. If you are using Excel 365 Beta channel and you have the STOCKHISTORY function you can use this to get historical data for the larger cap coins. However, it is limited in the coins and the function is not yet available to everyone.

Once you have registered, you will be able to access your developer’s dashboard. This contains the API key you will need. You will also find a quick link to the API documentation (https://coinmarketcap.com/api/documentation/v1/)

How to connect Excel to Coinmarketcap API - The Excel Club (1)

Creating a URL endpoint to connect to with Excel

The base of the API URL endpoint is

https://pro-api.coinmarketcap.com/v1/

We will add more to this URL so we can call call certain data. The API documentation lists the endpoints, but not all of them are available with the free API.

How to connect Excel to Coinmarketcap API - The Excel Club (2)

For our examples we will use the end point /cryptocurrency and for our endpoint paths we will look at /quotes/latest and /listings/latest

https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest will allow you access to current market information for 1 or more coins. The default price return is USD and you must use CONVERT to add other exchange rates.

You can find full details on the parameters here https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyQuotesLatest

The parameters allow you to basically filter and define what you want returned. For example, we want to return information for BTC,LRC,ADA. As these are coin symbols, we will use the symbol parameter at the end of the API URL. Each one separated with a comma.

https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=BTC,LRC,ADA

If you need to call more than a few listings as you would do with /quotes/latest, you can use /listing/latest. This will return a full list, by default the top 100 coins by ranking on coinmarketcap.

https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest

By adding different paths and parameter we can filter this list as required. You can find all the details of the parameter in the API documentation.

For Example, this URL will return the to 100 showing in BTC.

https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?convert=btc

And this URL will return only the coins with the tag for Defi

https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?tag=defi

Once we have created our API endpoints, we can then use these to connect Excel to Coinmarketcap data.

Connecting Excel to the Coinmarketcap API

  1. From the data ribbon, select From Web which can be found in the Get and Transform group of commands. This will open a From Web setup box.
  2. Select Advanced
  3. Enter the API URL endpoint to the first URL parts boxHow to connect Excel to Coinmarketcap API - The Excel Club (3)
  4. In the HTTP request header parameters(optional) first box enter X-CMC_PRO_API_KEY (you will find this on the Authentication section of the API documentation)
  5. In the HTTP request header parameters(optional) second box enter your API Key and press OK.How to connect Excel to Coinmarketcap API - The Excel Club (4)
  6. Excel will connect to the API and open up the Power Query window. The data is returned in JSON format and we must now extract the data. To learn more about working with JSON in Excel you can read this article.
  7. Select the row for Data List and click on the word listHow to connect Excel to Coinmarketcap API - The Excel Club (5)
  8. This will expand the lists of data. Select To Table from the ribbon and select ok for the default settings in the To table option box.

How to connect Excel to Coinmarketcap API - The Excel Club (6)

  1. Next expand the records by clicking on the column header. Select the columns you want to import and deselect Use original column name as prefix and press okHow to connect Excel to Coinmarketcap API - The Excel Club (7)
  2. The new columns of data will expand. However, the quote field will still be a record that we must also expandHow to connect Excel to Coinmarketcap API - The Excel Club (8)
  3. Click on the expander in the column header for quote to expand the record.

How to connect Excel to Coinmarketcap API - The Excel Club (9)

  1. This opens another record which we much expand again. Click on the expander in the column header and select the columns you want to importHow to connect Excel to Coinmarketcap API - The Excel Club (10)
  2. This will import all the selected columns
  3. Carry out any required transformation steps, most notably ensuring all the data types are correct before you load to Excel.
  4. From the home Ribbon select Close and Load to load the data as a table in Excel.

How to connect Excel to Coinmarketcap API - The Excel Club (11)

Refresh the data from Coinmarketcap API in Excel

Once all the tables have been loaded into Excel, we can keep these up to date with the latest information. To update the data, from the data ribbon, select Refresh All.

How to connect Excel to Coinmarketcap API - The Excel Club (12)

Conclusion

Connecting to Coinmarketcap API with Excel is a great way to ensure you have the latest pricing information for Bitcoin and your favorite cryptocurrencies. This article was brief to show you the steps involved in connecting to the API and getting the ticker and current information into Excel.

To look further at the other API points listed in this article and to get some tips on the data transformations required, do check out this video.

How to connect Excel to Coinmarketcap API - The Excel Club (2024)

FAQs

How do I connect CoinMarketCap API to Excel? ›

To pull the data into Excel, we use a web query. Under the Data tab in the ribbon, select Get Data > From Other Sources > From Web. Next, we need to input the URL we want to use and setup our API key as a header item to authenticate with CoinMarketCap. Make sure the Advanced radio button is selected.

How do I extract CoinMarketCap from Excel? ›

From the home Ribbon select Close and Load to load the data as a table in Excel.
...
Connecting Excel to the Coinmarketcap API
  1. From the data ribbon, select From Web which can be found in the Get and Transform group of commands. ...
  2. Select Advanced.
  3. Enter the API URL endpoint to the first URL parts box.

How do I connect Excel to API? ›

Basically, you have three options to link API to Excel:
  1. Power Query: You can query data from APIs using Excel's built-in tool.
  2. Coupler.io: This third-party importer will let you automate data exports via APIs to Excel on a custom schedule.
  3. VBA: This is a code-based option that is suitable for tech-savvy Excel users.
Sep 19, 2022

How do I connect crypto to Excel? ›

Step 1: Connect to https://api.coinmarketcap.com/v1/ticker/ from the Web Option in the Data ribbon in Excel. Step 2: The Power query editor will open with the data contained within a List. Convert this list to a Table. Step 3: The table will contain one column, each cell containing a Record.

How do I connect to CoinMarketCap API? ›

How to use the CoinMarketCap API
  1. Navigate to the CoinMarketCap API page on RapidAPI. First, head on over to RapidAPI.com and search for the CoinMarketCap API.
  2. Sign up or Login. To begin testing the CoinMarketCap API endpoints, you'll need a RapidAPI account. ...
  3. Select a programming language.
Jul 29, 2020

How do I connect to the stock market in Excel? ›

So highlight your new cells and select Insert > Table and set things up appropriately: Make sure your ticker symbols are still selected, and head to the Data tab and then click Stocks: You'll now have a linked up stock table with the little stock icon: Now you can add columns of various data.

Can Excel pull in crypto prices? ›

Once you've set up the API, it becomes a breeze to pull crypto prices and data into Excel, in just a matter of seconds.

How do I scrape data from CoinMarketCap? ›

  1. coinmarketcap-scraper. Python-based scraper for market cap, supply, exchange price, and exchange volume data from coinmarketcap.com.
  2. Installation. Make sure required python packages are installed. pip install cssselect lxml psycopg2 requests.
  3. Usage. Simply run $ python scrape.py to scrape all currencies on coinmarketcap.

Can I download data from CoinMarketCap? ›

Download CoinMarketCap Data to Excel & CSV Files

Unlike screen scrapers, our no-code platform exports data directly from CoinMarketCap's Official API so you can download extracted data seamlessly. This means no breaking code, getting blocked, overpriced proxies or incorrect data.

Can I make an API call from Excel? ›

Calls to external APIs can only be made through the Excel application, not through Power Automate under normal circ*mstances.

Does Microsoft Excel have an API? ›

You can use the Excel REST API in Microsoft Graph to extend the value of your Excel data, calculations, reporting, and dashboards. Excel is an indispensable productivity tool. Users across all industries and job functions embrace it as a tool for storing, tracking, and manipulating all kinds of data.

How do I generate a token in Excel? ›

Right click method:
  1. Right-click on a Text Box.
  2. Select Insert Token from the pop-up menu. Scroll the list box until you see the Spreadsheet Cell Value token type, if necessary Figure 19.30.
  3. Choose the Spreadsheet Cell Value token and click the Insert button.

Can an Excel file be an NFT? ›

This marks the first time XLS files, the default format used for spreadsheets in Excel, have been made available in an NFT collection. Each of the 5 Excel Collection NFTs will be sold for 1 ETH (Ethereum price) equivalent to around $2000 each.

How do I add a CoinMarketCap API to Google Sheets? ›

CoinMarketCap API and Google Sheets
  1. Go to CoinMarketCap account and sign up or log in.
  2. Click the button that says “GET YOUR API KEY NOW”.
  3. Fill in the sign up API form.
  4. Go to your email. ...
  5. After clicking you will get sent to your API dashboard. ...
  6. In a new tab, go to this Google Sheet I created and make a copy.
Aug 24, 2021

How do I get data from CoinGecko API? ›

Go to https://www.coingecko.com/en/api and scroll about halfway down. There, you'll see the types of requests you can make. Since my application needs to bring in some data from CoinGecko, I want to make a GET request. That's exactly what CoinGecko enables.

Is CoinMarketCap API free? ›

A:CoinMarketCap is committed to always providing the crypto community with a robust free API through our free Basic tier. Even on free Basic our users can benefits from enterprise grade infrastructure, documentation, and flexibility.

Can Excel automatically update stock prices? ›

Right-click a data type in your workbook, and then select Data Type > Refresh Settings. In the Data Types Refresh Settings pane, select the option you want.

Can Excel pull live stock data? ›

To insert a stock price into Excel, first convert text into the Stocks data type. Then you can use another column to extract certain details relative to that data type, like the stock price, change in price, and so on.

Do stock traders use Excel? ›

Many traders use Excel to research trading strategies and potential investments. Excel can help you track your portfolio, monitor price movements, and calculate risk metrics. This article will show you how to use Excel to research trading strategies and make better investment decisions.

How do you pull large amounts of crypto? ›

One of the easiest ways to cash out your cryptocurrency or Bitcoin is to use a centralized exchange such as Coinbase. Coinbase has an easy-to-use “buy/sell” button and you can choose which cryptocurrency you want to sell and the amount.

Did CoinMarketCap get hacked? ›

CoinMarketCap, a price-tracking website for cryptocurrencies, has reportedly fallen victim to a hack that leaked 3.1 million (3,117,548) user email addresses.

How do you harvest losses crypto? ›

Crypto tax-loss harvesting allows investors to sell assets at a loss during a market low or at the end of a tax year to lower their tax liability. Investors can sell an unlimited amount of assets and deduct up to $3,000 to offset ordinary income on their federal taxes.

How do I export data from CoinGecko to Excel? ›

Let's get started!
  1. Step 1: Get these tabs open before the mapping exercise. ...
  2. Step 2: Pulling list of coins from CoinGecko's API. ...
  3. Step 3: Convert the data into Table format on Power Query Tab. ...
  4. Step 4: Close and Load your data to the excel spreadsheet.
Aug 19, 2021

Is CoinMarketCap API good? ›

CoinMarketCap is a great source of data for beginner and experienced crypto traders, even without paying for the premium API service. With a great level of customizability, it is easy to see why CoinMarketCap is such a popular site.

How do I link Google sheets to CoinGecko? ›

Part 1: Pull CoinGecko API Data into Sheets
  1. Open up Google Sheets and click Extensions > API Connector > Open > Create request.
  2. Create a new tab and click Set current to use that tab as your data destination.
  3. Name your request and click Run. A moment later you'll see a list of coins populate your sheet.

How do I import crypto data into Google Sheets? ›

Simply type in, between quotation marks, the ticker symbol for the cryptocurrency as the only argument for the function. Alternatively, type the ticker symbol, without quotation marks, into a cell and use the cell reference in the formula.

How do I call an API directly? ›

How to Make API calls
  1. Find the URI of the external server or program.
  2. Add an HTTP verb.
  3. Include a header.
  4. Include an API key or access token.
  5. Wait for the response.
Sep 20, 2021

How do I make a REST API call in Excel? ›

To make an API call we must go to the “Data” tab and click on “New Query” → “From Other Sources” → “From Web”. Then we click on “Advanced”. Here we put the url, and if credentials are needed, they can be entered as a header. Hope it was helpful!

Is Excel API free? ›

Are there examples of free Excel APIs? Not only are there dozens of free Excel APIs available from sites like RapidAPI, Microsoft has a large library of APIs for use with its software, which includes not only Excel but Microsoft Graphs and Visual Basic as well.

How do I install Cryptosheets in Excel? ›

Excel Online
  1. Login with your Microsoft credentials.
  2. Choose New Blank Workbook.
  3. Go to Insert > Office Add-ins.
  4. In the popup window, choose Store.
  5. Type Cryptosheets in the search box.
  6. Choose Cryptosheets.
  7. Take a moment to look at the Store page to familiarize yourself with the add-in.
  8. Choose Add to install the add-in.

How do you track crypto on a spreadsheet? ›

Adding new records in the cryptocurrency spreadsheet tracker is pretty simple. Enter the essential information (currency name and currency identifier) and your purchase records (investment and buying price), and simply drag down all the other columns (holding, current price, present value, and profit/loss).

Does Excel support crypto? ›

The easiest way to pull crypto currency prices into your Microsoft Excel spreadsheet. A simple WEBSERVICE function call that requires no parsing and no limitations.

Can Excel generate random passwords? ›

Alphanumeric random password

Select the cell you want to place the random password, type this formula =CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99), and press Enter key. Then you will get a string with 4 digits, the first two are alpha characters, and the last two are numbers.

How do I generate my token code? ›

Bulk SMS in Nigeria
  1. Dial *737*7# with the phone number that is attached to your GTBank account.
  2. Enter your bank account number.
  3. Now, key in the last 6 digits of your GTBank MasterCard. A token code that you must use before the next 60seconds will be generated for you to use to finalize your pending transactions.
Mar 12, 2019

How do I create a unique code in Excel? ›

You can generate a unique value using a formula in the spreadsheet. An ID must be a value, not a formula, though, so copy (Ctrl+C) and paste as plain text (Shift+Ctrl+V) the result of the formula calculation into the cell meant to contain the new ID. That's all there is to it!

Is it illegal to make an NFT? ›

While NFTs are relatively new and may be an unfamiliar type of art, copyright law will treat NFTs the same as any other traditional artwork. If an artist creates a new piece of artwork, they will automatically acquire a copyright of that new artwork.

Is using an NFT illegal? ›

Some NFTs create copyright trouble by using artworks stolen from artists, or famous works that the NFT creators have no connection with and no license to use from. Copying these works as part of the NFT marketing (e.g. for OpenSea listings) can itself be copyright infringement.

Is it illegal to print an NFT? ›

To obtain full rights to an NFT (i.e., to sell physical prints of the work), you need permission from the creator. However, purchasing the license to an NFT typically means it's not a problem to obtain a physical print for yourself.

How do I import CoinGecko API into Excel? ›

Let's get started!
  1. Step 1: Get these tabs open before the mapping exercise. ...
  2. Step 2: Pulling list of coins from CoinGecko's API. ...
  3. Step 3: Convert the data into Table format on Power Query Tab. ...
  4. Step 4: Close and Load your data to the excel spreadsheet.
Aug 19, 2021

How do I pull CoinMarketCap data into Google Sheets? ›

Import CoinMarketCap Data to Google Sheets
  1. Contents.
  2. Before You Begin.
  3. Part 1: Get Your CoinMarketCap API Key.
  4. Part 2: Pull Data from CoinMarketCap into Sheets.
  5. Part 3: Create a Custom Request.
  6. Part 4: Handle Pagination.
  7. Part 5: API Documentation.
  8. Appendix: CoinMarketCap Template.

Can you put crypto prices in Excel? ›

Cryptocurrencies Now In Excel!

When Excel received the capability to retrieve stock data directly within the spreadsheet via data types, cryptocurrencies were also included in the dataset. This article will show you how to pull current crypto prices and historical data natively inside Excel.

Can I pull live crypto prices into Excel? ›

The data will be downloaded via an API from coinmarketcap.com. Once you've set up the API, it becomes a breeze to pull crypto prices and data into Excel, in just a matter of seconds.

How do I use API connector in Google Sheets? ›

Click here to install the API Connector extension from the Google Marketplace.
  1. Step 1: Open the Sidebar. ...
  2. Step 2: Add a New Request. ...
  3. Step 3: Select an API. ...
  4. Step 4: Set Authentication. ...
  5. Step 5: Select an Endpoint. ...
  6. Step 6: Set Parameters. ...
  7. Step 7: Set Destination Sheet. ...
  8. Step 8: Choose Output Options.
Dec 28, 2022

How do you pull crypto prices into sheets? ›

Google Sheets' GOOGLEFINANCE function can be used to get cryptocurrency prices. Simply type in, between quotation marks, the ticker symbol for the cryptocurrency as the only argument for the function. Alternatively, type the ticker symbol, without quotation marks, into a cell and use the cell reference in the formula.

How do I extract live data from Excel? ›

How to make an Excel real-time data spreadsheet
  1. Create a new table. The first step in using Excel's real-time data feature is to create a new table. ...
  2. Select specific cells. The cells in the table store the data within the spreadsheet. ...
  3. Click on the "Data" tab. ...
  4. Add a new column to receive the data.
Sep 29, 2021

How do I calculate live currency in Excel? ›

Use the Currencies data type to calculate exchange rates

Enter the currency pair in a cell using this format: From Currency / To Currency with the ISO currency codes. For example, enter "USD/EUR" to get the exchange rate from one United States Dollar to Euros. Select the cells and then select Insert > Table.

Top Articles
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 5630

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.