Python RapidAPI
APIs can be found all over the internet. A great consolidator of many APIs is RapidAPI. In this blog we will use a site to consolidates API stats. Learning a few lines of code and you can start extracting lots of data from the internet via APIs.
• 8 min read
- Python, RapidAPI Terms
- Covid19 RapidAPI Example
- Digital Coin Example
- Formatting Digital Coin example
- Go deeper into APIs
- Hacks
Covid19 RapidAPI Example
To begin the API journey. You need to find an API provider.
- RapidAPI is a great option. You must setup and account, but there are many free options.
- Goto 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 url is the endpoint to which the API is directed
- 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
- The response variable receives result of of the request in JSON text
Next step, is to format the response according to your data science needs
"""
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
# This code looks for "world data"
print("World Totals")
world = response.json().get('world_total') # turn response to json() so we can extract "world_total"
for key, value in world.items(): # this finds key, value pairs in country
print(key, value)
print()
# This code looks for USA in "countries_stats"
print("Country Totals")
countries = response.json().get('countries_stat')
for country in countries: # countries is a list
if country["country_name"] == "Chile": # this filters for USA
for key, value in country.items(): # this finds key, value pairs in country
print(key, value)
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 Chile cases 3,544,463 deaths 57,375 region total_recovered 3,368,772 new_deaths 0 new_cases 0 serious_critical 286 active_cases 118,316 total_cases_per_1m_population 182,588 deaths_per_1m_population 2,956 total_tests 36,711,724 tests_per_1m_population 1,891,147
# 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": "45de2811f2mshc93a1328afeb302p1ee42bjsnbde76995c6f3", # place your key here
"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":1502,"totalCoins":15880,"totalMarkets":29505,"totalExchanges":172,"totalMarketCap":"983817743632","total24hVolume":"63318342735"},"coins":[{"uuid":"Qwsogvtv82FCd","symbol":"BTC","name":"Bitcoin","color":"#f7931A","iconUrl":"https://cdn.coinranking.com/bOabBYkcX/bitcoin_btc.svg","marketCap":"384318311102","price":"20046.583845211964","listedAt":1330214400,"tier":1,"change":"-0.88","rank":1,"sparkline":["20218.790755276827","20127.51385253795","20050.210772224906","20104.086969351873","20157.612080991814","20244.902254214187","20296.13179911493","20355.40420179014","20339.584455003165","20380.9608314705","20334.43838223393","20256.397755502137","20213.541433157436","20197.409714271824","20157.854380513738","20138.83563685875","20144.72679870046","20209.85445296406","20213.129981516948","20126.330299910573","20008.692799610475","20067.06630630579","20051.763166007153","20095.90651849141","20077.847000648446"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Qwsogvtv82FCd+bitcoin-btc","24hVolume":"54323357393","btcPrice":"1"},{"uuid":"razxDUgYGNAdQ","symbol":"ETH","name":"Ethereum","color":"#3C3C3D","iconUrl":"https://cdn.coinranking.com/rk4RKHOuW/eth.svg","marketCap":"166205046465","price":"1358.8203036993507","listedAt":1438905600,"tier":1,"change":"0.36","rank":2,"sparkline":["1356.0326277033864","1350.7784529712667","1349.0952855712028","1351.020589256574","1352.8575645347053","1363.1472565613235","1374.6067561390107","1375.494244817268","1372.953523219661","1375.925446184292","1374.4292408387619","1368.4552635284397","1365.9761444655962","1364.1511199020563","1360.2387340898908","1358.6184047649765","1359.371491753535","1367.4847503615897","1369.9959841899833","1365.6970543302764","1361.7827799311112","1364.9037258052106","1362.847000833661","1364.3331808179248","1362.1203211552202"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/razxDUgYGNAdQ+ethereum-eth","24hVolume":"19710554963","btcPrice":"0.06778313523098842"},{"uuid":"HIVsRcGKkPFtW","symbol":"USDT","name":"Tether USD","color":"#22a079","iconUrl":"https://cdn.coinranking.com/mgHqwlCLj/usdt.svg","marketCap":"68265264916","price":"1.0007724451188478","listedAt":1420761600,"tier":1,"change":"0.15","rank":3,"sparkline":["1.0003204255445886","1.001072379399179","1.0005865365358848","0.9997222677525898","1.000302739310476","0.9991136110008606","0.9999088281238293","1.0001228624687193","1.0002330626742733","0.9999085006515177","1.000637166558432","1.0010864048424142","1.0004431233324322","1.0007615615436023","1.0003388222639724","1.000614662065736","1.0001840231067416","0.9995194000310701","1.0007881476607334","1.001450558525984","1.0001623631259906","1.00016739393608","1.0000662445755446","0.9998026781628899","1.0007565027795222"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/HIVsRcGKkPFtW+tetherusd-usdt","24hVolume":"41152018316","btcPrice":"0.000049922343519785"},{"uuid":"aKzUVe4Hh_CON","symbol":"USDC","name":"USDC","color":"#7894b4","iconUrl":"https://cdn.coinranking.com/jkDf8sQbY/usdc.svg","marketCap":"46240403105","price":"1.0010183883810226","listedAt":1539043200,"tier":1,"change":"0.17","rank":4,"sparkline":["1.0000952324290522","1.0009272060557761","1.0004792903280844","0.9997900335112507","1.0002409949691449","0.9991618677934375","0.9998534185910576","0.9999410847854596","1.0002265014975766","0.9999486744759792","1.0006735177764154","1.0009635471641476","1.0003793496402105","1.0006075162547052","1.0003150084025718","1.0005962670735402","1.000183064789904","0.9995159217489921","1.0007054694724418","1.0013678601445475","1.0002887936832605","1.0000682306361377","1.0002103812911312","0.9998509676658609","1.0006509341919907"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/aKzUVe4Hh_CON+usdc-usdc","24hVolume":"3336397549","btcPrice":"0.000049934612106996"},{"uuid":"WcwrkfNI4FUAe","symbol":"BNB","name":"Binance Coin","color":"#e8b342","iconUrl":"https://cdn.coinranking.com/B1N19L_dZ/bnb.svg","marketCap":"42492337204","price":"293.30188392001014","listedAt":1503014400,"tier":1,"change":"-0.16","rank":5,"sparkline":["294.0371081156913","293.2112530986315","293.0659068658593","293.14125809992265","293.927072308215","294.83908930457306","297.17141223267646","296.54802038189746","296.5585630450058","296.294553936533","295.9679395053358","295.35520526954036","294.7305627322402","295.26036234435696","294.50338543103425","294.3146859082695","294.2242933902924","294.68917140200585","294.5604388244027","294.00907997017464","293.6022776572697","294.03667340284875","293.6765697846322","293.53999170702116","293.2406982951704"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/WcwrkfNI4FUAe+binancecoin-bnb","24hVolume":"727094328","btcPrice":"0.014631015747357071"},{"uuid":"-l8Mn2pVlRs-p","symbol":"XRP","name":"XRP","color":"#000000","iconUrl":"https://cdn.coinranking.com/B1oPuTyfX/xrp.svg","marketCap":"24735896573","price":"0.49612120329910436","listedAt":1421798400,"tier":1,"change":"0.45","rank":6,"sparkline":["0.49589772060313664","0.4961486906400564","0.4937540033530011","0.4935243660903145","0.49094545203960516","0.4918624009473887","0.4957389899343572","0.49519738378148237","0.4958525362412369","0.5001275119658124","0.5026720193539957","0.4991920707876871","0.49522495287007584","0.4941919849308346","0.4937444053409089","0.49446095598775164","0.496642463441308","0.4978006721039619","0.49921650767419506","0.49601634880586165","0.4951610447765719","0.496178608849929","0.49613233058332035","0.49725894146588856","0.4969405448624372"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/-l8Mn2pVlRs-p+xrp-xrp","24hVolume":"3686435620","btcPrice":"0.000024748416345142"},{"uuid":"vSo2fu9iE1s0Y","symbol":"BUSD","name":"Binance USD","color":"#f0b90b","iconUrl":"https://cdn.coinranking.com/6SJHRfClq/busd.svg","marketCap":"21392579713","price":"1.0005116038816269","listedAt":1563197940,"tier":1,"change":"0.12","rank":7,"sparkline":["1.0002374035811614","1.0009231467297586","1.0005254447624727","0.9997390821935204","1.0002531268638544","0.99900371650551","0.9998191100048063","0.9999887701995116","1.0001269869516713","0.9997967773830551","1.0005975052435443","1.0010354550388738","1.0003422928404686","1.0006512077264678","1.0002496569957884","1.000522506477387","1.0000921083554326","0.9994565714751489","1.000664394698665","1.0013436729310667","1.000188611569681","1.0001484188855425","0.999994252391756","0.9996200374804973","1.0006890393113752"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/vSo2fu9iE1s0Y+binanceusd-busd","24hVolume":"6318180538","btcPrice":"0.000049909331764803"},{"uuid":"qzawljRxB5bYu","symbol":"ADA","name":"Cardano","color":"#3cc8c8","iconUrl":"https://cdn.coinranking.com/ryY28nXhW/ada.svg","marketCap":"13346915206","price":"0.42898904780299635","listedAt":1506902400,"tier":1,"change":"-0.29","rank":8,"sparkline":["0.43196332621553907","0.4303903814757409","0.4294077817341544","0.43010743439413285","0.4311330265281362","0.43172655110842456","0.43548735625164897","0.4357388064320796","0.4347251184847503","0.43502688530763967","0.4347130159622236","0.433471895077104","0.4325792144011695","0.4321579186673506","0.4312862401664264","0.43111658597117936","0.4302339335978089","0.4317434701799593","0.43206059667502594","0.4307267144731139","0.4292816425386448","0.42999742569126925","0.4296811584257473","0.4300197823883678","0.42948820128284876"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/qzawljRxB5bYu+cardano-ada","24hVolume":"748690713","btcPrice":"0.000021399608587448"},{"uuid":"zNZHO_Sjf","symbol":"SOL","name":"Solana","color":"#9cddec","iconUrl":"https://cdn.coinranking.com/yvUG4Qex5/solana.svg","marketCap":"11975247263","price":"33.712032667285605","listedAt":1586539320,"tier":1,"change":"-0.76","rank":9,"sparkline":["34.147881403359996","33.84415516450556","33.76424676052897","33.851653978639725","34.0161400563986","34.24080407969258","34.31681894129343","34.35588900553808","34.33042777400873","34.38277635446187","34.379681489180044","34.23752810964467","34.00620972119799","34.03688155243466","34.02092461524907","33.989046163945","33.96632938263619","34.09203292248955","34.096015183734444","33.92754199776204","33.902628493017076","33.91352789473223","33.87605951997402","33.796587286578394","33.720584195864205"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/zNZHO_Sjf+solana-sol","24hVolume":"1413402950","btcPrice":"0.001681684666454408"},{"uuid":"a91GCGd_u96cF","symbol":"DOGE","name":"Dogecoin","color":"#c2a633","iconUrl":"https://cdn.coinranking.com/H1arXIuOZ/doge.svg","marketCap":"8472575859","price":"0.0638616646530509","listedAt":1391212800,"tier":1,"change":"-1.18","rank":10,"sparkline":["0.06512794974898865","0.06492853490382612","0.06431595805843943","0.06435400841112346","0.0645379870268131","0.0650123288913721","0.06501563524570002","0.06505378638919912","0.0657960580235114","0.06603851629936867","0.0658184759881278","0.06555988714644552","0.06533964737697033","0.06514516595507432","0.06524645778146733","0.06510502596464673","0.06505472735660629","0.06531541912756778","0.065324533726232","0.06494902475797701","0.064395228238987","0.06439997547269011","0.06400574562646442","0.06396647624972104","0.06389241926664797"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/a91GCGd_u96cF+dogecoin-doge","24hVolume":"416809135","btcPrice":"0.000003185663210558"},{"uuid":"uW2tk-ILY0ii","symbol":"MATIC","name":"Polygon","color":"#8247e5","iconUrl":"https://cdn.coinranking.com/WulYRq14o/polygon.png","marketCap":"7368472560","price":"0.8415656771217019","listedAt":1558961160,"tier":1,"change":"-0.84","rank":11,"sparkline":["0.8491395902598512","0.8449629381087024","0.8434958048685458","0.850001213528094","0.853335038035505","0.8542282047138157","0.8515372370926926","0.8500057857531073","0.8471550687491181","0.8479199485431772","0.8469126231548905","0.8444467185672693","0.8450110528754514","0.8478056714088978","0.8464500595587834","0.8438919072119496","0.8409254158392585","0.8417285480356804","0.8406644189646862","0.8395706517084087","0.8416948139859297","0.8436027596584215","0.8437616471321229","0.8450251415679219","0.8425213019893486"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/uW2tk-ILY0ii+polygon-matic","24hVolume":"368755612","btcPrice":"0.000041980503192952"},{"uuid":"25W7FG7om","symbol":"DOT","name":"Polkadot","color":"#d64cA8","iconUrl":"https://cdn.coinranking.com/RsljYqnbu/polkadot.svg","marketCap":"7338498389","price":"6.379095272664653","listedAt":1598365200,"tier":1,"change":"-0.01","rank":12,"sparkline":["6.392841133300501","6.404046340600803","6.399722350341929","6.407431469281856","6.427796901211662","6.453758384149317","6.486494555997307","6.502517900580541","6.4967988980633296","6.498221992937296","6.477292881924281","6.477685872716661","6.447106699092705","6.444481366056926","6.445795929939406","6.43835202318247","6.432886306326887","6.4585750397515","6.4575042220625996","6.428584116127258","6.392783665842638","6.391999796479689","6.383833341177868","6.391886622069542","6.382935196378932"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/25W7FG7om+polkadot-dot","24hVolume":"239758701","btcPrice":"0.000318213583018449"},{"uuid":"xz24e0BjL","symbol":"SHIB","name":"Shiba Inu","color":"#fda32b","iconUrl":"https://cdn.coinranking.com/D69LfI-tm/shib.png","marketCap":"6657554490","price":"0.00001129248587654","listedAt":1620650373,"tier":1,"change":"-1.11","rank":13,"sparkline":["0.000011430739202123","0.000011392816174463","0.000011387877948418","0.000011396704562993","0.000011430609861","0.000011487055432932","0.00001152036610693","0.000011526380751596","0.000011558700842959","0.000011588746012207","0.000011501542165893","0.000011474456994294","0.000011432246795571","0.000011441277378302","0.000011454818205796","0.000011474266131642","0.00001147214753892","0.000011470794345928","0.000011440980426603","0.000011377989441906","0.000011351810964821","0.000011340064292117","0.000011289212736263","0.000011276875729243","0.000011287629108946"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/xz24e0BjL+shibainu-shib","24hVolume":"269454517","btcPrice":"5.63312231e-10"},{"uuid":"MoTuySvg7","symbol":"DAI","name":"Dai","color":null,"iconUrl":"https://cdn.coinranking.com/mAZ_7LwOE/mutli-collateral-dai.svg","marketCap":"6333767549","price":"1.000588465014447","listedAt":1585574040,"tier":1,"change":"0.13","rank":14,"sparkline":["0.9998145439524316","1.000642279152023","1.0002501483819342","0.9996079953426593","0.9998324870129061","0.9990101105933146","0.9994857500759958","0.999624908391188","0.9998816954065115","0.9994957093637207","1.0001208517367788","1.0005216349460553","1.0001350227691488","1.0001759939377812","1.0001566588096102","1.0001680592088615","0.9998685940934117","0.9992399716835088","1.0001284294864254","1.0007521705052862","1.0004089988343272","0.9997234623566964","1.0000149764927293","0.9996615337084641","1.0002277549462553"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/MoTuySvg7+dai-dai","24hVolume":"105252493","btcPrice":"0.000049913165891027"},{"uuid":"qUhEFk1I61atv","symbol":"TRX","name":"TRON","color":"#eb0029","iconUrl":"https://cdn.coinranking.com/behejNqQs/trx.svg","marketCap":"5776954138","price":"0.06256427894867475","listedAt":1505260800,"tier":1,"change":"0.21","rank":15,"sparkline":["0.06250325237506649","0.06233314358322569","0.06236315630333049","0.06246392912773974","0.06240652113985693","0.06227589703736964","0.06221053328122907","0.06260319363131635","0.06283033390340566","0.06275581270672362","0.0626978662815527","0.06256692378726383","0.06245450631309343","0.06246716658573998","0.06254250847566674","0.06267562907314361","0.06269806673235553","0.06269042836471053","0.06271779939264273","0.0626352143047651","0.06255809006884133","0.06259756053775786","0.0626288235451432","0.06266136827454773","0.06260767940111292"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/qUhEFk1I61atv+tron-trx","24hVolume":"495315097","btcPrice":"0.000003120944667269"},{"uuid":"Mtfb0obXVh59u","symbol":"WETH","name":"Wrapped Ether","color":"#303030","iconUrl":"https://cdn.coinranking.com/KIviQyZlt/weth.svg","marketCap":"5516673972","price":"1359.7372924111291","listedAt":1600259445,"tier":1,"change":"0.61","rank":16,"sparkline":["1356.323363837661","1352.9612185068595","1349.149143129576","1351.1432170463336","1354.6776632978115","1359.8352913708866","1372.7157537367023","1375.4201893881768","1373.656092011277","1374.4831471744365","1374.1769793087985","1370.915906218165","1366.9918430438015","1365.2433081113772","1361.7193072320867","1361.265176416104","1360.1196886880427","1366.1267940382033","1371.852174671929","1367.6753656170195","1362.1323660641553","1367.2441915406994","1362.4560591679638","1363.6579586538305","1361.8529815506354"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Mtfb0obXVh59u+wrappedether-weth","24hVolume":"311491126","btcPrice":"0.06782887812258825"},{"uuid":"_H5FVG9iW","symbol":"UNI","name":"Uniswap","color":"#ff007a","iconUrl":"https://cdn.coinranking.com/1heSvUgtl/uniswap-v2.svg?size=48x48","marketCap":"5351613164","price":"6.891546741433287","listedAt":1600323371,"tier":1,"change":"2.34","rank":17,"sparkline":["6.7702311836496065","6.761140276375334","6.773487842115684","6.754212108157756","6.7904912939092545","6.859091490236875","6.930938536697723","6.979888406385319","6.95205928455466","6.9286481982692205","6.908425318713336","6.880030568657563","6.885009662800914","6.911057456813229","6.870280219320744","6.834855065486267","6.831621857223752","6.8953103550610155","6.908863467949224","6.856605553515915","6.8311360382612705","6.883493135136312","6.890903845214016","6.900291020453263","6.896068828342364"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/_H5FVG9iW+uniswap-uni","24hVolume":"398509523","btcPrice":"0.000343776615240072"},{"uuid":"dvUj0CzDZ","symbol":"AVAX","name":"Avalanche","color":"#e84242","iconUrl":"https://cdn.coinranking.com/S0C6Cw2-w/avax-avalanche.png","marketCap":"5083499116","price":"17.168456711545172","listedAt":1600961596,"tier":1,"change":"-0.55","rank":18,"sparkline":["17.311701710847508","17.262407515153612","17.253975766732072","17.305445105419164","17.35179898605964","17.43602090243061","17.5320617464102","17.556198635951862","17.522328032378404","17.567506807180212","17.518999622426595","17.438188969460462","17.392497971145044","17.384246174563923","17.340216723503893","17.317870880113258","17.317934073434696","17.361762627511066","17.38602816111171","17.34594206123334","17.293727405518197","17.28814395490991","17.237643606417418","17.233591279853332","17.194633259709995"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/dvUj0CzDZ+avalanche-avax","24hVolume":"403942012","btcPrice":"0.000856428049991459"},{"uuid":"x4WXHge-vvFY","symbol":"WBTC","name":"Wrapped BTC","color":"#000000","iconUrl":"https://cdn.coinranking.com/o3-8cvCHu/wbtc[1].svg","marketCap":"4905656527","price":"20043.002401942034","listedAt":1549894980,"tier":1,"change":"-0.83","rank":19,"sparkline":["20222.63472069461","20130.23749062799","20049.450436563653","20101.625670107587","20156.496626937733","20240.909995938804","20292.728315757773","20352.616852214596","20337.507383965705","20378.75288185548","20330.405569268383","20254.404761507907","20209.02661429861","20195.282207698066","20153.01465667849","20135.17585599672","20143.80296662876","20207.977287072288","20214.020111791888","20128.20065392008","20010.289645039305","20071.07422742167","20052.970806421596","20097.890506360407","20079.9038027439"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/x4WXHge-vvFY+wrappedbtc-wbtc","24hVolume":"60561819","btcPrice":"0.9998213439607674"},{"uuid":"Knsels4_Ol-Ny","symbol":"ATOM","name":"Cosmos","color":"#5064fb","iconUrl":"https://cdn.coinranking.com/HJzHboruM/atom.svg","marketCap":"4088991043","price":"13.135788613986428","listedAt":1552520100,"tier":1,"change":"2.08","rank":20,"sparkline":["12.926276871448609","12.875277004781758","12.86904144147151","12.971292431991326","12.997809503523687","13.053288754075908","13.126935514160385","13.162946510226798","13.176459006280066","13.160096288039203","13.137389824650167","13.06998182322184","13.019107100623595","13.019228236724262","12.997097540770518","13.001447370293056","12.963267806956667","13.037160583312037","13.107469133546218","13.118997058963204","13.103829863058571","13.315259420750875","13.354096128684052","13.370022499985016","13.204669222579465"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Knsels4_Ol-Ny+cosmos-atom","24hVolume":"456069399","btcPrice":"0.000655263196732836"},{"uuid":"PDKcptVnzJTmN","symbol":"OKB","name":"OKB","color":"#2d60e0","iconUrl":"https://cdn.coinranking.com/xcZdYtX6E/okx.png","marketCap":"3941757781","price":"15.665044692450335","listedAt":1538524800,"tier":1,"change":"0.40","rank":21,"sparkline":["15.575137028046232","15.662580503747137","15.564802534652488","15.557466143075752","15.524158368263686","15.564589461143923","15.626264641755956","15.739580440410696","15.723161103836562","15.756631052262051","15.719769516902309","15.679332809859426","15.659289279509137","15.653479618484809","15.638547000563062","15.642201616641493","15.628032569899407","15.743689332355745","15.776354680109298","15.74205990533899","15.71449931537389","15.72721690532428","15.644132451610492","15.658647972363548","15.659683879265028"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/PDKcptVnzJTmN+okb-okb","24hVolume":"16548129","btcPrice":"0.000781432128955571"},{"uuid":"D7B1x_ks7WhV5","symbol":"LTC","name":"Litecoin","color":"#345d9d","iconUrl":"https://cdn.coinranking.com/BUvPxmc9o/ltcnew.svg","marketCap":"3833413908","price":"54.09436583189665","listedAt":1382572800,"tier":1,"change":"-0.97","rank":22,"sparkline":["54.72718478384808","54.528922891099036","54.29583735175494","54.33319375556465","54.50446073551073","54.689512299086346","54.83579215246787","54.86128649682968","54.85557746061394","54.79815311448016","54.77378739059752","54.513674702652395","54.34291061527474","54.366132999303794","54.400099914380476","54.44667454869584","54.48304825815074","54.529253889973695","54.655222447706805","54.469993831812964","54.2175175293153","54.43545977145926","54.201578616656455","54.296559637153436","54.17231950080165"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/D7B1x_ks7WhV5+litecoin-ltc","24hVolume":"484062455","btcPrice":"0.002698433122051209"},{"uuid":"NfeOYfNcl","symbol":"FTT","name":"FTX Token","color":"#77d9ed","iconUrl":"https://cdn.coinranking.com/WyBm4_EzM/ftx-exchange.svg","marketCap":"3298542579","price":"24.710340434142324","listedAt":1566222960,"tier":1,"change":"-0.55","rank":23,"sparkline":["24.86505055445004","24.74930489751853","24.683542378165935","24.719459773866813","24.76219388151077","24.89617949229818","24.99584490014685","25.024271811661002","25.03560312685286","25.100681844582844","25.06002637860313","24.964601458157446","24.904376569262773","24.895606258899775","24.842026144960307","24.831021985095166","24.838044627193764","24.940402746453593","24.948282135740968","24.83587699336903","24.725774848675666","24.78882994554855","24.765227280716434","24.7852189588019","24.745364911411198"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/NfeOYfNcl+ftxtoken-ftt","24hVolume":"40553069","btcPrice":"0.001232645952294973"},{"uuid":"hnfQfsYfeIGUQ","symbol":"ETC","name":"Ethereum Classic","color":"#699070","iconUrl":"https://cdn.coinranking.com/rJfyor__W/etc.svg","marketCap":"3253027716","price":"27.96780543291794","listedAt":1469577600,"tier":1,"change":"1.19","rank":24,"sparkline":["27.637527345169847","27.58455257426415","27.57375287086344","27.583701817024274","27.628337152556885","27.71293784101918","28.233029378330688","28.720730972372852","28.46641731982247","28.461748558520167","28.43371813306647","28.28911168246897","28.14430045599654","28.142119512945897","28.221174564475163","28.325040597432697","28.30280000118542","28.3082711843151","28.305799119732846","28.17075432549671","28.033606002119882","28.04521965718026","27.9781438177713","28.000644887917996","27.985116549581665"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/hnfQfsYfeIGUQ+ethereumclassic-etc","24hVolume":"573621601","btcPrice":"0.001395140720676851"},{"uuid":"3mVx2FX_iJFp5","symbol":"XMR","name":"Monero","color":"#ff7519","iconUrl":"https://cdn.coinranking.com/Syz-oSd_Z/xmr.svg","marketCap":"2644302465","price":"145.42302192434917","listedAt":1422489600,"tier":1,"change":"-0.59","rank":25,"sparkline":["146.8964152073788","146.34861960366464","146.06343032587645","146.2075982055981","146.16344802044546","146.888041879794","147.51024728525","147.80256016994798","148.2027654532922","149.11840657324646","148.0031628172107","146.08426002755598","145.4736608337662","145.4792527320685","145.1806672731441","145.00953730395867","145.0257998044549","145.46149782104706","145.12677492201496","144.64783256872903","144.02537845271183","144.10667787347248","143.88440788084827","143.97466187776286","144.66960607873492"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/3mVx2FX_iJFp5+monero-xmr","24hVolume":"162591683","btcPrice":"0.007254254542680237"},{"uuid":"TpHE2IShQw-sJ","symbol":"ALGO","name":"Algorand","color":null,"iconUrl":"https://cdn.coinranking.com/lzbmCkUGB/algo.svg","marketCap":"2461275167","price":"0.3508527512952266","listedAt":1562082540,"tier":1,"change":"-0.16","rank":26,"sparkline":["0.3525689251209651","0.35240762628811517","0.3515600123998059","0.35203683586559326","0.3530001942757888","0.35412309079161114","0.35642368756646714","0.35691371592641125","0.35632693256778514","0.35761063132157045","0.35770076129143336","0.35735739919120424","0.35584404133402586","0.35511420911441055","0.3543293095619535","0.3542433100860763","0.3544828228310482","0.35581805922078813","0.3553205603594315","0.3533918044887771","0.3523456135021036","0.353425618064933","0.3530853264198689","0.35199812899097604","0.3514138521664796"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/TpHE2IShQw-sJ+algorand-algo","24hVolume":"105127494","btcPrice":"0.000017501872339163"},{"uuid":"f3iaFeCKEmkaZ","symbol":"XLM","name":"Stellar","color":"#000000","iconUrl":"https://cdn.coinranking.com/78CxK1xsp/Stellar_symbol_black_RGB.svg","marketCap":"2434719119","price":"0.12049770010869333","listedAt":1484611200,"tier":1,"change":"0.68","rank":27,"sparkline":["0.11950402118554868","0.11919352351425183","0.11887874398521932","0.11899682832112154","0.11900784650582279","0.11903091787613028","0.11932756061340988","0.1193124601461036","0.11935198330687927","0.11968956008888623","0.11982768782602261","0.11926800493330945","0.11893478804653866","0.11915965495976946","0.11883424587143657","0.11874400251754233","0.11865620480407152","0.11962505531373109","0.11974625477512996","0.1192297752398314","0.11949911477927162","0.1195363384683802","0.11991168298644643","0.12023167850372701","0.12013730757452189"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/f3iaFeCKEmkaZ+stellar-xlm","24hVolume":"196920364","btcPrice":"0.000006010884499778"},{"uuid":"ZlZpzOJo43mIo","symbol":"BCH","name":"Bitcoin Cash","color":"#8dc451","iconUrl":"https://cdn.coinranking.com/By8ziihX7/bch.svg","marketCap":"2300086606","price":"120.22573455216414","listedAt":1541808000,"tier":1,"change":"-2.08","rank":28,"sparkline":["122.75983045148368","122.33389967310332","122.32262573171138","122.21216671462395","122.2424076189862","122.65231412716444","123.18814722852751","123.0389419465099","122.7525437321455","122.63297695763477","122.25888231512374","121.6083740301883","121.06920532209728","121.06505253851132","121.31641268309612","121.31342982731974","121.42232686519066","121.73409744703572","121.89798728864076","121.56372256374502","120.69906776713734","121.03687818262068","120.78791155090717","120.72364621766697","120.42837017176116"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/ZlZpzOJo43mIo+bitcoincash-bch","24hVolume":"240609203","btcPrice":"0.00599731782135436"},{"uuid":"9_jH48RBW","symbol":"BTCB","name":"Bitcoin BEP2","color":"#ff9d14","iconUrl":"https://cdn.coinranking.com/Swr_SeZio/4023.png","marketCap":"2256743933","price":"20059.76776641939","listedAt":1629334963,"tier":1,"change":"-0.51","rank":29,"sparkline":["20231.098261558018","20149.617640664368","20057.082143515574","20073.73634471567","20155.35074272695","20201.665838224184","20307.87652463223","20347.737496425136","20336.451830858347","20370.359230166003","20347.242691661544","20289.47946418053","20236.43515036491","20227.307289890327","20159.253111186365","20151.59933538431","20140.561492740446","20182.239409718797","20226.462817293763","20155.56495267985","19999.67086131824","20059.420703023447","20034.48757190991","20087.652566779983","20106.00131657147"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/9_jH48RBW+bitcoinbep2-btcb","24hVolume":"3532116","btcPrice":"1.0006576642339275"},{"uuid":"DCrsaMv68","symbol":"NEAR","name":"NEAR Protocol","color":"#000000","iconUrl":"https://cdn.coinranking.com/Cth83dCnl/near.png","marketCap":"2219001419","price":"3.650608062518831","listedAt":1615164591,"tier":1,"change":"-1.37","rank":30,"sparkline":["3.709145399891202","3.6855537742923947","3.6764432411708334","3.6877377535157785","3.695275020835127","3.703712737949751","3.7340726187087037","3.7301224517518223","3.726830183476546","3.732039649903934","3.717434927228703","3.6877396306355372","3.6716138278055315","3.672023646958891","3.6796627968878117","3.6827271652478855","3.673292435001616","3.6850689868755926","3.6848299842173686","3.6621052069632927","3.645473470040869","3.65438135452944","3.650467522910622","3.657259859564373","3.65150836584407"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/DCrsaMv68+nearprotocol-near","24hVolume":"219984296","btcPrice":"0.000182106242674897"},{"uuid":"65PHZTpmE55b","symbol":"CRO","name":"Cronos","color":"#01275d","iconUrl":"https://cdn.coinranking.com/2o91jm73M/cro.svg","marketCap":"2210437016","price":"0.1099067550955083","listedAt":1548953220,"tier":1,"change":"-0.39","rank":31,"sparkline":["0.1102866655978439","0.10973972405741797","0.10962651467178453","0.10994008962491644","0.1102558436062367","0.11066651769044844","0.11099761359490694","0.11112033875517015","0.11109668798682694","0.11125486280094371","0.11097328447826356","0.11061839872555923","0.11049480906095765","0.11047705770928287","0.11016808565081138","0.11017204357466145","0.11019667819823448","0.11063136672626925","0.11069867867729656","0.11043373302719106","0.11008751029922599","0.1102298592915935","0.11019877919003072","0.11038877818188102","0.11011369004139103"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/65PHZTpmE55b+cronos-cro","24hVolume":"18125510","btcPrice":"0.000005482567800287"},{"uuid":"AaQUAs2Mc","symbol":"LUNC","name":"Terra Classic","color":"#0E3CA5","iconUrl":"https://cdn.coinranking.com/F-PJdF8Um/LUNA.svg","marketCap":"1916068983","price":"0.000290719731748237","listedAt":1565957940,"tier":1,"change":"-2.47","rank":32,"sparkline":["0.000298998676450639","0.000299826766758632","0.000297534732475355","0.00029924350285628","0.000301788299795161","0.000299920153570012","0.000298931795978761","0.00030181081782183","0.000303176990591589","0.000301682155659599","0.000300427127360826","0.000299399340560452","0.000296030916678464","0.000294229563164984","0.00029620922346966","0.000295899215933004","0.000296217702108255","0.000296829911058331","0.000296559426866186","0.000295191934413479","0.000295456788652574","0.000295777378499636","0.000294459432139008","0.000292410713953547","0.000290756027146779"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/AaQUAs2Mc+terraclassic-lunc","24hVolume":"84554025","btcPrice":"1.4502208156e-8"},{"uuid":"08CsQa-Ov","symbol":"WEMIX","name":"WEMIX TOKEN","color":"#9bdc70","iconUrl":"https://cdn.coinranking.com/1N84MQsoO/7548.png","marketCap":"1803593278","price":"1.8035932783044732","listedAt":1638249982,"tier":1,"change":"-1.29","rank":33,"sparkline":["1.8280494116453418","1.8283763827973312","1.8200632272957997","1.8247805232483643","1.828712312707551","1.833483750666553","1.8388113856711226","1.8340065059765118","1.833810679916731","1.8379730157830576","1.839871909045534","1.8316951407594886","1.8228200406729849","1.813347598660363","1.8119797410726592","1.809839266259027","1.8056779775027223","1.8171058470471277","1.8207781512935177","1.8161039074009673","1.8067945451862275","1.8198882851409492","1.8153134018571955","1.811475359482419","1.8130568319639457"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/08CsQa-Ov+wemixtoken-wemix","24hVolume":"12622279","btcPrice":"0.000089970106240084"},{"uuid":"QQ0NCmjVq","symbol":"FLOW","name":"Flow","color":"#9efad7","iconUrl":"https://cdn.coinranking.com/xh8X8QBss/flow.png","marketCap":"1761178596","price":"1.699651221961024","listedAt":1614963736,"tier":1,"change":"0.89","rank":34,"sparkline":["1.6916190276130023","1.6870161618997255","1.6885003563699261","1.6911129238364746","1.6949035542249486","1.7027954737084738","1.7125610716564361","1.7140651860196017","1.714695946307908","1.7186349196969963","1.7112095222795702","1.7059432521776707","1.6990849778102466","1.7009865441984156","1.6974608241600029","1.693719842832861","1.691546977165074","1.6994974763911996","1.7010007554542457","1.691066171618029","1.6853627168164407","1.7006901856350147","1.700642727036232","1.7059726265028285","1.7045502578525151"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/QQ0NCmjVq+flow-flow","24hVolume":"46747487","btcPrice":"0.000084785080345097"},{"uuid":"SbWqqTui-","symbol":"ENS","name":"EnergySwap","color":"#ffda55","iconUrl":"https://cdn.coinranking.com/fmYxEUV5a/cropped-logo37-Converted-01-192x192.png","marketCap":"1715645478","price":"17.156454777297956","listedAt":1626134763,"tier":1,"change":"-0.41","rank":35,"sparkline":["17.274155600975227","17.178968151553384","17.0775388533003","17.067912741278125","17.19371992172132","17.4049080612785","17.349122197170388","17.383691525495145","17.38955154672953","17.62408133673586","17.593322076060364","17.4386892965598","17.32333194983784","17.454935581534613","17.325985988795207","17.368904943606196","17.362546803048055","17.3764087970854","17.419117141273638","17.35271679037387","17.38519844965686","17.573923269656888","17.412442758361905","17.37020170660671","17.169874171318288"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/SbWqqTui-+energyswap-ens","24hVolume":"15615546","btcPrice":"0.000855993353008056"},{"uuid":"ymQub4fuB","symbol":"FIL","name":"Filecoin","color":"#0090ff","iconUrl":"https://cdn.coinranking.com/vUmvv-IQA/FIL3-filecoin.svg?size=48x48","marketCap":"1627732805","price":"5.538253629331978","listedAt":1602839473,"tier":1,"change":"-0.68","rank":36,"sparkline":["5.596100786175611","5.582033529324813","5.563583111239947","5.566550453652093","5.574658649368248","5.59947207926758","5.623738949982796","5.620874463842186","5.636449717522663","5.636012075827377","5.621787024814909","5.604863066684564","5.591110699301258","5.594109335499362","5.579395762312111","5.571603862378717","5.568665240867289","5.584428109854282","5.589357305391382","5.571466398392628","5.555143733013601","5.566649712407954","5.558897804317119","5.557931622936892","5.545052787374964"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/ymQub4fuB+filecoin-fil","24hVolume":"112381700","btcPrice":"0.000276269197390196"},{"uuid":"aMNLwaUbY","symbol":"ICP","name":"Internet Computer (DFINITY)","color":"#00042b","iconUrl":"https://cdn.coinranking.com/1uJ_RVrmC/dfinity-icp.png","marketCap":"1586381530","price":"6.040895547504492","listedAt":1601555742,"tier":1,"change":"0.63","rank":37,"sparkline":["6.028032946026687","6.023496800537139","6.016755740637141","6.025549949045874","6.025640938683228","6.0377448148370085","6.064372958080765","6.083168222934446","6.121138125111502","6.122110772502033","6.115151992864029","6.094617924935418","6.060175751820776","6.057627134702182","6.044453572817335","6.041605429471563","6.031060257031912","6.047144324679883","6.056531123948183","6.043157182392127","6.029286234340265","6.030315565311347","6.029530798006678","6.044644250021093","6.042323700028405"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/aMNLwaUbY+internetcomputerdfinity-icp","24hVolume":"29072281","btcPrice":"0.000301342891843756"},{"uuid":"FEbS54wxo4oIl","symbol":"VET","name":"VeChain","color":"#4bc0fa","iconUrl":"https://cdn.coinranking.com/B1_TDu9Dm/VEN.svg","marketCap":"1573784812","price":"0.023573507140828676","listedAt":1533427200,"tier":1,"change":"-1.21","rank":38,"sparkline":["0.02383669526151831","0.023777063134524188","0.02375170887710745","0.023790767210407363","0.02385906108038382","0.023963654949121647","0.024032391322482857","0.02406040482720113","0.0240241062637749","0.024037336226182978","0.02400171948264513","0.02387998962803967","0.02378850465137536","0.023837111243251226","0.023815921540209235","0.023769995820392444","0.023739891208846193","0.023855321629745706","0.023897228613256757","0.023791321188323424","0.02367760390068874","0.02374190806050289","0.02367962724028958","0.023674409512811297","0.023617007075663103"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/FEbS54wxo4oIl+vechain-vet","24hVolume":"95797729","btcPrice":"0.000001175936375138"},{"uuid":"ncYFcP709","symbol":"CAKE","name":"PancakeSwap","color":"#fe9555","iconUrl":"https://cdn.coinranking.com/aRtgdw7bQ/pancakeswap-cake-logo.png","marketCap":"1569986890","price":"4.720556375462068","listedAt":1613642379,"tier":1,"change":"0.66","rank":39,"sparkline":["4.697071631303028","4.669868830815898","4.661125064396867","4.663869351538766","4.66954849891612","4.700257578283811","4.730018157572612","4.714143976512721","4.723478551910749","4.726841497246268","4.71589081766422","4.704019970362516","4.698161923039412","4.7031209766755016","4.692579489314503","4.679648115490985","4.687714757432509","4.719032873982035","4.724971359920624","4.712351130155052","4.719029191980287","4.7279686027861425","4.7260647727410285","4.73075062619031","4.725009330598604"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/ncYFcP709+pancakeswap-cake","24hVolume":"40403850","btcPrice":"0.000235479342111926"},{"uuid":"tEf7-dnwV3BXS","symbol":"MANA","name":"Decentraland","color":"#f47e33","iconUrl":"https://cdn.coinranking.com/ph_svUzXs/decentraland(1).svg","marketCap":"1537213952","price":"0.7008040361582227","listedAt":1500336000,"tier":1,"change":"-0.38","rank":40,"sparkline":["0.7063006873405935","0.7035393581891307","0.7018437336148443","0.7012296643669335","0.7022993535952263","0.7043824624342494","0.7061012732016445","0.7092722059821073","0.7107294942869858","0.7108990080244315","0.7099791984418414","0.7078420220186218","0.7049582130893842","0.7073897479512065","0.7053057857361185","0.7046517786625648","0.7039018744140978","0.7061875672681424","0.7064691025691597","0.7038019871422808","0.7011256758919822","0.7014300165554707","0.7002696349282048","0.700707473052219","0.7001849088771882"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/tEf7-dnwV3BXS+decentraland-mana","24hVolume":"115193177","btcPrice":"0.000034958776097186"},{"uuid":"Z96jIvLU7","symbol":"IMX","name":"Immutable X","color":"#000000","iconUrl":"https://cdn.coinranking.com/naRGT2Y_X/10603.png","marketCap":"1528867295","price":"0.7644336476628847","listedAt":1649387294,"tier":1,"change":"-3.43","rank":41,"sparkline":["0.7927847188535762","0.7884975496245668","0.7862352418397442","0.7857962385011888","0.7860823591712383","0.7913864227222935","0.7931731378366671","0.7918535836709918","0.7934385490032205","0.7935992087657073","0.7897855169136626","0.7868869873929384","0.7827398180680905","0.783228165174872","0.7815364376407758","0.7781414627334526","0.7744570301287642","0.7791777850589451","0.77910792480725","0.7748083717236799","0.771741132204964","0.7719247547364205","0.7697367918455802","0.767620389561085","0.7661499177156591"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Z96jIvLU7+immutablex-imx","24hVolume":"60225147","btcPrice":"0.000038132863612344"},{"uuid":"jad286TjB","symbol":"HBAR","name":"Hedera","color":"#000000","iconUrl":"https://cdn.coinranking.com/dSCnSLilQ/hedera.svg","marketCap":"1410983125","price":"0.057955556105098525","listedAt":1568704980,"tier":1,"change":"0.10","rank":42,"sparkline":["0.05797686934406815","0.05774970665222453","0.05770820809062958","0.05773161591193554","0.057901448026430706","0.058104711439575775","0.05821494457445837","0.05837605385144989","0.0583912493104286","0.058424171286181624","0.05828953359467471","0.058191254382563104","0.05807000164742536","0.058160951983569076","0.05809875543730914","0.05804408247369093","0.05806716774177746","0.05823647896782499","0.05829966185121518","0.058247050540209844","0.05798533858210562","0.05803846783625502","0.05802081484422402","0.05809046002134666","0.05804751096559524"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/jad286TjB+hedera-hbar","24hVolume":"51003068","btcPrice":"0.000002891044007927"},{"uuid":"KfWtaeV1W","symbol":"FRAX","name":"Frax","color":"#000000","iconUrl":"https://cdn.coinranking.com/BpVNCX-NM/frax.png","marketCap":"1358607996","price":"1.0003993495790997","listedAt":1615299931,"tier":1,"change":"0.16","rank":43,"sparkline":["0.9993285438443996","1.0001938698647872","0.99995237657306","0.9992610930077082","0.9995048898577841","0.9984857957300194","0.9991338275862605","0.9991463646832447","0.9995515068035792","0.9992688671456238","0.9999129851645419","1.0002242997546233","0.9997489012662978","0.9999089765400784","0.9996981799238007","0.9997742307253584","0.9993713087045574","0.9989351433651499","1.0000638089453535","1.0006451157986236","0.9999648159326433","0.9994226357449991","0.9996808337018925","0.9992443919870343","0.9998943295360442"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/KfWtaeV1W+frax-frax","24hVolume":"3733741","btcPrice":"0.00004990373209239"},{"uuid":"bauj_21eYVwso","symbol":"QNT","name":"Quant","color":"#585e63","iconUrl":"https://cdn.coinranking.com/a-i9Dl392/quant.png","marketCap":"1353080262","price":"138.39087676538432","listedAt":1533945600,"tier":1,"change":"0.54","rank":44,"sparkline":["137.5931163349706","137.1964500881598","136.82868883894076","137.71306856606782","138.03647928074753","138.80197795554938","139.12071269372848","139.05878455835125","139.14677841096062","138.87253490735398","138.02179236057498","137.42442294208283","137.46239645857338","139.5002036124544","138.97889139890526","139.28426593094446","139.56150019257015","140.736716556136","139.96389332265113","139.6272333811887","139.07635485204617","139.63664566013787","139.31235216385738","139.11852066488916","138.98410332519478"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/bauj_21eYVwso+quant-qnt","24hVolume":"50635040","btcPrice":"0.00690346434255123"},{"uuid":"fsIbGOEJWbzxG","symbol":"XTZ","name":"Tezos","color":"#2c7df7","iconUrl":"https://cdn.coinranking.com/HkLUdilQ7/xtz.svg","marketCap":"1300204054","price":"1.4316486920645115","listedAt":1530662400,"tier":1,"change":"0.26","rank":45,"sparkline":["1.4303771565197818","1.4263870016300133","1.421883939884071","1.42509607402001","1.4278239665456545","1.4336636277697252","1.4443645638453815","1.4463747088081587","1.4428608091094144","1.4490881454348474","1.4450878337651158","1.4401715843904537","1.4355060812047051","1.4365702563644107","1.4342648056647027","1.4335722045688304","1.4324898436773112","1.4381985706493114","1.4396839449567278","1.4329513431489487","1.4241068248436421","1.4249205356366212","1.4218540466859932","1.4273001583428873","1.431100926224263"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/fsIbGOEJWbzxG+tezos-xtz","24hVolume":"26826699","btcPrice":"0.000071416092792611"},{"uuid":"omwkOTglq","symbol":"EGLD","name":"Elrond","color":"#000000","iconUrl":"https://cdn.coinranking.com/X62ruAuZQ/Elrond.svg","marketCap":"1297267328","price":"54.906068498049464","listedAt":1612524044,"tier":1,"change":"0.40","rank":46,"sparkline":["54.78019415186295","54.622161996831736","54.49977253219301","54.11874620026287","54.2183062824539","54.68045352030543","55.29261101979573","55.12466500529631","55.4096265101037","55.17360006105945","55.03825697066999","54.83782041498208","54.61575869744404","54.70295376603455","55.00400189240814","55.12856947927623","55.12370474660532","55.09496818313045","55.071190262317295","54.8879367152154","54.82942987973649","55.05026322723258","55.347006013656","55.053173275089456","54.82032064325985"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/omwkOTglq+elrond-egld","24hVolume":"64240250","btcPrice":"0.002738923944448696"},{"uuid":"GSCt2y6YSgO26","symbol":"CHZ","name":"Chiliz","color":"#d05e72","iconUrl":"https://cdn.coinranking.com/gTsOlSnwR/4066.png","marketCap":"1280957145","price":"0.21561767129967355","listedAt":1562332440,"tier":1,"change":"-0.12","rank":47,"sparkline":["0.2167380301064244","0.2171911085758357","0.21553593139708543","0.21544366417321525","0.21646610949174847","0.21730782782429547","0.21865681130587172","0.21939390999187283","0.21985592005582816","0.21915437745243896","0.2184171446254368","0.21798236632181323","0.21693749749939806","0.21615410342830474","0.21571986164973528","0.2159788490629823","0.2156433096393173","0.21617987529587182","0.21607036881499855","0.21498784486894162","0.21491990483747653","0.21697133723181256","0.21755752799238656","0.21695741930079548","0.21624210773698346"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/GSCt2y6YSgO26+chiliz-chz","24hVolume":"460083495","btcPrice":"0.000010755831166275"},{"uuid":"pxtKbG5rg","symbol":"SAND","name":"The Sandbox","color":"#00adef","iconUrl":"https://cdn.coinranking.com/kd_vwOcnI/sandbox.png","marketCap":"1271733183","price":"0.848121674413878","listedAt":1613583024,"tier":1,"change":"-1.84","rank":48,"sparkline":["0.8657345193530482","0.8652752878725027","0.8590405964683089","0.859478250004335","0.8609939510022012","0.8652881133772078","0.8665208089867517","0.8666644958759461","0.8662362089943302","0.8669849089516505","0.8647803548984957","0.8606548254227334","0.8585067841087192","0.8664345388506387","0.8598642242587775","0.8550905012498858","0.8525754893351933","0.8559365662168398","0.8569336638527342","0.8534178656749926","0.8500209726685031","0.8518987104449217","0.8509619881948727","0.8511662710715976","0.8487851228369447"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/pxtKbG5rg+thesandbox-sand","24hVolume":"88867473","btcPrice":"0.00004230754132288"},{"uuid":"Pe93bIOD2","symbol":"LDO","name":"Lido DAO Token","color":"#77cced","iconUrl":"https://cdn.coinranking.com/Wp6LFY6ZZ/8000.png","marketCap":"1214493417","price":"1.509958655569204","listedAt":1627361901,"tier":1,"change":"-0.23","rank":49,"sparkline":["1.5262127929864016","1.5176954452819915","1.5150991540359635","1.5176061095960762","1.5245756510192037","1.5369489213784007","1.5521086753177897","1.5577273434480916","1.5620222188046804","1.5618008806408366","1.5635266954065115","1.5512539189835166","1.5391761578058742","1.5417728397433934","1.5391662862821918","1.551732422410982","1.5578727920234121","1.5605897391023955","1.5588570574766867","1.5471920671898944","1.5272851166043249","1.5300952108412735","1.5251316323745978","1.5245868135847145","1.517349608311682"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/Pe93bIOD2+lidodaotoken-ldo","24hVolume":"15460209","btcPrice":"0.00007532249221255"},{"uuid":"iAzbfXiBBKkR6","symbol":"EOS","name":"EOS","color":"#443f54","iconUrl":"https://cdn.coinranking.com/PqOYrWSje/eos2.svg","marketCap":"1157793715","price":"1.1712453110782213","listedAt":1498694400,"tier":1,"change":"-0.13","rank":50,"sparkline":["1.1762786527168803","1.171863999952927","1.1694694824289555","1.1709120673050462","1.1739859596809479","1.17900555328724","1.184230473597679","1.185710435108849","1.1864344657129484","1.1885516582635711","1.1870888275685685","1.1829654851494844","1.1771131630544172","1.1762377714095447","1.1769630259663557","1.1772035508413894","1.1801998841804127","1.182765609452055","1.1831309976109754","1.1791147972134663","1.1763354821221652","1.1775466682421731","1.1755236038522172","1.1754738968052796","1.1733712393528222"],"lowVolume":false,"coinrankingUrl":"https://coinranking.com/coin/iAzbfXiBBKkR6+eos-eos","24hVolume":"281714819","btcPrice":"0.000058426179748225"}]}}
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)
except:
print("This cell is dependent on running API call in cell above!")
JSON data is Python type: <class 'dict'> API status: success BTC 20046.583845211964 Icon Url: https://cdn.coinranking.com/bOabBYkcX/bitcoin_btc.svg Rank Url: https://coinranking.com/coin/Qwsogvtv82FCd+bitcoin-btc ETH 1358.8203036993507 Icon Url: https://cdn.coinranking.com/rk4RKHOuW/eth.svg Rank Url: https://coinranking.com/coin/razxDUgYGNAdQ+ethereum-eth USDT 1.0007724451188478 Icon Url: https://cdn.coinranking.com/mgHqwlCLj/usdt.svg Rank Url: https://coinranking.com/coin/HIVsRcGKkPFtW+tetherusd-usdt USDC 1.0010183883810226 Icon Url: https://cdn.coinranking.com/jkDf8sQbY/usdc.svg Rank Url: https://coinranking.com/coin/aKzUVe4Hh_CON+usdc-usdc BNB 293.30188392001014 Icon Url: https://cdn.coinranking.com/B1N19L_dZ/bnb.svg Rank Url: https://coinranking.com/coin/WcwrkfNI4FUAe+binancecoin-bnb XRP 0.49612120329910436 Icon Url: https://cdn.coinranking.com/B1oPuTyfX/xrp.svg Rank Url: https://coinranking.com/coin/-l8Mn2pVlRs-p+xrp-xrp BUSD 1.0005116038816269 Icon Url: https://cdn.coinranking.com/6SJHRfClq/busd.svg Rank Url: https://coinranking.com/coin/vSo2fu9iE1s0Y+binanceusd-busd ADA 0.42898904780299635 Icon Url: https://cdn.coinranking.com/ryY28nXhW/ada.svg Rank Url: https://coinranking.com/coin/qzawljRxB5bYu+cardano-ada SOL 33.712032667285605 Icon Url: https://cdn.coinranking.com/yvUG4Qex5/solana.svg Rank Url: https://coinranking.com/coin/zNZHO_Sjf+solana-sol DOGE 0.0638616646530509 Icon Url: https://cdn.coinranking.com/H1arXIuOZ/doge.svg Rank Url: https://coinranking.com/coin/a91GCGd_u96cF+dogecoin-doge MATIC 0.8415656771217019 Icon Url: https://cdn.coinranking.com/WulYRq14o/polygon.png Rank Url: https://coinranking.com/coin/uW2tk-ILY0ii+polygon-matic DOT 6.379095272664653 Icon Url: https://cdn.coinranking.com/RsljYqnbu/polkadot.svg Rank Url: https://coinranking.com/coin/25W7FG7om+polkadot-dot SHIB 0.00001129248587654 Icon Url: https://cdn.coinranking.com/D69LfI-tm/shib.png Rank Url: https://coinranking.com/coin/xz24e0BjL+shibainu-shib DAI 1.000588465014447 Icon Url: https://cdn.coinranking.com/mAZ_7LwOE/mutli-collateral-dai.svg Rank Url: https://coinranking.com/coin/MoTuySvg7+dai-dai TRX 0.06256427894867475 Icon Url: https://cdn.coinranking.com/behejNqQs/trx.svg Rank Url: https://coinranking.com/coin/qUhEFk1I61atv+tron-trx WETH 1359.7372924111291 Icon Url: https://cdn.coinranking.com/KIviQyZlt/weth.svg Rank Url: https://coinranking.com/coin/Mtfb0obXVh59u+wrappedether-weth UNI 6.891546741433287 Icon Url: https://cdn.coinranking.com/1heSvUgtl/uniswap-v2.svg?size=48x48 Rank Url: https://coinranking.com/coin/_H5FVG9iW+uniswap-uni AVAX 17.168456711545172 Icon Url: https://cdn.coinranking.com/S0C6Cw2-w/avax-avalanche.png Rank Url: https://coinranking.com/coin/dvUj0CzDZ+avalanche-avax WBTC 20043.002401942034 Icon Url: https://cdn.coinranking.com/o3-8cvCHu/wbtc[1].svg Rank Url: https://coinranking.com/coin/x4WXHge-vvFY+wrappedbtc-wbtc ATOM 13.135788613986428 Icon Url: https://cdn.coinranking.com/HJzHboruM/atom.svg Rank Url: https://coinranking.com/coin/Knsels4_Ol-Ny+cosmos-atom OKB 15.665044692450335 Icon Url: https://cdn.coinranking.com/xcZdYtX6E/okx.png Rank Url: https://coinranking.com/coin/PDKcptVnzJTmN+okb-okb LTC 54.09436583189665 Icon Url: https://cdn.coinranking.com/BUvPxmc9o/ltcnew.svg Rank Url: https://coinranking.com/coin/D7B1x_ks7WhV5+litecoin-ltc FTT 24.710340434142324 Icon Url: https://cdn.coinranking.com/WyBm4_EzM/ftx-exchange.svg Rank Url: https://coinranking.com/coin/NfeOYfNcl+ftxtoken-ftt ETC 27.96780543291794 Icon Url: https://cdn.coinranking.com/rJfyor__W/etc.svg Rank Url: https://coinranking.com/coin/hnfQfsYfeIGUQ+ethereumclassic-etc XMR 145.42302192434917 Icon Url: https://cdn.coinranking.com/Syz-oSd_Z/xmr.svg Rank Url: https://coinranking.com/coin/3mVx2FX_iJFp5+monero-xmr ALGO 0.3508527512952266 Icon Url: https://cdn.coinranking.com/lzbmCkUGB/algo.svg Rank Url: https://coinranking.com/coin/TpHE2IShQw-sJ+algorand-algo XLM 0.12049770010869333 Icon Url: https://cdn.coinranking.com/78CxK1xsp/Stellar_symbol_black_RGB.svg Rank Url: https://coinranking.com/coin/f3iaFeCKEmkaZ+stellar-xlm BCH 120.22573455216414 Icon Url: https://cdn.coinranking.com/By8ziihX7/bch.svg Rank Url: https://coinranking.com/coin/ZlZpzOJo43mIo+bitcoincash-bch BTCB 20059.76776641939 Icon Url: https://cdn.coinranking.com/Swr_SeZio/4023.png Rank Url: https://coinranking.com/coin/9_jH48RBW+bitcoinbep2-btcb NEAR 3.650608062518831 Icon Url: https://cdn.coinranking.com/Cth83dCnl/near.png Rank Url: https://coinranking.com/coin/DCrsaMv68+nearprotocol-near CRO 0.1099067550955083 Icon Url: https://cdn.coinranking.com/2o91jm73M/cro.svg Rank Url: https://coinranking.com/coin/65PHZTpmE55b+cronos-cro LUNC 0.000290719731748237 Icon Url: https://cdn.coinranking.com/F-PJdF8Um/LUNA.svg Rank Url: https://coinranking.com/coin/AaQUAs2Mc+terraclassic-lunc WEMIX 1.8035932783044732 Icon Url: https://cdn.coinranking.com/1N84MQsoO/7548.png Rank Url: https://coinranking.com/coin/08CsQa-Ov+wemixtoken-wemix FLOW 1.699651221961024 Icon Url: https://cdn.coinranking.com/xh8X8QBss/flow.png Rank Url: https://coinranking.com/coin/QQ0NCmjVq+flow-flow ENS 17.156454777297956 Icon Url: https://cdn.coinranking.com/fmYxEUV5a/cropped-logo37-Converted-01-192x192.png Rank Url: https://coinranking.com/coin/SbWqqTui-+energyswap-ens FIL 5.538253629331978 Icon Url: https://cdn.coinranking.com/vUmvv-IQA/FIL3-filecoin.svg?size=48x48 Rank Url: https://coinranking.com/coin/ymQub4fuB+filecoin-fil ICP 6.040895547504492 Icon Url: https://cdn.coinranking.com/1uJ_RVrmC/dfinity-icp.png Rank Url: https://coinranking.com/coin/aMNLwaUbY+internetcomputerdfinity-icp VET 0.023573507140828676 Icon Url: https://cdn.coinranking.com/B1_TDu9Dm/VEN.svg Rank Url: https://coinranking.com/coin/FEbS54wxo4oIl+vechain-vet CAKE 4.720556375462068 Icon Url: https://cdn.coinranking.com/aRtgdw7bQ/pancakeswap-cake-logo.png Rank Url: https://coinranking.com/coin/ncYFcP709+pancakeswap-cake MANA 0.7008040361582227 Icon Url: https://cdn.coinranking.com/ph_svUzXs/decentraland(1).svg Rank Url: https://coinranking.com/coin/tEf7-dnwV3BXS+decentraland-mana IMX 0.7644336476628847 Icon Url: https://cdn.coinranking.com/naRGT2Y_X/10603.png Rank Url: https://coinranking.com/coin/Z96jIvLU7+immutablex-imx HBAR 0.057955556105098525 Icon Url: https://cdn.coinranking.com/dSCnSLilQ/hedera.svg Rank Url: https://coinranking.com/coin/jad286TjB+hedera-hbar FRAX 1.0003993495790997 Icon Url: https://cdn.coinranking.com/BpVNCX-NM/frax.png Rank Url: https://coinranking.com/coin/KfWtaeV1W+frax-frax QNT 138.39087676538432 Icon Url: https://cdn.coinranking.com/a-i9Dl392/quant.png Rank Url: https://coinranking.com/coin/bauj_21eYVwso+quant-qnt XTZ 1.4316486920645115 Icon Url: https://cdn.coinranking.com/HkLUdilQ7/xtz.svg Rank Url: https://coinranking.com/coin/fsIbGOEJWbzxG+tezos-xtz EGLD 54.906068498049464 Icon Url: https://cdn.coinranking.com/X62ruAuZQ/Elrond.svg Rank Url: https://coinranking.com/coin/omwkOTglq+elrond-egld CHZ 0.21561767129967355 Icon Url: https://cdn.coinranking.com/gTsOlSnwR/4066.png Rank Url: https://coinranking.com/coin/GSCt2y6YSgO26+chiliz-chz SAND 0.848121674413878 Icon Url: https://cdn.coinranking.com/kd_vwOcnI/sandbox.png Rank Url: https://coinranking.com/coin/pxtKbG5rg+thesandbox-sand LDO 1.509958655569204 Icon Url: https://cdn.coinranking.com/Wp6LFY6ZZ/8000.png Rank Url: https://coinranking.com/coin/Pe93bIOD2+lidodaotoken-ldo EOS 1.1712453110782213 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.
- In the Nighthawk Coders APCSP you can find an Overview and Examples using APIs:APCSP APIs menu- Using Covid RapidAPI
- JavaScript frontend API code in APCSP Fastpages GitHub repo: https://github.com/nighthawkcoders/APCSP/blob/master/_posts/2022-07-10-PBL-rapidapi.md
- Making a Jokes API (this will next API tech talk)
- Frontend. JavaScript frontend code in APCSP fastpages GitHub repo: https://github.com/nighthawkcoders/APCSP/blob/master/_posts/2022-07-10-PBL-jokes.md
- Backend Endpoints. Python code that allows Frontend access: https://github.com/nighthawkcoders/flask_portfolio/blob/main/api.py
- Backend Jokes Management. Python code that support Create, Read, Update, Delete (CRUD): https://github.com/nighthawkcoders/flask_portfolio/blob/main/model_jokes.py
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.