An unofficial LunarCrush API v2 and v3 Wrapper for Python. No API key needed for LCv2!
LunarCrushAPI
Unofficial LunarCrush API v2 and v3 Wrapper for Python. No API key needed for LCv2!
💽 Installation
LunarCrushAPI is supported on Python 3.6+. You can install this package via pip:pip install lunarcrush
🔍 Quickstart for LunarCrush API v2
1. Create an instance of LunarCrushfrom lunarcrush import LunarCrush
lc = LunarCrush()
2. Start requesting information!
eth1yeardata = lc.getassets(symbol=['ETH'],
data_points=365, interval='day')
🔍 Quickstart for LunarCrush API v3
1. Create an instance of LunarCrushV3from lunarcrush import LunarCrushV3
lcv3 = LunarCrushV3('<YOUR API KEY>')
2. Start requesting information!
ethinsights = lcv3.getcoininsights(coin='ETH', metrics='socialvolume')
📜 API v2 Endpoints
Here is a short description for the LunarCrush API v2 Endpoints.| Method | Description | Not authorized parameters | |-----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|---------------------------| |
(symbol, timeseriesindicators, change, datapoints) | Details, overall metrics, and time series metrics for one or multiple assets. | ((limit, page, sort) | Summary information for all supported assets (Markets page) including 5 recent time series values for some metrics. | | | (symbol, limit, page) | Provides the exchange information for assets, and the other assets they are being traded for. | | | (interval, change, datapoints) | Overall aggregated metrics for all supported assets (top of Markets page). | | | (type) | Meta information for all supported assets | | | (exchange) | Meta information and market pairs for a single exchange that we track | | | (limit, orderby) | Meta information for all exchanges that we track | | | () | The current coin of the day | | | () | Provides the history of the coin of the day on LunarCRUSH when it was last changed, and when each coin was last coin of the day | | | (sources, page, type, limit) | Social posts, news, and shared links for one or multiple coins. | ((id, screenname, days, page) | Individual influencer details including actual posts. | ((symbol, days, numdays, order_by) | List of social accounts that have the most influence on different assets based on number of followers, engagements and volume of posts. | (⚠️ Warning!
Some parameters might NOT work properly for LunarCrush API v2, making the server to response with a 5XX error.📰 API v3 Endpoints
| Method | Endpoint | |--------------------------------------------------------|---------------------------| |
() | /coinoftheday | | () | /coinoftheday/info | | (sort, limit, desc) | /coins | | (coin) | /coins/{coin} | | (coin, interval) | /coins/{coin}/change | | (coin) | /coins/{coin}/historical | | (coin, interval, order) | /coins/{coin}/influencers | | (coin, metrics, limit) | /coins/{coin}/insights | | (coin) | /coins/{coin}/meta | | (coin, interval, start) | /coins/{coin}/time-series | | () | /coins/global | | (interval) | /coins/global/change | | () | /coins/global/historical | | (metrics, limit) | /coins/global/insights | | (interval, start) | /coins/global/time-series | | (interval, order) | /coins/influencers | | (metrics, limit) | /coins/insights | | () | /coins/list | | (order, limit) | /exchanges | | (exchange) | /exchanges/{exchange} | | (limit, since, hours, days, sources) | /feeds | | (feed) | /feeds/{feed} | | (influencer, fast, interval, sort) | /influencers/{influencer} | | (insight, type) | /insights/{insight} | | (coin, limit, page, sort) | /market-pairs/{coin} | | () | /nftoftheday | | () | /nftoftheday/info | | (sort, limit, desc) | /nfts | | (nft) | /nft/{nft} | | (nft, interval) | /nfts/{nft}/change | | (nft) | /nfts/{nft}/historical | | (nft, interval, order) | /nfts/{nft}/influencers | | (nft, metrics, limit) | /nfts/{nft}/insights | | (nft, interval, start) | /nfts/{nft}/time-series | | (nft, sort) | /nfts/{nft}/tokens | | () | /nfts/global | | (interval) | /nfts/global/change | | () | /nfts/global/historical | | (metrics, limit) | /nfts/global/insights | | (interval, start) | /nfts/global/time-series | | (interval, order) | /nfts/influencers | | (metrics, limit) | /nfts/insights | | () | /nfts/list | | (context, sort) | /opinions | | () | /opinions/summary | | (sparkid) | /sparks/{spark_id} | | () | /stats/lunrfi | | (interval, type, market) | /top-mentions |
You can visit LunarCrush API v3 documentation for a more detailed description of all the endpoints and parameters.