How to connect the Livecoinwatch API to Google Sheets

Crypto Tutorials: Binance | Bitfinex | Bitmex | BscScan | Cardano | Coinbase | Coingecko | Coinmarketcap | CoinAPI | Coinranking | Etherscan | | Glassnode | Huobi | LiveCoinWatch | Kraken | Kucoin | Magic Eden | Messari | Nomics | OpenSea | PancakeSwap | Rarible | Rarify | Solanart


    Livecoinwatch is the world’s first real-time cryptocurrency price tracking web app. We can use the Livecoinwatch API to import data from Livecoinwatch into Google Sheets. In this tutorial, we’ll show you how to connect the Livecoinwatch REST API to Google Sheets in 5 steps:

    1. Install the Apipheny add-on
    2. Obtain an API key
    3. Choose a Livecoinwatch API endpoint
    4. Enter your Livecoinwatch API request into Apipheny
    5. Run the Livecoinwatch API request in your Google Sheet

    Step 1.) Install and open the Apipheny add-on for Google Sheets

    Apipheny is a free API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to API data sources, easily.

    1.) Install Apipheny by opening the following link on desktop and then clicking the Install button in the Google Marketplace: https://apipheny.io/install

    2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.

    In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.

    open apipheny

    Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new

    Step 2.) Obtain an API key

    After logging into your Livecoinwatch account, go to the API tab:

    The API tab
    The API tab

    Scroll down to the API Playground section and click the Create Key button:

    API Playground section
    API Playground section

    Your key will be generated:

    API Key generated in the API Playground section
    API Key generated in the API Playground section

    Copy your key to a safe location, because you’ll need it in the next steps.

    Step 3.) Choose a Livecoinwatch API endpoint

    In this section, we’ll show you how to browse the Livecoinwatch API documentation to find an endpoint that gets the information you need from LCW. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 4.

    First, open the Livecoinwatch API documentation page: https://livecoinwatch.github.io/lcw-api-docs/?shell#introduction

    The menu on the left contains general information about the Livecoinwatch API, and there is a list of endpoints under the Resources menu item:

    Introduction section form Livecoinwatch API documentation
    Introduction section form Livecoinwatch API documentation
    Resources section
    Resources section

    An example endpoint is /credits which returns information about your API subscription:

    https://api.livecoinwatch.com/credits

    The endpoint’s documentation contains a short description of the endpoint’s purpose, its HTTP method (POST), the URI, an example cURL request and example responses:

    Credits endpoint documentation
    Credits endpoint documentation

    All API calls for Livecoinwatch API should be made to the https://api.livecoinwatch.com/  base domain.

    Step 4.) Enter your Livecoinwatch API request into Apipheny

    Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the Import tab. With the Import tab open, enter these details into the add-on:

    Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) required by your API endpoint. For this example, we are using the POST method.

    API URL: In Step 2, we explained how you can find the Livecoinwatch REST API endpoint that you need. Now copy and paste your complete Livecoinwatch API URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).

    For this example, we are using the /fiats/all endpoint which lists all the fiat currencies. This is what the whole URL looks like:

    https://api.livecoinwatch.com/fiats/all

    Headers: In the Headers section of Apipheny, add one row with the following key and value:

    Key:
    x-api-key
    
    Value:
    API_key

    Replace API_key with the key you previously obtained in Step 2.

    The POST Body will be left blank.

    Livecoinwatch API request entered into Apipheny
    Livecoinwatch API request entered into Apipheny

    Step 5.) Run the Livecoinwatch API request in your Google Sheet

    Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Livecoinwatch API data to be imported into your Google Sheet. Here’s what our request looked like when completed:

    Livecoinwatch data imported into Google Sheets
    Livecoinwatch data imported into Google Sheets

    That’s it! You’ve successfully connected Livecoinwatch to Google Sheets using the Livecoinwatch API, Google Sheets API, and the Apipheny add-on.

    After making a successful request to the Livecoinwatch API, try querying a different Livecoinwatch API endpoint, or try using one of the more advanced features in the Apipheny add-on.


    Crypto Tutorials: Binance | Bitfinex | Bitmex | BscScan | Cardano | Coinbase | Coingecko | Coinmarketcap | CoinAPI | Coinranking | Etherscan | | Glassnode | Huobi | LiveCoinWatch | Kraken | Kucoin | Magic Eden | Messari | Nomics | OpenSea | PancakeSwap | Rarible | Rarify | Solanart