Adalo Crypto Price API & Widget using coinmarketcap

The Adalo Guy
7 Feb 202206:24

TLDRIn this video, two methods for integrating cryptocurrency prices into an Adalo app are discussed. The first method involves using a free ticker from CoinMarketCap, which is displayed in a web view. This is achieved by using a Pragma Flow component and embedding the ticker's HTML code after encoding it. The second method offers more control and power over the data by utilizing the CoinMarketCap API. This requires creating an account, obtaining an API key, and setting up an external collection in Adalo. The video demonstrates how to use the API endpoint for the latest cryptocurrency listings, including how to add an authorization header with the API key. The result is a custom list displaying cryptocurrency names and their USD prices, with a dollar prefix for clarity. The video concludes by mentioning that CoinMarketCap has many different endpoints, some of which are available on the free plan and others on paid plans, encouraging viewers to explore further.

Takeaways

  • 🔍 **Title Identification**: The video is about integrating cryptocurrency prices into an Adalo app using CoinMarketCap's services.
  • 📈 **Two Methods Discussed**: The video outlines a simple ticker method and a more complex API integration method for fetching crypto prices.
  • 🎟️ **Ticker Method**: A CoinMarketCap ticker can be displayed in a web view using the Pragma Flow component.
  • 📱 **Widget Customization**: Users can customize the ticker on CoinMarketCap's website to select specific cryptocurrencies like Cardano.
  • ✂️ **Copy and Encode**: After customizing, copy the widget's HTML code, encode it, and paste it into the Pragma Flow WebView component.
  • 🆓 **Free Widget**: The widget is free to use without the need for signing up.
  • 💡 **API for More Control**: For greater control and customization, the CoinMarketCap API can be used, which requires an account and an API key.
  • 🔑 **API Key Usage**: An API key from a CoinMarketCap account is needed to authenticate and make API calls.
  • 📚 **Documentation Reference**: The video guides on how to find and use the API endpoints from CoinMarketCap's documentation.
  • 📝 **Results Key**: When setting up the external collection, a results key ('data') is specified to match the structure of the API response.
  • 📊 **Custom List Creation**: After the collection is created, a custom list can be made to display cryptocurrency names and USD prices.
  • 💲 **Formatting Prices**: The video suggests adding a dollar prefix for better display of cryptocurrency prices.
  • 📘 **Endpoint Overview**: CoinMarketCap offers various endpoints, some available on the basic plan and others on paid plans.

Q & A

  • What are the two methods mentioned in the video for getting cryptocurrency prices into an Adalo app?

    -The two methods mentioned are using a ticker from CoinMarketCap displayed in a WebView, and using the CoinMarketCap API with an external collection to make the data accessible and usable within the Adalo app.

  • How can you display a CoinMarketCap ticker in a WebView?

    -You can display a CoinMarketCap ticker in a WebView by installing the Pragma Flow WebView component, going to CoinMarketCap's widget page to create a ticker, copying the HTML code provided, encoding the HTML code, and then pasting it into the WebView component.

  • What is the benefit of using the CoinMarketCap ticker method?

    -The benefit of using the CoinMarketCap ticker method is that it is a simple and free option that does not require signing up for an account.

  • How many API calls are included in the free plan of CoinMarketCap?

    -The free plan of CoinMarketCap includes 10,000 API calls per month.

  • What is needed to use the CoinMarketCap API?

    -To use the CoinMarketCap API, you need to create an account on CoinMarketCap, obtain an API key, and set up an external collection in your Adalo app with the appropriate base URL and authorization header using the API key.

  • What is the purpose of the results key when setting up an external collection?

    -The results key is used to specify the part of the API response that contains the data you want to collect. In the case of CoinMarketCap listings, the results key is 'data' because the API response nests the relevant information under a 'data' array.

  • How can you customize the display of cryptocurrency prices in the Adalo app?

    -You can customize the display by adding a custom list that includes the name of the cryptocurrency and its USD price. You can also add a dollar prefix to the price for better formatting.

  • What is the advantage of using the CoinMarketCap API over the ticker method?

    -The advantage of using the CoinMarketCap API is that it provides more control over the data, allowing for more customization and the ability to access and use a wider range of cryptocurrency information within the Adalo app.

  • How can you find the authorization header name required for the CoinMarketCap API?

    -You can find the authorization header name in the CoinMarketCap API documentation under the authentication section.

  • What is the process to test the CoinMarketCap API endpoint after setting up the external collection?

    -After setting up the external collection with the correct base URL and authorization header, you can test the API endpoint by using the 'get all' action and checking if the test is successful.

  • What does the video suggest for users who need more data than the free plan of CoinMarketCap offers?

    -The video suggests that CoinMarketCap offers different plans for users who need to access more data than what is available on the free plan.

  • How can users explore more endpoints provided by CoinMarketCap?

    -Users can explore more endpoints by looking at the CoinMarketCap API documentation, which provides an overview of various endpoints that can be used for different purposes.

