1
0
mirror of https://github.com/r4sas/Niflheim-api synced 2025-01-31 00:54:18 +00:00

54 lines
3.1 KiB
HTML
Raw Normal View History

2018-11-17 18:24:20 +01:00
<!doctype html>
<title>API</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css')}}"/>
<html>
2019-12-31 22:50:44 +00:00
<body>
<div id="wrapper">
2018-11-17 18:24:20 +01:00
<div id="title">
2019-12-31 22:50:44 +00:00
<a href='/'>Yggdrasil Network API</a>
2018-11-17 18:24:20 +01:00
</div>
2019-12-31 22:50:44 +00:00
This API provides collected DHT views from different nodes around the network in an effort to let yggdrasil developers and others research the networks growth.<br /><br />
2018-11-17 18:24:20 +01:00
2019-12-31 22:50:44 +00:00
<div class="wide"></div>
<center>
<strong>Current Nodes online<br />
<font size="18">{{ nodes }}</font></strong>
<br /><br />
You can see them in <i>Yggdrasil Interactive World map</i> <sup><a href="http://[21f:dd73:7cdb:773b:a924:7ec0:800b:221e]/">[&#8663;]</a> <a href="http://map.ygg/" target="_blank">[DNS]</a></sup>
2019-12-31 22:50:44 +00:00
</center>
<br /><br />
2018-11-17 18:24:20 +01:00
2019-12-31 22:50:44 +00:00
<div class="wide"></div>
<strong>Make an API request</strong><br />
<small>note: data updated every 15 minutes, all requests are returned in JSON.</small><br /><br />
2018-11-17 18:24:20 +01:00
2019-12-31 22:50:44 +00:00
Get a current list of active and online nodes:<br />
<div class="apireq">
http://[31a:fb8a:c43e:ca59::2]/current <sup><a href="http://[31a:fb8a:c43e:ca59::2]/current" target="_blank">[&#8663;]</a> <a href="http://nodelist.ygg/current" target="_blank">[DNS]</a></sup>
2019-12-31 22:50:44 +00:00
</div>
2019-12-31 23:32:54 +00:00
Nodeinfo from all current active nodes:<br />
2019-12-31 22:50:44 +00:00
<div class="apireq">
http://[31a:fb8a:c43e:ca59::2]/nodeinfo <sup><a href="http://[31a:fb8a:c43e:ca59::2]/nodeinfo" target="_blank">[&#8663;]</a> <a href="http://nodelist.ygg/nodeinfo" target="_blank">[DNS]</a></sup>
2020-01-02 17:05:12 +00:00
</div>
Active nodes count for last 24 hours:<br />
<div class="apireq">
http://[31a:fb8a:c43e:ca59::2]/nodes24h <sup><a href="http://[31a:fb8a:c43e:ca59::2]/nodes24h" target="_blank">[&#8663;]</a> <a href="http://nodelist.ygg/nodes24h" target="_blank">[DNS]</a></sup>
2019-12-31 22:50:44 +00:00
</div>
2020-06-07 08:42:00 +00:00
Active nodes count for last 30 days:<br />
<div class="apireq">
http://[31a:fb8a:c43e:ca59::2]/nodes30d <sup><a href="http://[31a:fb8a:c43e:ca59::2]/nodes30d" target="_blank">[&#8663;]</a> <a href="http://nodelist.ygg/nodes30d" target="_blank">[DNS]</a></sup>
</div>
2019-12-31 22:50:44 +00:00
<div class="wide"></div>
<strong>Get latest crawler data</strong><br />
2020-06-07 08:42:00 +00:00
You can download data in raw json provided by <a href="https://github.com/neilalexander/yggcrawl" target="_blank">yggcrawl</a>:<br />
<div class="apireq">
http://[31a:fb8a:c43e:ca59::2]/result.json <sup><a href="http://[31a:fb8a:c43e:ca59::2]/result.json" target="_blank">[&#8663;]</a> <a href="http://nodelist.ygg/result.json" target="_blank">[DNS]</a></sup>
</div>
2019-12-31 22:50:44 +00:00
<div class="wide"></div>
2020-01-06 17:44:40 +00:00
<small>Made with <a href="https://github.com/r4sas/Niflheim-api" target="_blank">fork</a> of <a href="https://github.com/yakamok/Niflheim-api" target="_blank">Niflheim-API</a> by yakamok</small>
2019-12-31 22:50:44 +00:00
</div>
</body>
2018-11-17 18:24:20 +01:00
</html>