Python, RapidAPI Terms & Shreya's Notes

APIs and tooling like Jupyter docs allows many opportunities in fields like Data Science. As more and more developers use APIs, they build standards in how you setup a client, send requests and receive information...

  • Shreya's Notes
  • An API is a database that you can integrate into your own program
  • You take an external source and use it in your own program, ex. spotify or youtube
  • Pulling data from External Sources

Covid19 RapidAPI Example: Step 1 - Find an API Provider

First, find an API provider.

  • RapidAPI is an API provider -- they build APIs to specific standards so they all work alike and are all similar in coding, but all pull data
  • Go to this page for starters, the Corona virus World and India data- Under Code Snippets pick Python - Requests

RapidAPI, you will select Python Requests type of code to work with you Notebook.

  • The headers is a dictionary data structure to send special messaging to the endpoint
  • The requests.request() python function is used to send a request and retrieve their responses

Next step, is to format the response according to your data science needs

const axios = require("axios");

const options = {
  method: 'GET',
  url: 'https://corona-virus-world-and-india-data.p.rapidapi.com/api', # the URL is the endpoint to which the API is directed; the link that takes us to the API page
  headers: { # the squigly brackets in the code are for a dictionary
    'X-RapidAPI-Key': '2b7a1e07f1msheec8b665a35f05fp1a1019jsn337f301b5a47', # keys and values are in between the squigly brackets
    'X-RapidAPI-Host': 'corona-virus-world-and-india-data.p.rapidapi.com'
  }
};

axios.request(options).then(function (response) { # The response variable receives result of of the request in JSON text
	console.log(response.data);
}).catch(function (error) {
	console.error(error);
});
"""
Requests is a HTTP library for the Python programming language. 
The goal of the project is to make HTTP requests simpler and more human-friendly. 
"""
import requests

"""
RapidAPI is the world's largest API Marketplace. 
Developers use Rapid API to discover and connect to thousands of APIs. 
"""
url = "https://corona-virus-world-and-india-data.p.rapidapi.com/api"
headers = {
    'x-rapidapi-key': "dec069b877msh0d9d0827664078cp1a18fajsn2afac35ae063",
    'x-rapidapi-host': "corona-virus-world-and-india-data.p.rapidapi.com"
}

# Request Covid Data
response = requests.request("GET", url, headers=headers)
# print(response.text)  # uncomment this line to see raw data

# print(response.json())

# EXTRACTING DATA FROM THE API

# This code looks for "world data"
print("World Totals")
world = response.json().get('world_total')  # ".json()" code turns response to json() so we can extract "world_total"
for key, value in world.items():  # for loop finds key and value pairs in the world --> prints the world keys and values (data)
    print(key, value)

print()

# This code looks for USA in "countries_stats"
print("Country Totals")
countries = response.json().get('countries_stat') # countries_stat is a key
for country in countries:  # countries is a list
    if country["country_name"] == "USA":  # telling the API to filter for the USA data
        for key, value in country.items():  # this finds key, value pairs in country
            print(key, value) # prints the USA keys and values (data)
World Totals
total_cases 509,268,964
new_cases 204,268
total_deaths 6,242,509
new_deaths 630
total_recovered 461,827,849
active_cases 41,198,606
serious_critical 42,510
total_cases_per_1m_population 65,334
deaths_per_1m_population 800.9
statistic_taken_at 2022-04-24 11:18:01

Country Totals
country_name USA
cases 82,649,779
deaths 1,018,316
region 
total_recovered 80,434,925
new_deaths 0
new_cases 0
serious_critical 1,465
active_cases 1,196,538
total_cases_per_1m_population 247,080
deaths_per_1m_population 3,044
total_tests 1,000,275,726
tests_per_1m_population 2,990,303

Digital Coin Example

This example provides digital coin feedback (ie Bitcoin). It include popularity, price, symbols, etc.

  • A valid X-RapidAPI-Key is required. Look in code for link to RapidAPI page
  • Read all comments in code for further guidance
# RapidAPI page https://rapidapi.com/Coinranking/api/coinranking1/

# Begin Rapid API Code
import requests