Outlines

00:00

📈 Integrating Crypto Prices into Adalo App: Ticker and API Overview

This paragraph introduces two methods for integrating cryptocurrency prices into an Adalo app. The first method involves using a ticker from Coin Market Cap, which is displayed in a web view. The second method is more complex, utilizing the Coin Market Cap API to set up an external collection for accessible and usable data within the app. The speaker guides the viewer through the process of using a web view with a Pragma Flow component, obtaining the widget HTML code from Coin Market Cap, and encoding it for display. The paragraph also touches on the possibility of using the Coin Market Cap API for more control and customization, including signing up for an account, obtaining an API key, and setting up an external collection with the necessary headers and results key.

05:03

💼 Customizing Adalo App with Coin Market Cap API Data

The second paragraph delves into the process of using the Coin Market Cap API to customize the Adalo app with cryptocurrency data. It explains how to create a custom list that includes the name of the cryptocurrency and its US dollar price, with a dollar prefix for display purposes. The speaker demonstrates how to preview the list, which shows the latest crypto listings from Coin Market Cap. The paragraph concludes with an encouragement to explore Coin Market Cap's various endpoints, some of which are available on the basic plan, and others that may require a paid subscription. The speaker offers help for any questions the viewer might have, indicating a willingness to provide further assistance.

Mindmap

Keywords

💡Adalo App

Adalo is a platform that allows users to create mobile applications without the need for coding. In the context of the video, it is used to demonstrate how to integrate cryptocurrency price information into an app created using Adalo.

💡Cryptocurrency Prices

This refers to the current market values of different cryptocurrencies, which fluctuate over time. The video discusses methods to display these prices within an Adalo app.

💡Coin Market Cap

Coin Market Cap is a website that provides data on the market capitalization of various cryptocurrencies. It is mentioned as a source for obtaining cryptocurrency prices within the Adalo app.

💡Ticker

A ticker is a real-time display of the latest prices of securities, including cryptocurrencies. In the video, the ticker from Coin Market Cap is used to show cryptocurrency prices in a web view within the Adalo app.

💡Web View

A web view is a component of an app that allows the display of web content within the app itself. The video demonstrates using a web view to show a cryptocurrency ticker from Coin Market Cap.

💡Pragma Flow Component

Pragma Flow is a tool that can be used within the Adalo platform to create components for use in Adalo apps. The video uses a Pragma Flow web view component to display the Coin Market Cap ticker.

💡API (Application Programming Interface)

An API is a set of rules and protocols that allows different software applications to communicate with each other. The video shows how to use the Coin Market Cap API to fetch cryptocurrency data for the Adalo app.

💡Authorization Header

An authorization header is a part of an HTTP request that contains authentication credentials. The video explains how to add an authorization header to use the Coin Market Cap API, which requires an API key for access.

💡API Key

An API key is a unique identifier used to authenticate a user, device, or application with an API. The video instructs viewers on how to obtain an API key from Coin Market Cap to use their API services.

💡Custom List

A custom list in the context of the video refers to a user-defined list within the Adalo app that can be populated with data from external sources, such as the Coin Market Cap API.

💡Results Key

In the context of API responses, a results key is a specific field or variable name that contains the data you are interested in. The video mentions setting a results key to 'data' for parsing the API response from Coin Market Cap.

Highlights

Exploring two methods to integrate cryptocurrency prices into an Adalo app.

Using a ticker from CoinMarketCap displayed in a web view as the first method.

The second method involves using the CoinMarketCap API and setting up an external collection.

Installing Pragma Flow WebView for the web view method.

Customizing the ticker widget on CoinMarketCap's website.

Obtaining the widget HTML code to embed in the Adalo app.

Encoding the HTML code for the widget to be displayed in the web view.

The widget is free and does not require signing up.

For more control, using the CoinMarketCap API with a free account that allows 10,000 API calls per month.

Creating an account on CoinMarketCap to obtain an API key.

Setting up an external collection using the API endpoint for cryptocurrency listings.

Adding an authorization header with the API key for the external collection.

Specifying the results key as 'data' to match the API response structure.

Testing the external collection to ensure successful data retrieval.

Creating a custom list to display cryptocurrency names and USD prices from the CoinMarketCap listings.

Adding a dollar prefix for the USD prices in the custom list for clarity.

Previewing the app to view the latest crypto listings from CoinMarketCap.

Introduction to using CoinMarketCap's API, authorization, and documentation for various endpoints.

CoinMarketCap offers many different endpoints, some available on the basic version and others on paid plans.