What I need
I need all information of tab "Token Transfers" in token info at etherscan. Exactly in format at the site. For example I want to get all Token Transfers from here https://etherscan.io/token/Decentraland. And question is: How to get this data through api?
What I tried to do
For local solution I got it manually downloading CSV through interface on Etherscan, but I need update data regularly and manual solution is a pain.
I found this answer Obtain token transfer data from an address and it seemed to me as very useful but it didn't give me a token quantity information. Actually, it gave me transactionHash and I tried to get desired result through
transactions
api-methods (where is used these paramsmodule=account&action=txlist
), but it didn't get me valid quantity (0.5 eth were showed likevalue=500000
).
Moreover, I think it could be more simplier way to get this info — that's why I'm here.
A bit of code
The python code I used to get transaction info
import requests
url = 'https://api.etherscan.io/api?module=logs&action=getLogs\
&fromBlock=0\
&toBlock=latest\
&address=0x0f5d2fb29fb7d3cfee444a200298f468908cc942\
&apikey='+apikey
request = requests.get(url)
results = request.json()