url = "https://coinranking1.p.rapidapi.com/coins"
querystring = {"referenceCurrencyUuid":"yhjMzLPhuIDl","timePeriod":"24h","tiers[0]":"1","orderBy":"marketCap","orderDirection":"desc","limit":"50","offset":"0"}
headers = {
	"X-RapidAPI-Key": "2b7a1e07f1msheec8b665a35f05fp1a1019jsn337f301b5a47",  # place your key here; it is given to you on the API page after you subscribe to the API - need to subscribe to each API you use
	"X-RapidAPI-Host": "coinranking1.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
# End Rapid API Code
json = response.json()  # convert response to python json object

# Observe data from an API.  This is how data transports over the internet in a "JSON" text form
# - The JSON "text" is formed in dictionary {} and list [] divisions
# - To read the result, Data Scientist of  Developer converts JSON into human readable form
# - Review the first line, look for the keys --  "status" and "data"
{"status":"success","data":{"stats":{"total":1505,"totalCoins":15880,"totalMarkets":29467,"totalExchanges":172,"totalMarketCap":"983095538550","total24hVolume":"63465038613"},"coins":[{"uuid":"Qwsogvtv82FCd","symbol":"BTC","name":"Bitcoin","color":"#f7931A","iconUrl":"https://cdn.coinranking.com/bOabBYkcX/bitcoin_btc.svg","marketCap":"383988725165","price":"20029.392179057646","listedAt":1330214400,"tier":1,"change":"-1.13","rank":1,"sparkline":["20203.968383631716","20108.24855900587","20051.33382579625","20121.550797314565","20161.730510106","20262.359724033377","20311.419970515693","20346.360476516726","20343.949852023725","20382.213016951777","20323.39566595646","20241.738354658195","20217.508404168766","20183.62088115384","20159.744112050765","20135.103620334423","20152.838726388378","20223.999055486038","20188.386841136497","20099.650776087008","20022.525302913724","20060.360700925474","20058.49372151537","20101.79019444109","20068.60680042962"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Qwsogvtv82FCd+bitcoin-btc","24hVolume":"35960396792","btcPrice":"1"},{"uuid":"razxDUgYGNAdQ","symbol":"ETH","name":"Ethereum","color":"#3C3C3D","iconUrl":"https://cdn.coinranking.com/rk4RKHOuW/eth.svg","marketCap":"166061825600","price":"1357.6485041155122","listedAt":1438905600,"tier":1,"change":"-0.10","rank":2,"sparkline":["1355.1957971694667","1350.1443671510813","1349.0087694835117","1351.905027397555","1352.9470157886974","1366.327377860059","1375.6511405346198","1374.429028858314","1372.974155009473","1376.1292232921205","1373.8546363081466","1367.455774258437","1366.5564765946526","1362.598875204337","1360.3636987191837","1358.3640048395087","1360.4342504890021","1369.213281754299","1368.3676032576047","1364.1360571475047","1363.3432991494524","1364.0707758574745","1363.3606085887561","1364.148825121332","1361.3954792114398"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/razxDUgYGNAdQ+ethereum-eth","24hVolume":"18303988746","btcPrice":"0.06778281097990801"},{"uuid":"HIVsRcGKkPFtW","symbol":"USDT","name":"Tether USD","color":"#22a079","iconUrl":"https://cdn.coinranking.com/mgHqwlCLj/usdt.svg","marketCap":"68285632047","price":"1.001071028357668","listedAt":1420761600,"tier":1,"change":"0.25","rank":3,"sparkline":["1.00067474581623","1.0011258844386617","1.000453236983016","0.9996754852345027","1.0002283577144846","0.999155133910854","0.9996202452937143","1.0005460966801791","1.000125348965174","1.0000654683931005","1.0007064730998132","1.0010472845514906","1.0001871870812535","1.00097822584521","1.0002453605323327","1.0005499753502725","0.9999702733020642","0.9994598707479958","1.0012863570809547","1.0016448157620703","0.9996482331493484","1.0004215336032052","0.9999570213425627","0.9999224272643209","1.0007392056569566"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/HIVsRcGKkPFtW+tetherusd-usdt","24hVolume":"41635126802","btcPrice":"0.000049980100215141"},{"uuid":"aKzUVe4Hh_CON","symbol":"USDC","name":"USDC","color":"#7894b4","iconUrl":"https://cdn.coinranking.com/jkDf8sQbY/usdc.svg","marketCap":"46238950460","price":"1.0009827471883062","listedAt":1539043200,"tier":1,"change":"0.29","rank":4,"sparkline":["1.0004741029962485","1.000975745834551","1.000338200325115","0.9997127153360669","1.0002285816016003","0.9991683546380526","0.9996032812493789","1.000320594593321","1.000161525452162","1.0000743807108587","1.0007107512244124","1.0009449284705079","1.0001378697824121","1.0008248585454766","1.0001965553835719","1.0005780931027144","1.0000088554796078","0.9994586243665149","1.0011869248897938","1.0015496148117664","0.9997673802296243","1.0003598578573154","1.0000778482427792","0.9998861638814902","1.0006873238669673"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/aKzUVe4Hh_CON+usdc-usdc","24hVolume":"3319032373","btcPrice":"0.000049975692634094"},{"uuid":"WcwrkfNI4FUAe","symbol":"BNB","name":"Binance Coin","color":"#e8b342","iconUrl":"https://cdn.coinranking.com/B1N19L_dZ/bnb.svg","marketCap":"42446473786","price":"292.9853132704932","listedAt":1503014400,"tier":1,"change":"-0.34","rank":5,"sparkline":["293.97668506149665","293.1407075092398","292.99619261004176","293.314426319534","293.9805356534211","295.24355977219363","297.1727352838543","296.59209380777276","296.46326004057556","296.25895357215705","295.9508439506615","295.1130042842961","294.91264099674373","295.0512570831633","294.5306048069131","294.30050189031186","294.22403335151813","294.80827509690437","294.33033971155965","293.96591310440675","293.66576108995565","293.99310192770326","293.69072498915045","293.4540279331547","293.23188737664185"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/WcwrkfNI4FUAe+binancecoin-bnb","24hVolume":"790073614","btcPrice":"0.014627768563882485"},{"uuid":"-l8Mn2pVlRs-p","symbol":"XRP","name":"XRP","color":"#000000","iconUrl":"https://cdn.coinranking.com/B1oPuTyfX/xrp.svg","marketCap":"24661745131","price":"0.4946339678281492","listedAt":1421798400,"tier":1,"change":"0.04","rank":6,"sparkline":["0.4966034010193278","0.49554396329788797","0.4934182558388822","0.49362506737216266","0.49026802902183264","0.49265967443901376","0.49600890470479697","0.49519386112189673","0.49612095309902693","0.5009634729133409","0.5023452122436942","0.49856038118705276","0.4949608682752508","0.4937997408415523","0.4938461715574201","0.4949672333116952","0.49671660295169745","0.4983157134968618","0.4984385599250301","0.4958643382230643","0.4954888154508337","0.4956388106133542","0.49687913330335365","0.49710524663432437","0.4967817423491458"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/-l8Mn2pVlRs-p+xrp-xrp","24hVolume":"2060777935","btcPrice":"0.000024695405801946"},{"uuid":"vSo2fu9iE1s0Y","symbol":"BUSD","name":"Binance USD","color":"#f0b90b","iconUrl":"https://cdn.coinranking.com/6SJHRfClq/busd.svg","marketCap":"21401684209","price":"1.0009374128999708","listedAt":1563197940,"tier":1,"change":"0.22","rank":7,"sparkline":["1.0005806927683012","1.0010131698018379","1.0003766512497372","0.9996697334127012","1.0002044875058664","0.9990351601588866","0.9995181128660227","1.0004126037965064","1.0000179287511293","0.9999724471614664","1.000692632004645","1.0009515028021934","1.0000846954124145","1.0008893072028962","1.0001675248577555","1.0004436296308015","0.9998831620327592","0.9993790802417244","1.0011655146499898","1.0015608327721508","0.9996737479147666","1.0003874163381075","0.999855178764249","0.9997695857566036","1.0006363550917916"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/vSo2fu9iE1s0Y+binanceusd-busd","24hVolume":"6555400087","btcPrice":"0.000049973429245972"},{"uuid":"qzawljRxB5bYu","symbol":"ADA","name":"Cardano","color":"#3cc8c8","iconUrl":"https://cdn.coinranking.com/ryY28nXhW/ada.svg","marketCap":"13338760651","price":"0.42872694867780425","listedAt":1506902400,"tier":1,"change":"-0.75","rank":8,"sparkline":["0.4319128462866555","0.4301070093895049","0.4293607332904254","0.43052964249063624","0.43107589290128834","0.4320879931539995","0.43588829259760536","0.4355968719919596","0.4346959050890022","0.43498013589184065","0.4346669754920001","0.43312028905563876","0.43265616882118346","0.43191341474300415","0.4312921949359245","0.4311011590020075","0.4302280684331196","0.4319813231178509","0.43173383257478504","0.4303997167352433","0.429398559339474","0.4299648257425132","0.4297343398397519","0.42997828353732326","0.42937033740290426"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/qzawljRxB5bYu+cardano-ada","24hVolume":"472000466","btcPrice":"0.000021404890615007"},{"uuid":"zNZHO_Sjf","symbol":"SOL","name":"Solana","color":"#9cddec","iconUrl":"https://cdn.coinranking.com/yvUG4Qex5/solana.svg","marketCap":"11962392239","price":"33.675844527260054","listedAt":1586539320,"tier":1,"change":"-1.37","rank":9,"sparkline":["34.12016506022125","33.82346480906877","33.75172476906559","33.897106570663055","34.0318397133767","34.2713990985727","34.3353873127038","34.34342068038388","34.328153770745175","34.39807404919778","34.36632892039718","34.18697728036539","34.00984922956877","34.032297629030815","34.0205375439139","33.986450347226565","33.97284356925897","34.12322348136839","34.04818308388973","33.90841528770745","33.922236226998955","33.895084271212774","33.877508596833344","33.769632367031555","33.71898828195219"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/zNZHO_Sjf+solana-sol","24hVolume":"746955842","btcPrice":"0.001681321341466911"},{"uuid":"a91GCGd_u96cF","symbol":"DOGE","name":"Dogecoin","color":"#c2a633","iconUrl":"https://cdn.coinranking.com/H1arXIuOZ/doge.svg","marketCap":"8459276205","price":"0.06376141910465474","listedAt":1391212800,"tier":1,"change":"-1.95","rank":10,"sparkline":["0.06517900643903335","0.06479961509289048","0.06428429249412718","0.0643822298596851","0.06460689935721148","0.0650408192160027","0.06504698376655794","0.06503491080507982","0.06597766345501518","0.06597104799065628","0.06580401206150757","0.0655038835692329","0.06533905872763061","0.06510197364336227","0.06525813392333525","0.06507123735868817","0.06508747877233641","0.06537694106515178","0.06521416310707462","0.06486795280882116","0.06440018609785521","0.06431000551190193","0.06399099516985579","0.0639611688502269","0.06388198077385676"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/a91GCGd_u96cF+dogecoin-doge","24hVolume":"440063304","btcPrice":"0.000003183392612948"},{"uuid":"uW2tk-ILY0ii","symbol":"MATIC","name":"Polygon","color":"#8247e5","iconUrl":"https://cdn.coinranking.com/WulYRq14o/polygon.png","marketCap":"7358962383","price":"0.8404795037695242","listedAt":1558961160,"tier":1,"change":"-1.08","rank":11,"sparkline":["0.8488683947817877","0.844261325684805","0.8441517776694942","0.8516535236312476","0.8528667517203153","0.8538310293736446","0.8514044235965006","0.8494691100998122","0.8468719287432697","0.8483129178304412","0.846409617173921","0.8440408671561839","0.845969924983047","0.8474973485957346","0.8463925672110996","0.8432430183950218","0.8407816804410218","0.8419007497492077","0.8398864867524278","0.8393073071328305","0.8429567390022452","0.8430941255831178","0.8444119779861358","0.8446502533596543","0.8422100742264239"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/uW2tk-ILY0ii+polygon-matic","24hVolume":"415611443","btcPrice":"0.000041962307006416"},{"uuid":"25W7FG7om","symbol":"DOT","name":"Polkadot","color":"#d64cA8","iconUrl":"https://cdn.coinranking.com/RsljYqnbu/polkadot.svg","marketCap":"7344522551","price":"6.384280071801486","listedAt":1598365200,"tier":1,"change":"-0.08","rank":12,"sparkline":["6.3965864125254","6.404004723676076","6.396580513456493","6.4118313471558155","6.432157826539117","6.4585867738477205","6.491203189353306","6.503365628711354","6.493776043856009","6.4969261435753065","6.477679946923399","6.472448866542233","6.446417687489772","6.4451248697841494","6.445036089260377","6.436040246095806","6.435080457086081","6.463836456516857","6.450387542070514","6.421359237807177","6.391124134834344","6.389976567958392","6.385572049998837","6.392125200223458","6.382091060151221"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/25W7FG7om+polkadot-dot","24hVolume":"221416486","btcPrice":"0.000318745572243414"},{"uuid":"xz24e0BjL","symbol":"SHIB","name":"Shiba Inu","color":"#fda32b","iconUrl":"https://cdn.coinranking.com/D69LfI-tm/shib.png","marketCap":"6652108208","price":"0.00001128324794062","listedAt":1620650373,"tier":1,"change":"-1.29","rank":13,"sparkline":["0.000011430886900052","0.00001138463596749","0.00001138733759886","0.000011405292020829","0.00001143699351968","0.000011496602959082","0.000011522798136638","0.000011526794983798","0.00001156726241084","0.000011578749434759","0.000011495952496203","0.000011463028444232","0.000011435008665671","0.00001144032221974","0.000011461144205322","0.000011476554808705","0.000011469743005642","0.00001147197624755","0.000011424815330699","0.000011366708333454","0.0000113570498162","0.000011330129168691","0.000011283648128574","0.000011278387257469","0.000011289529854914"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/xz24e0BjL+shibainu-shib","24hVolume":"262980048","btcPrice":"5.63334516e-10"},{"uuid":"MoTuySvg7","symbol":"DAI","name":"Dai","color":null,"iconUrl":"https://cdn.coinranking.com/mAZ_7LwOE/mutli-collateral-dai.svg","marketCap":"6334106502","price":"1.000570450749159","listedAt":1585574040,"tier":1,"change":"0.25","rank":14,"sparkline":["1.000186297816053","1.0007170712510804","1.000076003665291","0.9995190316555369","0.9998862356864888","0.9989127563401832","0.9993980043346639","0.9998645744521338","0.9998146071451304","0.9995523850278402","1.0001791138289333","1.0005514323488356","0.9999749336446756","1.0003550198188038","1.0000223644977213","1.0001689023102156","0.9997500246036027","0.999188166117977","1.0005244452746045","1.0009465956605519","0.999923212227354","0.999943746062425","0.9998895246210896","0.9996584146724661","1.00032070114622"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/MoTuySvg7+dai-dai","24hVolume":"106945713","btcPrice":"0.000049955108063406"},{"uuid":"qUhEFk1I61atv","symbol":"TRX","name":"TRON","color":"#eb0029","iconUrl":"https://cdn.coinranking.com/behejNqQs/trx.svg","marketCap":"5773520085","price":"0.06252708822599085","listedAt":1505260800,"tier":1,"change":"0.09","rank":15,"sparkline":["0.062490450573204355","0.0623310141321653","0.06237286872116223","0.06246471742963638","0.06241172909992005","0.06222575081152512","0.062246052639756126","0.0626926791910014","0.06279923150630577","0.06276578075127191","0.06267020237072249","0.0625456021280362","0.062449168944641004","0.062470443380712434","0.06256137344897823","0.06269756605100256","0.06269254530093321","0.06269809717602999","0.06270258509423554","0.06262935941097252","0.0625525372842027","0.0626080433578714","0.06263852382635865","0.06265458985596026","0.06258971581342093"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/qUhEFk1I61atv+tron-trx","24hVolume":"319896786","btcPrice":"0.000003121766635104"},{"uuid":"Mtfb0obXVh59u","symbol":"WETH","name":"Wrapped Ether","color":"#303030","iconUrl":"https://cdn.coinranking.com/KIviQyZlt/weth.svg","marketCap":"5515799820","price":"1358.9688222082978","listedAt":1600259445,"tier":1,"change":"0.40","rank":16,"sparkline":["1356.5732586778527","1352.0719502189272","1349.2246427699731","1351.8387835694202","1354.6183861187728","1362.6280153931773","1373.436900799631","1375.3644528730088","1373.4188949549532","1374.6125126235245","1374.2330132945756","1369.816880893475","1366.6442277093329","1364.4398969103008","1361.7692633130323","1360.874730475116","1360.5880536977058","1367.7933188873656","1371.0864182649937","1366.2849418001506","1363.6612621508384","1366.3897957603679","1362.6017418911797","1363.558194381478","1361.1032201925939"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Mtfb0obXVh59u+wrappedether-weth","24hVolume":"321040508","btcPrice":"0.06788016952161434"},{"uuid":"_H5FVG9iW","symbol":"UNI","name":"Uniswap","color":"#ff007a","iconUrl":"https://cdn.coinranking.com/1heSvUgtl/uniswap-v2.svg?size=48x48","marketCap":"5353533862","price":"6.894020122063479","listedAt":1600323371,"tier":1,"change":"2.08","rank":17,"sparkline":["6.775059279986249","6.758213036449903","6.7721692645296505","6.758329949999127","6.79774330771248","6.872154058933371","6.943589001249496","6.97921769368874","6.943933667270293","6.928301334277354","6.906609412142296","6.871228973240848","6.898965983267765","6.902438327868096","6.863039316865727","6.8298809342946445","6.841694456601706","6.90374298301861","6.8980780970926565","6.846666245892528","6.840143513460894","6.886346571294433","6.894919048207694","6.8980327967208135","6.897799219282073"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/_H5FVG9iW+uniswap-uni","24hVolume":"178463429","btcPrice":"0.000344195173794227"},{"uuid":"dvUj0CzDZ","symbol":"AVAX","name":"Avalanche","color":"#e84242","iconUrl":"https://cdn.coinranking.com/S0C6Cw2-w/avax-avalanche.png","marketCap":"5080602981","price":"17.158675617919222","listedAt":1600961596,"tier":1,"change":"-0.92","rank":18,"sparkline":["17.30831877293559","17.258822212116986","17.254916542277368","17.317908074079064","17.363786992952992","17.454761466692503","17.543241013498488","17.54683351869748","17.522053872857185","17.571807935450114","17.505279274718713","17.42149676784545","17.402913385205366","17.367848226413336","17.336368659218273","17.319601875912156","17.320429202377582","17.375834229410586","17.37115155021162","17.337499378166246","17.29492516682681","17.27482970087828","17.236186499512122","17.23084707590994","17.187481717207028"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/dvUj0CzDZ+avalanche-avax","24hVolume":"189500112","btcPrice":"0.00085667480393439"},{"uuid":"x4WXHge-vvFY","symbol":"WBTC","name":"Wrapped BTC","color":"#000000","iconUrl":"https://cdn.coinranking.com/o3-8cvCHu/wbtc[1].svg","marketCap":"4902193989","price":"20028.855538247128","listedAt":1549894980,"tier":1,"change":"-1.20","rank":19,"sparkline":["20207.23732618027","20110.453223281886","20052.82798227752","20119.400015935713","20156.923955556937","20260.350057885225","20307.00444314564","20345.21936097743","20341.49681229592","20380.578094513094","20318.8122688521","20239.30732353884","20213.14393253162","20181.299321117534","20155.621076440202","20130.24398537466","20151.81371000324","20220.458796392188","20191.06461094672","20102.3711890372","20023.818445349818","20063.904548084807","20060.09333245677","20106.126030789226","20068.970588505534"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/x4WXHge-vvFY+wrappedbtc-wbtc","24hVolume":"54900769","btcPrice":"0.9999732073342156"},{"uuid":"Knsels4_Ol-Ny","symbol":"ATOM","name":"Cosmos","color":"#5064fb","iconUrl":"https://cdn.coinranking.com/HJzHboruM/atom.svg","marketCap":"4079164034","price":"13.103803950679156","listedAt":1552520100,"tier":1,"change":"1.50","rank":20,"sparkline":["12.925944851281226","12.868593902936329","12.878938070898451","12.983826758391368","13.002833379180819","13.062273951698831","13.140384744685578","13.17111542584369","13.171617318968808","13.15217159665712","13.1363313850316","13.0503320793683","13.025595433990174","13.012560239822703","12.998975121153673","12.998577583467394","12.961451954944232","13.060564440903033","13.110658052250319","13.099438593619361","13.13330326447949","13.33452783192435","13.373831271270106","13.343650016008963","13.181674409038528"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Knsels4_Ol-Ny+cosmos-atom","24hVolume":"513722096","btcPrice":"0.000654228737124646"},{"uuid":"PDKcptVnzJTmN","symbol":"OKB","name":"OKB","color":"#2d60e0","iconUrl":"https://cdn.coinranking.com/xcZdYtX6E/okx.png","marketCap":"3938559513","price":"15.652334369321018","listedAt":1538524800,"tier":1,"change":"0.34","rank":21,"sparkline":["15.580242673997288","15.65410792859574","15.560393132022524","15.564783139589581","15.519383534890673","15.571869248215773","15.65144337411307","15.729616798445825","15.728640405259684","15.756568986458378","15.719867983088795","15.66745665705333","15.658409845138157","15.651646315234636","15.638815307350377","15.638325526594082","15.630250194419004","15.770101867167902","15.772787444807776","15.726419071810144","15.730397527991796","15.706278363014619","15.644427965881071","15.661521309252834","15.65810007258811"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/PDKcptVnzJTmN+okb-okb","24hVolume":"16544921","btcPrice":"0.000781468265706375"},{"uuid":"D7B1x_ks7WhV5","symbol":"LTC","name":"Litecoin","color":"#345d9d","iconUrl":"https://cdn.coinranking.com/BUvPxmc9o/ltcnew.svg","marketCap":"3831241287","price":"54.06370736300305","listedAt":1382572800,"tier":1,"change":"-1.27","rank":22,"sparkline":["54.706460858051805","54.486786633917","54.285250668307526","54.364815722649475","54.528961365730304","54.7368993203946","54.837191694188455","54.85583110277171","54.843295781423734","54.79083620498672","54.76228550686846","54.455750836831356","54.36182535628572","54.35097944334183","54.422181211169935","54.4489516734391","54.48573164038176","54.566006895097175","54.60169376918578","54.434757779526166","54.23335179752326","54.413459080815954","54.21240080510803","54.29942643192169","54.14247458562991"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/D7B1x_ks7WhV5+litecoin-ltc","24hVolume":"414944965","btcPrice":"0.00269921857237041"},{"uuid":"NfeOYfNcl","symbol":"FTT","name":"FTX Token","color":"#77d9ed","iconUrl":"https://cdn.coinranking.com/WyBm4_EzM/ftx-exchange.svg","marketCap":"3294301096","price":"24.678566252019138","listedAt":1566222960,"tier":1,"change":"-0.99","rank":23,"sparkline":["24.84863673360048","24.731148744683015","24.681755275069403","24.734413500517867","24.769185383467647","24.923695092650647","25.010616103895188","25.016770400105614","25.043404692278855","25.100611739124314","25.05061962383413","24.944036589670592","24.913091567109454","24.875936324284226","24.84671933295274","24.828862066050032","24.846952016930494","24.962693812346263","24.917387870404692","24.806139246634455","24.74429478499735","24.780282567891753","24.77215711531799","24.782999234672975","24.733584769696286"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/NfeOYfNcl+ftxtoken-ftt","24hVolume":"63306820","btcPrice":"0.001232117581572075"},{"uuid":"hnfQfsYfeIGUQ","symbol":"ETC","name":"Ethereum Classic","color":"#699070","iconUrl":"https://cdn.coinranking.com/rJfyor__W/etc.svg","marketCap":"3251414903","price":"27.953939321518934","listedAt":1469577600,"tier":1,"change":"1.11","rank":24,"sparkline":["27.63321589941744","27.58202782358664","27.56392529267854","27.5949775300032","27.63778161485439","27.736490721193018","28.39677573266268","28.681588383759877","28.44425346523266","28.45911275994896","28.42750317289106","28.254777612218916","28.1429136955099","28.154520421670963","28.240843430286514","28.318006504862765","28.299833108837987","28.329928166122407","28.27078454554885","28.13957915693539","28.037422192263545","28.02538763544355","27.990684342238957","27.99587068353575","27.980180249457508"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/hnfQfsYfeIGUQ+ethereumclassic-etc","24hVolume":"650721313","btcPrice":"0.001395645912348106"},{"uuid":"3mVx2FX_iJFp5","symbol":"XMR","name":"Monero","color":"#ff7519","iconUrl":"https://cdn.coinranking.com/Syz-oSd_Z/xmr.svg","marketCap":"2644484614","price":"145.4330391999523","listedAt":1422489600,"tier":1,"change":"-0.74","rank":25,"sparkline":["146.94173270369004","146.25404163278355","146.0377022736895","146.25176101324263","146.1822682569043","147.0770075706438","147.52969184954443","147.82022894470867","148.37593172563746","149.05034918562527","147.75879531115433","145.84431743561993","145.47401337391443","145.43911678899732","145.13011985927878","145.01926185302602","145.05380463743765","145.5189388138254","144.94121932498405","144.55169371872742","144.03637609256356","144.0602822952893","143.9422537624223","144.01800973377962","144.85743594518297"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/3mVx2FX_iJFp5+monero-xmr","24hVolume":"107521449","btcPrice":"0.007260981157082457"},{"uuid":"TpHE2IShQw-sJ","symbol":"ALGO","name":"Algorand","color":null,"iconUrl":"https://cdn.coinranking.com/lzbmCkUGB/algo.svg","marketCap":"2457307336","price":"0.3502871452525357","listedAt":1562082540,"tier":1,"change":"-0.51","rank":26,"sparkline":["0.3527488328226558","0.35220710417088796","0.35149031131442215","0.3522890146063405","0.3531848827851723","0.35437183968426583","0.3567082813614958","0.3568875577741808","0.35623433411535693","0.3578322372848037","0.3576518518997961","0.3570277246343137","0.35580495927026995","0.3549060979115252","0.3544949322189096","0.35419673898063","0.3545814398327581","0.3560563698021784","0.35476940248868055","0.35303138884975377","0.3526138360299577","0.353297325772352","0.3530050986834627","0.3519348960977679","0.3512839084444219"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/TpHE2IShQw-sJ+algorand-algo","24hVolume":"114516188","btcPrice":"0.000017488655777522"},{"uuid":"f3iaFeCKEmkaZ","symbol":"XLM","name":"Stellar","color":"#000000","iconUrl":"https://cdn.coinranking.com/78CxK1xsp/Stellar_symbol_black_RGB.svg","marketCap":"2426817955","price":"0.12010666028122727","listedAt":1484611200,"tier":1,"change":"0.34","rank":27,"sparkline":["0.11946420943582607","0.11912472301742397","0.11884523375505367","0.11908277850194623","0.11895901878010605","0.11904417569954241","0.1194108721121216","0.11925980402300661","0.11936415064859447","0.11976375793050911","0.11978487560384776","0.11916206905037235","0.11897208646439993","0.11911213921537671","0.11882743355055038","0.11868474386838856","0.11878227754760867","0.11974550069912294","0.11958643330478903","0.11927337184798883","0.11957351041625688","0.11944049884817015","0.12009378998253879","0.12024109052539109","0.12017728479638659"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/f3iaFeCKEmkaZ+stellar-xlm","24hVolume":"162687717","btcPrice":"0.000005996520473887"},{"uuid":"ZlZpzOJo43mIo","symbol":"BCH","name":"Bitcoin Cash","color":"#8dc451","iconUrl":"https://cdn.coinranking.com/By8ziihX7/bch.svg","marketCap":"2296807697","price":"120.05434571253869","listedAt":1541808000,"tier":1,"change":"-2.35","rank":28,"sparkline":["122.67694332734729","122.3278382037123","122.30773411807947","122.25039668314258","122.19157595212056","122.83530239892909","123.1940069678215","122.92546780609763","122.74097933708403","122.6131282480114","122.19145107828301","121.46370201610601","121.04945353042237","121.08144019937376","121.3486844528348","121.35241663771652","121.4308975310673","121.83807088869149","121.79108869683151","121.38727041457742","120.77014246462569","120.9730955171752","120.81712651964756","120.67586343768751","120.35934093743896"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/ZlZpzOJo43mIo+bitcoincash-bch","24hVolume":"189086609","btcPrice":"0.005993908583909263"},{"uuid":"9_jH48RBW","symbol":"BTCB","name":"Bitcoin BEP2","color":"#ff9d14","iconUrl":"https://cdn.coinranking.com/Swr_SeZio/4023.png","marketCap":"2256819816","price":"20060.442274396293","listedAt":1629334963,"tier":1,"change":"-0.42","rank":29,"sparkline":["20238.973751908492","20133.197961225203","20047.333792919962","20087.343894321733","20159.394462561493","20224.635751815204","20306.9255861848","20357.39118685795","20334.177674095823","20380.735634942914","20334.29432495635","20278.707779471843","20234.022033611724","20214.37272239842","20157.58477689183","20148.427911440165","20139.404745478332","20195.51476083255","20218.207717425983","20128.86850120113","20006.9744546404","20060.410623139804","20033.996371801375","20098.47310976815","20097.464012404307"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/9_jH48RBW+bitcoinbep2-btcb","24hVolume":"12239219","btcPrice":"1.0020143214557586"},{"uuid":"DCrsaMv68","symbol":"NEAR","name":"NEAR Protocol","color":"#000000","iconUrl":"https://cdn.coinranking.com/Cth83dCnl/near.png","marketCap":"2213514097","price":"3.641580551056011","listedAt":1615164591,"tier":1,"change":"-1.76","rank":30,"sparkline":["3.70750458071197","3.6824957041196416","3.6757465487798333","3.6928192139697984","3.6940747496238986","3.70605194624562","3.7395994850569783","3.7274777350306603","3.7261149464334484","3.7322389451888762","3.71323745519199","3.6824155966901064","3.6731776061650954","3.6707256113983564","3.682858101631704","3.6816966205355786","3.6732422481738896","3.68742500998647","3.67949841043138","3.658086252545483","3.6466882303359083","3.653534815527586","3.6524651001872352","3.6566637162352977","3.6505578611908183"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/DCrsaMv68+nearprotocol-near","24hVolume":"177528870","btcPrice":"0.000181811835251974"},{"uuid":"65PHZTpmE55b","symbol":"CRO","name":"Cronos","color":"#01275d","iconUrl":"https://cdn.coinranking.com/2o91jm73M/cro.svg","marketCap":"2208347683","price":"0.10980286985731572","listedAt":1548953220,"tier":1,"change":"-0.74","rank":31,"sparkline":["0.11016228966006657","0.10968594168431677","0.10964927879479568","0.11005473582804114","0.11027422558257975","0.11073314021872514","0.11109138099592394","0.11106353920744405","0.11110339624354595","0.11125346285145259","0.1109178010991276","0.11057847758884053","0.11052619147867672","0.11037764443683885","0.11018324144957391","0.11015957429341776","0.11025941309951554","0.1107306596648452","0.11056541424952443","0.11033981054182589","0.11014982408569168","0.11018846762437533","0.11026378704001755","0.11036637137706824","0.11006396812568181"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/65PHZTpmE55b+cronos-cro","24hVolume":"19761028","btcPrice":"0.000005482086968776"},{"uuid":"AaQUAs2Mc","symbol":"LUNC","name":"Terra Classic","color":"#0E3CA5","iconUrl":"https://cdn.coinranking.com/F-PJdF8Um/LUNA.svg","marketCap":"1916185578","price":"0.000290737400138069","listedAt":1565957940,"tier":1,"change":"-2.70","rank":32,"sparkline":["0.000299121841521715","0.00029963973487461","0.000297525427108662","0.000299831775365707","0.000301585899113257","0.000299624370013334","0.000298991487467118","0.00030262712555721","0.000302917282400826","0.000301395879660939","0.000300507018284572","0.000298793950231793","0.000295429238011752","0.00029451177987895","0.000296163406502654","0.000295896753590268","0.000296293813138895","0.00029712340206075","0.000296241802461865","0.000294833413425782","0.000295805632133273","0.000295448279840089","0.000294342506473691","0.000292052607134611","0.000290629002509443"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/AaQUAs2Mc+terraclassic-lunc","24hVolume":"92713449","btcPrice":"1.4515537843e-8"},{"uuid":"08CsQa-Ov","symbol":"WEMIX","name":"WEMIX TOKEN","color":"#9bdc70","iconUrl":"https://cdn.coinranking.com/1N84MQsoO/7548.png","marketCap":"1803326639","price":"1.8033266385015005","listedAt":1638249982,"tier":1,"change":"-1.16","rank":33,"sparkline":["1.8285967152459395","1.8278723134807413","1.8195129105444636","1.8259705488511466","1.8286109679363158","1.8355357951458109","1.8374726075890546","1.8338785300044889","1.8344005132904393","1.8386764723564313","1.8393287115439652","1.8301651359756594","1.8198595455403543","1.8134695201238413","1.8119386729956268","1.8082288357010967","1.8068009632735749","1.8188388540688198","1.8203819894312625","1.814524337055796","1.808721193963964","1.8196357521223283","1.815149328780377","1.8112776438372116","1.8108458436676627"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/08CsQa-Ov+wemixtoken-wemix","24hVolume":"11666450","btcPrice":"0.000090034017127441"},{"uuid":"QQ0NCmjVq","symbol":"FLOW","name":"Flow","color":"#9efad7","iconUrl":"https://cdn.coinranking.com/xh8X8QBss/flow.png","marketCap":"1757607942","price":"1.6962053096925191","listedAt":1614963736,"tier":1,"change":"0.50","rank":34,"sparkline":["1.6922480978885228","1.6860191291670321","1.689415193344878","1.6917383647950757","1.6959828586697636","1.7038955974124341","1.7142205632595247","1.7133094615446174","1.7153447123955954","1.7178175260495157","1.7110304309251112","1.7039099391519943","1.6998006306014941","1.7003688832097956","1.6968447607894448","1.6929234664355564","1.692450465901943","1.7010313056523052","1.6985550988885165","1.6893705490937398","1.6866645696902811","1.7019443099317626","1.7014230772153076","1.7069133070811424","1.7033611748224882"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/QQ0NCmjVq+flow-flow","24hVolume":"48086880","btcPrice":"0.000084685810459393"},{"uuid":"SbWqqTui-","symbol":"ENS","name":"EnergySwap","color":"#ffda55","iconUrl":"https://cdn.coinranking.com/fmYxEUV5a/cropped-logo37-Converted-01-192x192.png","marketCap":"1717587669","price":"17.175876690094942","listedAt":1626134763,"tier":1,"change":"-0.24","rank":35,"sparkline":["17.289779191921472","17.141210993619577","17.08040451137421","17.06367669811532","17.263046139058346","17.38897035978985","17.34903128275215","17.37536485913112","17.408081484557286","17.656981087936845","17.554159392743454","17.418970877607208","17.34686167592786","17.445574853391744","17.32297480082281","17.37509972478323","17.34525419003646","17.409372532584655","17.389133405821546","17.35036829752898","17.427069919455597","17.552044170794996","17.412493725255267","17.349458429441366","17.146992959728287"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/SbWqqTui-+energyswap-ens","24hVolume":"17240841","btcPrice":"0.000857165465951273"},{"uuid":"ymQub4fuB","symbol":"FIL","name":"Filecoin","color":"#0090ff","iconUrl":"https://cdn.coinranking.com/vUmvv-IQA/FIL3-filecoin.svg?size=48x48","marketCap":"1627152239","price":"5.536278289924524","listedAt":1602839473,"tier":1,"change":"-0.89","rank":36,"sparkline":["5.596535901455788","5.57969664398857","5.5616781706384915","5.567770853835976","5.578284003424381","5.604028531451866","5.625801664716765","5.621277230377107","5.636563163916574","5.634225510084751","5.620160956189447","5.602784187323373","5.58939589293232","5.592369569284194","5.578504466675582","5.569698214994045","5.57106966286358","5.5871830930712845","5.58594625512426","5.567567471367906","5.557070809165411","5.564056973722409","5.560812558868851","5.555371588027569","5.5431943077677825"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/ymQub4fuB+filecoin-fil","24hVolume":"193736485","btcPrice":"0.000276407703260868"},{"uuid":"aMNLwaUbY","symbol":"ICP","name":"Internet Computer (DFINITY)","color":"#00042b","iconUrl":"https://cdn.coinranking.com/1uJ_RVrmC/dfinity-icp.png","marketCap":"1585280534","price":"6.036699371836296","listedAt":1601555742,"tier":1,"change":"0.25","rank":37,"sparkline":["6.0303980101123935","6.022359280222669","6.01622779603638","6.02844834848022","6.025186457194555","6.0413255348583945","6.068942882872111","6.0877269427721865","6.122569377263406","6.121307379280848","6.114910042324755","6.086663439924114","6.05948511630208","6.054607074054347","6.044824998176658","6.039684832886364","6.031722431559297","6.051848135596568","6.052505386943968","6.039004021283348","6.03094716124407","6.0282463753416","6.032921444329065","6.04632010848593","6.041115706175561"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/aMNLwaUbY+internetcomputerdfinity-icp","24hVolume":"26782208","btcPrice":"0.000301392040151281"},{"uuid":"FEbS54wxo4oIl","symbol":"VET","name":"VeChain","color":"#4bc0fa","iconUrl":"https://cdn.coinranking.com/B1_TDu9Dm/VEN.svg","marketCap":"1571751323","price":"0.023543047797492656","listedAt":1533427200,"tier":1,"change":"-1.39","rank":38,"sparkline":["0.023823765118321034","0.02377340508432418","0.023748488388460245","0.02381125373722562","0.023864456977472057","0.023984157434664824","0.024045369361452452","0.024051305042701605","0.024014721017668543","0.024044338125516478","0.023988207016907237","0.023854278354627466","0.023793046417946048","0.023839365677651318","0.02381560283772684","0.02375080527252874","0.023755408145521056","0.02387716977416547","0.02387351543491939","0.023763817483126306","0.023691552163897643","0.023726104965078293","0.02368589760998112","0.023671062742535463","0.023601726034422614"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/FEbS54wxo4oIl+vechain-vet","24hVolume":"65510017","btcPrice":"0.000001175424974808"},{"uuid":"ncYFcP709","symbol":"CAKE","name":"PancakeSwap","color":"#fe9555","iconUrl":"https://cdn.coinranking.com/aRtgdw7bQ/pancakeswap-cake-logo.png","marketCap":"1569553090","price":"4.719252048982707","listedAt":1613642379,"tier":1,"change":"0.61","rank":39,"sparkline":["4.695086344247684","4.667585420158127","4.6588485830229605","4.666802605325257","4.670637748826419","4.708273594292242","4.729111226744663","4.715177936812784","4.723046037245001","4.727423615129483","4.712401882843277","4.702427068127662","4.700110575792256","4.700438661119112","4.691700450917038","4.677135351952703","4.694429858732558","4.721898404666295","4.72192706714792","4.711492514608389","4.722961417487937","4.727350513894986","4.726777756847048","4.730691546772397","4.723894121828546"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/ncYFcP709+pancakeswap-cake","24hVolume":"36882299","btcPrice":"0.00023561633856853"},{"uuid":"tEf7-dnwV3BXS","symbol":"MANA","name":"Decentraland","color":"#f47e33","iconUrl":"https://cdn.coinranking.com/ph_svUzXs/decentraland(1).svg","marketCap":"1535637639","price":"0.7000854070071796","listedAt":1500336000,"tier":1,"change":"-0.75","rank":40,"sparkline":["0.7061958610934181","0.7032832644643586","0.7014374348943289","0.7014375536213877","0.7026826908124838","0.7044808209825967","0.7067232519766197","0.7095270107866539","0.7110022917743806","0.7106053240648419","0.7099564532586407","0.7069481464587034","0.7054561708729212","0.7072193110953995","0.7050915198697436","0.7044747588216688","0.7041160697442599","0.7066206655413716","0.7058549946852882","0.7032486369948753","0.7012876549332069","0.7009747852786251","0.700473849406315","0.7005982029037023","0.7002369574369308"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/tEf7-dnwV3BXS+decentraland-mana","24hVolume":"130918401","btcPrice":"0.000034952903250812"},{"uuid":"Z96jIvLU7","symbol":"IMX","name":"Immutable X","color":"#000000","iconUrl":"https://cdn.coinranking.com/naRGT2Y_X/10603.png","marketCap":"1526599264","price":"0.7632996320832136","listedAt":1649387294,"tier":1,"change":"-3.76","rank":41,"sparkline":["0.7924038051721074","0.7880566513420024","0.7858201134232504","0.7859515208715279","0.7867008505812916","0.7919544953384113","0.7932637742652324","0.7917138701346231","0.793595091396988","0.7929496834191253","0.7896506553814846","0.7859338442030059","0.782765170473147","0.7827849158908187","0.7815399732777862","0.7772118263855671","0.7746419330272937","0.7799681155884691","0.777981466209664","0.7739045575146072","0.7718550460057184","0.7715939215456447","0.7695383673672498","0.7673191324882311","0.7657534786224457"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Z96jIvLU7+immutablex-imx","24hVolume":"39904679","btcPrice":"0.000038108976311388"},{"uuid":"jad286TjB","symbol":"HBAR","name":"Hedera","color":"#000000","iconUrl":"https://cdn.coinranking.com/dSCnSLilQ/hedera.svg","marketCap":"1410292514","price":"0.05792718953571414","listedAt":1568704980,"tier":1,"change":"-0.02","rank":42,"sparkline":["0.05794895825165379","0.057734766734663975","0.05770834356572597","0.05776457891143251","0.05793603308495811","0.05811275998376636","0.058253201071108464","0.058380186435012055","0.058394791168773975","0.05840849259769676","0.05828468543736715","0.05815078870632387","0.05808136692729906","0.058157030241846555","0.05809696154952601","0.05804430834562561","0.058079013279903904","0.058270287529447726","0.05828744692577993","0.05819030965298005","0.05799510351002881","0.05801850162696806","0.05804288093820356","0.05809254408384736","0.05803413483043568"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/jad286TjB+hedera-hbar","24hVolume":"54394708","btcPrice":"0.000002892109207202"},{"uuid":"KfWtaeV1W","symbol":"FRAX","name":"Frax","color":"#000000","iconUrl":"https://cdn.coinranking.com/BpVNCX-NM/frax.png","marketCap":"1358167201","price":"1.0000747739721663","listedAt":1615299931,"tier":1,"change":"0.23","rank":43,"sparkline":["0.9997156631485098","1.0002802810205966","0.9997558584400775","0.99912357231276","0.9995882216164746","0.998401069923201","0.9989639051392774","0.9994726314335471","0.999514114256888","0.9993306245772301","0.9999516584075651","1.000221641596607","0.99959042305783","1.0001187705349235","0.9995079927133396","0.999782374902935","0.999308877507305","0.9988846870195152","1.0005152287641716","1.0008340522704022","0.9994436410988572","0.9996849217788387","0.9995211220531371","0.999211197536607","0.9999983085146361"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/KfWtaeV1W+frax-frax","24hVolume":"3772283","btcPrice":"0.000049938163358701"},{"uuid":"bauj_21eYVwso","symbol":"QNT","name":"Quant","color":"#585e63","iconUrl":"https://cdn.coinranking.com/a-i9Dl392/quant.png","marketCap":"1351641110","price":"138.24368254540943","listedAt":1533945600,"tier":1,"change":"0.22","rank":44,"sparkline":["137.5462424930445","137.1444980040031","136.78826724810827","137.90003847715815","138.0526014339526","138.9625334758965","139.0907456741905","139.0537169871792","139.17039434216352","138.75289369204114","137.79602086880834","137.47400977345043","137.8859162008118","139.3980081209242","138.9594762558207","139.35956951767986","139.76224675334996","140.73346306408735","139.70014562219615","139.58102151134608","139.19177605867037","139.65458123164169","139.17824474960636","139.1901615972891","138.83319330338816"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/bauj_21eYVwso+quant-qnt","24hVolume":"35630086","btcPrice":"0.006902040826279012"},{"uuid":"fsIbGOEJWbzxG","symbol":"XTZ","name":"Tezos","color":"#2c7df7","iconUrl":"https://cdn.coinranking.com/HkLUdilQ7/xtz.svg","marketCap":"1300100834","price":"1.4315350379639447","listedAt":1530662400,"tier":1,"change":"0.09","rank":45,"sparkline":["1.4300212075185095","1.4260850526744837","1.4210977739314623","1.4263183927748369","1.4283349120519158","1.4351536445029407","1.445847845207989","1.4455351824304574","1.4432977874541641","1.4488590688045635","1.444524532817821","1.4390895849126069","1.4357134681033727","1.436366388066666","1.4339651090330499","1.4334495267586773","1.4333504141935083","1.4389840361204465","1.4379456439736016","1.4315401694215406","1.4240153029007887","1.4240927210678032","1.4220389629012662","1.4290008245398644","1.4312652127406216"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/fsIbGOEJWbzxG+tezos-xtz","24hVolume":"29156674","btcPrice":"0.000071471716423863"},{"uuid":"omwkOTglq","symbol":"EGLD","name":"Elrond","color":"#000000","iconUrl":"https://cdn.coinranking.com/X62ruAuZQ/Elrond.svg","marketCap":"1299190479","price":"54.98746473723186","listedAt":1612524044,"tier":1,"change":"0.40","rank":46,"sparkline":["54.772491500471865","54.6126288550714","54.39386050530093","54.14825733323265","54.255627130760054","54.798824904486764","55.28575517141894","55.13533040428158","55.43272303660366","55.12366968257936","55.041268165468246","54.76702260252329","54.612683718253066","54.73084890510059","55.07467359664748","55.12258904806393","55.12232719822051","55.10748540691841","55.01733359597467","54.876885804473424","54.85576050348866","55.096674446643746","55.35611005385607","54.96784781952569","54.84449264613283"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/omwkOTglq+elrond-egld","24hVolume":"79993091","btcPrice":"0.002745338662584365"},{"uuid":"GSCt2y6YSgO26","symbol":"CHZ","name":"Chiliz","color":"#d05e72","iconUrl":"https://cdn.coinranking.com/gTsOlSnwR/4066.png","marketCap":"1280569722","price":"0.2155524581948288","listedAt":1562332440,"tier":1,"change":"-0.31","rank":47,"sparkline":["0.2168847528826314","0.2170843186771997","0.21526541140557998","0.2157234313328782","0.21663082409427212","0.21739445068217675","0.21886323194001345","0.21955587559095596","0.2197380199024719","0.2190179121601352","0.21830866175156532","0.21787031346559602","0.21679158202430746","0.21600225868090728","0.21587704160172458","0.2158448062065273","0.21568131629647883","0.21628666481515962","0.21575577092565493","0.21492437995400548","0.21514404501911413","0.2171108493305216","0.21771656940310347","0.21679986568652215","0.21607273994568685"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/GSCt2y6YSgO26+chiliz-chz","24hVolume":"235249948","btcPrice":"0.000010761807261441"},{"uuid":"pxtKbG5rg","symbol":"SAND","name":"The Sandbox","color":"#00adef","iconUrl":"https://cdn.coinranking.com/kd_vwOcnI/sandbox.png","marketCap":"1270381178","price":"0.8472200188493824","listedAt":1613583024,"tier":1,"change":"-2.04","rank":48,"sparkline":["0.8662372397723572","0.8640967954378587","0.8585899768679298","0.8600201705460304","0.8613894504696452","0.8657826316529281","0.8666978968431461","0.8665742629116818","0.8661387704849524","0.8669151762173647","0.8642951367281536","0.8597633681665815","0.8594894861007909","0.8662535514126233","0.8588847882234059","0.8544149170251873","0.8528484459196816","0.8567742977148085","0.8559971556239261","0.8526369746427614","0.8503963749700182","0.8514893353210455","0.8513642787546029","0.8508505323793061","0.8483933250963328"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/pxtKbG5rg+thesandbox-sand","24hVolume":"80636351","btcPrice":"0.000042298838191167"},{"uuid":"Pe93bIOD2","symbol":"LDO","name":"Lido DAO Token","color":"#77cced","iconUrl":"https://cdn.coinranking.com/Wp6LFY6ZZ/8000.png","marketCap":"1213105246","price":"1.5082327665030524","listedAt":1627361901,"tier":1,"change":"-0.64","rank":49,"sparkline":["1.5264620522764079","1.5169889431407702","1.514815885798867","1.5192756892130144","1.5249759691093254","1.540406741914171","1.5548374133624372","1.556582015073977","1.563313056474425","1.5606864809598795","1.5643757134332952","1.5472145671770638","1.5395769620786295","1.5413748243293799","1.5406687905041778","1.5536997118197664","1.5585509390347834","1.5605461378658754","1.556322526404288","1.5432139594119398","1.527711427666444","1.5295360489082588","1.5251991365229256","1.523882390305484","1.5152199119209957"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Pe93bIOD2+lidodaotoken-ldo","24hVolume":"9420143","btcPrice":"0.000075300975337636"},{"uuid":"iAzbfXiBBKkR6","symbol":"EOS","name":"EOS","color":"#443f54","iconUrl":"https://cdn.coinranking.com/PqOYrWSje/eos2.svg","marketCap":"1156681628","price":"1.170120302982607","listedAt":1498694400,"tier":1,"change":"-0.39","rank":50,"sparkline":["1.176144663806434","1.1710841823223916","1.1694666061233425","1.1716686337875348","1.1744690272298421","1.1797882879344748","1.1852495425709062","1.1853727662761209","1.1867848194424315","1.1885419549538256","1.1868966006158645","1.181552351792292","1.1769635624968604","1.17614591514241","1.1773458464363997","1.1770861707666584","1.1811474861902838","1.1833592012519114","1.1818251357201783","1.1782503602022067","1.176960097898779","1.1767921922729265","1.1759604894059537","1.1750064515228658","1.1729163746108195"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/iAzbfXiBBKkR6+eos-eos","24hVolume":"253447585","btcPrice":"0.000058420160358439"}]}}

Formatting Digital Coin example

JSON text transferred from the API in the previous cell was converted to a Python Dictionary called json. The "coins" in the dictionary contain a list of the most relevant data. Look at the code and comments to see how the original text is turned into something understandable. Additionally, there are error check to make sure we are starting the code with the expectation that the API was run correctly.

"""
This cell is dependent on valid run of API above.
- try and except code is making sure "json" was properly run above
- inside second try is code that is used to process Coin API data

Note.  Run this cell repeatedly to format data without re-activating API
"""

try:
    print("JSON data is Python type: " + str(type(json)))
    try:
        # Extracting Coins JSON status, if the API worked
        status = json.get('status')
        print("API status: " + status)
        print()
        
        # Extracting Coins JSON data, data about the coins
        data = json.get('data')
        
        # Procedural abstraction of Print code for coins
        def print_coin(c):
            print(c["symbol"], c["price"])
            print("Icon Url: " + c["iconUrl"])
            print("Rank Url: " + c["coinrankingUrl"])

        # Coins data was observed to be a list
        for coin in data['coins']:
            print_coin(coin)
            print()
            
    except:
        print("Did you insert a valid key in X-RapidAPI-Key of API cell above?")
        print(json) # prints the name of each type of bitcoin in the database, with the Icon URL and Rank URL of each type underneath the name
except:
    print("This cell is dependent on running API call in cell above!")
JSON data is Python type: <class 'dict'>
API status: success

BTC 20029.392179057646
Icon Url: https://cdn.coinranking.com/bOabBYkcX/bitcoin_btc.svg
Rank Url: https://coinranking.com/coin/Qwsogvtv82FCd+bitcoin-btc

ETH 1357.6485041155122
Icon Url: https://cdn.coinranking.com/rk4RKHOuW/eth.svg
Rank Url: https://coinranking.com/coin/razxDUgYGNAdQ+ethereum-eth

USDT 1.001071028357668
Icon Url: https://cdn.coinranking.com/mgHqwlCLj/usdt.svg
Rank Url: https://coinranking.com/coin/HIVsRcGKkPFtW+tetherusd-usdt

USDC 1.0009827471883062
Icon Url: https://cdn.coinranking.com/jkDf8sQbY/usdc.svg
Rank Url: https://coinranking.com/coin/aKzUVe4Hh_CON+usdc-usdc

BNB 292.9853132704932
Icon Url: https://cdn.coinranking.com/B1N19L_dZ/bnb.svg
Rank Url: https://coinranking.com/coin/WcwrkfNI4FUAe+binancecoin-bnb

XRP 0.4946339678281492
Icon Url: https://cdn.coinranking.com/B1oPuTyfX/xrp.svg
Rank Url: https://coinranking.com/coin/-l8Mn2pVlRs-p+xrp-xrp

BUSD 1.0009374128999708
Icon Url: https://cdn.coinranking.com/6SJHRfClq/busd.svg
Rank Url: https://coinranking.com/coin/vSo2fu9iE1s0Y+binanceusd-busd

ADA 0.42872694867780425
Icon Url: https://cdn.coinranking.com/ryY28nXhW/ada.svg
Rank Url: https://coinranking.com/coin/qzawljRxB5bYu+cardano-ada

SOL 33.675844527260054
Icon Url: https://cdn.coinranking.com/yvUG4Qex5/solana.svg
Rank Url: https://coinranking.com/coin/zNZHO_Sjf+solana-sol

DOGE 0.06376141910465474
Icon Url: https://cdn.coinranking.com/H1arXIuOZ/doge.svg
Rank Url: https://coinranking.com/coin/a91GCGd_u96cF+dogecoin-doge

MATIC 0.8404795037695242
Icon Url: https://cdn.coinranking.com/WulYRq14o/polygon.png
Rank Url: https://coinranking.com/coin/uW2tk-ILY0ii+polygon-matic

DOT 6.384280071801486
Icon Url: https://cdn.coinranking.com/RsljYqnbu/polkadot.svg
Rank Url: https://coinranking.com/coin/25W7FG7om+polkadot-dot

SHIB 0.00001128324794062
Icon Url: https://cdn.coinranking.com/D69LfI-tm/shib.png
Rank Url: https://coinranking.com/coin/xz24e0BjL+shibainu-shib

DAI 1.000570450749159
Icon Url: https://cdn.coinranking.com/mAZ_7LwOE/mutli-collateral-dai.svg
Rank Url: https://coinranking.com/coin/MoTuySvg7+dai-dai

TRX 0.06252708822599085
Icon Url: https://cdn.coinranking.com/behejNqQs/trx.svg
Rank Url: https://coinranking.com/coin/qUhEFk1I61atv+tron-trx

WETH 1358.9688222082978
Icon Url: https://cdn.coinranking.com/KIviQyZlt/weth.svg
Rank Url: https://coinranking.com/coin/Mtfb0obXVh59u+wrappedether-weth

UNI 6.894020122063479
Icon Url: https://cdn.coinranking.com/1heSvUgtl/uniswap-v2.svg?size=48x48
Rank Url: https://coinranking.com/coin/_H5FVG9iW+uniswap-uni

AVAX 17.158675617919222
Icon Url: https://cdn.coinranking.com/S0C6Cw2-w/avax-avalanche.png
Rank Url: https://coinranking.com/coin/dvUj0CzDZ+avalanche-avax

WBTC 20028.855538247128
Icon Url: https://cdn.coinranking.com/o3-8cvCHu/wbtc[1].svg
Rank Url: https://coinranking.com/coin/x4WXHge-vvFY+wrappedbtc-wbtc

ATOM 13.103803950679156
Icon Url: https://cdn.coinranking.com/HJzHboruM/atom.svg
Rank Url: https://coinranking.com/coin/Knsels4_Ol-Ny+cosmos-atom

OKB 15.652334369321018
Icon Url: https://cdn.coinranking.com/xcZdYtX6E/okx.png
Rank Url: https://coinranking.com/coin/PDKcptVnzJTmN+okb-okb

LTC 54.06370736300305
Icon Url: https://cdn.coinranking.com/BUvPxmc9o/ltcnew.svg
Rank Url: https://coinranking.com/coin/D7B1x_ks7WhV5+litecoin-ltc

FTT 24.678566252019138
Icon Url: https://cdn.coinranking.com/WyBm4_EzM/ftx-exchange.svg
Rank Url: https://coinranking.com/coin/NfeOYfNcl+ftxtoken-ftt

ETC 27.953939321518934
Icon Url: https://cdn.coinranking.com/rJfyor__W/etc.svg
Rank Url: https://coinranking.com/coin/hnfQfsYfeIGUQ+ethereumclassic-etc

XMR 145.4330391999523
Icon Url: https://cdn.coinranking.com/Syz-oSd_Z/xmr.svg
Rank Url: https://coinranking.com/coin/3mVx2FX_iJFp5+monero-xmr

ALGO 0.3502871452525357
Icon Url: https://cdn.coinranking.com/lzbmCkUGB/algo.svg
Rank Url: https://coinranking.com/coin/TpHE2IShQw-sJ+algorand-algo

XLM 0.12010666028122727
Icon Url: https://cdn.coinranking.com/78CxK1xsp/Stellar_symbol_black_RGB.svg
Rank Url: https://coinranking.com/coin/f3iaFeCKEmkaZ+stellar-xlm

BCH 120.05434571253869
Icon Url: https://cdn.coinranking.com/By8ziihX7/bch.svg
Rank Url: https://coinranking.com/coin/ZlZpzOJo43mIo+bitcoincash-bch

BTCB 20060.442274396293
Icon Url: https://cdn.coinranking.com/Swr_SeZio/4023.png
Rank Url: https://coinranking.com/coin/9_jH48RBW+bitcoinbep2-btcb

NEAR 3.641580551056011
Icon Url: https://cdn.coinranking.com/Cth83dCnl/near.png
Rank Url: https://coinranking.com/coin/DCrsaMv68+nearprotocol-near

CRO 0.10980286985731572
Icon Url: https://cdn.coinranking.com/2o91jm73M/cro.svg
Rank Url: https://coinranking.com/coin/65PHZTpmE55b+cronos-cro

LUNC 0.000290737400138069
Icon Url: https://cdn.coinranking.com/F-PJdF8Um/LUNA.svg
Rank Url: https://coinranking.com/coin/AaQUAs2Mc+terraclassic-lunc

WEMIX 1.8033266385015005
Icon Url: https://cdn.coinranking.com/1N84MQsoO/7548.png
Rank Url: https://coinranking.com/coin/08CsQa-Ov+wemixtoken-wemix

FLOW 1.6962053096925191
Icon Url: https://cdn.coinranking.com/xh8X8QBss/flow.png
Rank Url: https://coinranking.com/coin/QQ0NCmjVq+flow-flow

ENS 17.175876690094942
Icon Url: https://cdn.coinranking.com/fmYxEUV5a/cropped-logo37-Converted-01-192x192.png
Rank Url: https://coinranking.com/coin/SbWqqTui-+energyswap-ens

FIL 5.536278289924524
Icon Url: https://cdn.coinranking.com/vUmvv-IQA/FIL3-filecoin.svg?size=48x48
Rank Url: https://coinranking.com/coin/ymQub4fuB+filecoin-fil

ICP 6.036699371836296
Icon Url: https://cdn.coinranking.com/1uJ_RVrmC/dfinity-icp.png
Rank Url: https://coinranking.com/coin/aMNLwaUbY+internetcomputerdfinity-icp

VET 0.023543047797492656
Icon Url: https://cdn.coinranking.com/B1_TDu9Dm/VEN.svg
Rank Url: https://coinranking.com/coin/FEbS54wxo4oIl+vechain-vet

CAKE 4.719252048982707
Icon Url: https://cdn.coinranking.com/aRtgdw7bQ/pancakeswap-cake-logo.png
Rank Url: https://coinranking.com/coin/ncYFcP709+pancakeswap-cake

MANA 0.7000854070071796
Icon Url: https://cdn.coinranking.com/ph_svUzXs/decentraland(1).svg
Rank Url: https://coinranking.com/coin/tEf7-dnwV3BXS+decentraland-mana

IMX 0.7632996320832136
Icon Url: https://cdn.coinranking.com/naRGT2Y_X/10603.png
Rank Url: https://coinranking.com/coin/Z96jIvLU7+immutablex-imx

HBAR 0.05792718953571414
Icon Url: https://cdn.coinranking.com/dSCnSLilQ/hedera.svg
Rank Url: https://coinranking.com/coin/jad286TjB+hedera-hbar

FRAX 1.0000747739721663
Icon Url: https://cdn.coinranking.com/BpVNCX-NM/frax.png
Rank Url: https://coinranking.com/coin/KfWtaeV1W+frax-frax

QNT 138.24368254540943
Icon Url: https://cdn.coinranking.com/a-i9Dl392/quant.png
Rank Url: https://coinranking.com/coin/bauj_21eYVwso+quant-qnt

XTZ 1.4315350379639447
Icon Url: https://cdn.coinranking.com/HkLUdilQ7/xtz.svg
Rank Url: https://coinranking.com/coin/fsIbGOEJWbzxG+tezos-xtz

EGLD 54.98746473723186
Icon Url: https://cdn.coinranking.com/X62ruAuZQ/Elrond.svg
Rank Url: https://coinranking.com/coin/omwkOTglq+elrond-egld

CHZ 0.2155524581948288
Icon Url: https://cdn.coinranking.com/gTsOlSnwR/4066.png
Rank Url: https://coinranking.com/coin/GSCt2y6YSgO26+chiliz-chz

SAND 0.8472200188493824
Icon Url: https://cdn.coinranking.com/kd_vwOcnI/sandbox.png
Rank Url: https://coinranking.com/coin/pxtKbG5rg+thesandbox-sand

LDO 1.5082327665030524
Icon Url: https://cdn.coinranking.com/Wp6LFY6ZZ/8000.png
Rank Url: https://coinranking.com/coin/Pe93bIOD2+lidodaotoken-ldo

EOS 1.170120302982607
Icon Url: https://cdn.coinranking.com/PqOYrWSje/eos2.svg
Rank Url: https://coinranking.com/coin/iAzbfXiBBKkR6+eos-eos

Go deeper into APIs

Web Development vs Jupyter Notebook. A notebook is certainly a great place to start. But, for your end of Trimester project we want you to build the skill to reference and use APIs within your Project. Here are some resources to get you started with this journey.

Hacks

Find and use an API as part of your project. An API and a little coding logic will be a big step toward getting meaningful data for a project. There are many API providers, find one that might work for your project to complete this hack. When picking an API you are looking for something that will work with either JavaScript Fetch or Python Request. Here are some samples, these are not qualified in any way.

Show API and format results in either Web Page or Jupyter Notebook. Ultimately, I will expect that we do APIs in backend (Python/Flask). However, for this Hack you can pick your preference. We will discuss pros and cons in next API tech talk.

import requests

url = "https://tasty.p.rapidapi.com/recipes/auto-complete"

querystring = {"prefix":"chicken soup"}

headers = {
	"X-RapidAPI-Key": "2b7a1e07f1msheec8b665a35f05fp1a1019jsn337f301b5a47",
	"X-RapidAPI-Host": "tasty.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)
{"results":[{"display":"chicken noodle soup","search_value":"chicken noodle soup","type":"ingredient"},{"display":"chicken soup","search_value":"chicken soup","type":"ingredient"},{"display":"chicken tortilla soup","search_value":"chicken tortilla soup","type":"ingredient"}]}
import requests
import json

url = "https://tasty.p.rapidapi.com/recipes/auto-complete"

querystring = {"prefix":"chicken soup"}

headers = {
	"X-RapidAPI-Key": "2b7a1e07f1msheec8b665a35f05fp1a1019jsn337f301b5a47",
	"X-RapidAPI-Host": "tasty.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)


print("Soups")
results = response.json().get('results')
for display in results:
	if results ["display"] == "chicken soup":
			json_formatted_str = json.dumps(results ["results"], indent=4)
			print (json_formatted_str)
{"results":[{"search_value":"chicken noodle soup","type":"ingredient","display":"chicken noodle soup"},{"type":"ingredient","display":"chicken soup","search_value":"chicken soup"},{"display":"chicken tortilla soup","search_value":"chicken tortilla soup","type":"ingredient"}]}
Soups
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/shreyasapkal/shreya-2/_notebooks/2022-10-06-PBL-python_rapidapi.ipynb Cell 13 in <cell line: 22>()
     <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shreyasapkal/shreya-2/_notebooks/2022-10-06-PBL-python_rapidapi.ipynb#X15sdnNjb2RlLXJlbW90ZQ%3D%3D?line=20'>21</a> results = response.json().get('results')
     <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shreyasapkal/shreya-2/_notebooks/2022-10-06-PBL-python_rapidapi.ipynb#X15sdnNjb2RlLXJlbW90ZQ%3D%3D?line=21'>22</a> for display in results:
---> <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shreyasapkal/shreya-2/_notebooks/2022-10-06-PBL-python_rapidapi.ipynb#X15sdnNjb2RlLXJlbW90ZQ%3D%3D?line=22'>23</a> 	if results ["display"] == "chicken soup":
     <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shreyasapkal/shreya-2/_notebooks/2022-10-06-PBL-python_rapidapi.ipynb#X15sdnNjb2RlLXJlbW90ZQ%3D%3D?line=23'>24</a> 			json_formatted_str = json.dumps(results ["results"], indent=4)
     <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shreyasapkal/shreya-2/_notebooks/2022-10-06-PBL-python_rapidapi.ipynb#X15sdnNjb2RlLXJlbW90ZQ%3D%3D?line=24'>25</a> 			print (json_formatted_str)

TypeError: list indices must be integers or slices, not str