I want to study the properties of the Lightning network graph. Is there a way to obtain a reasonably fresh snapshot containing nodes and channels (say, in JSON format)? There are multiple explorers available (e.g. listed in this question), but AFAIK none of them provides the underlying data for download.
(I could just launch my own node and query the data with allnodes
/ allchannels
or a similar command, but that requires synching a non-pruned full node, which I'm trying to avoid at the moment.)
UPD: 1ML does provide some JSON (look for the JSON button on various pages). For example, https://1ml.com/testnet/node?json=true gives the JSON description of the top 50 nodes. I haven't found the way to get this data for all nodes though.
UPD2: a related question: Obtaining Lightning network graph data.