mirror of
https://github.com/r4sas/Niflheim-api
synced 2025-01-30 00:24:19 +00:00
56 lines
3.3 KiB
HTML
56 lines
3.3 KiB
HTML
<!doctype html>
|
|
<title>API</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css')}}"/>
|
|
<html>
|
|
<body>
|
|
<div id="wrapper">
|
|
<div id="title">
|
|
<a href='/'>Yggdrasil Network API</a>
|
|
</div>
|
|
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 />
|
|
|
|
<div class="wide"></div>
|
|
<center>
|
|
<strong>Current Nodes online<br />
|
|
<font size="18">{{ nodes }}</font></strong>
|
|
<br /><br />
|
|
You can see them in <a href="/map"><i>Yggdrasil Interactive World map</i></a>
|
|
<br />
|
|
Arceliar's map can be found here: <sup><a href="http://[21e:e795:8e82:a9e2:ff48:952d:55f2:f0bb]/" target="_blank">[⇗]</a> <a href="http://map.ygg/" target="_blank">[DNS]</a></sup>
|
|
</center>
|
|
<br /><br />
|
|
|
|
<div class="wide"></div>
|
|
<strong>Make an API request</strong><br />
|
|
<small>note: data is updated hourly (due to network growth and instabillity), all requests are returned in JSON.</small><br /><br />
|
|
|
|
Get a current list of active and online nodes:<br />
|
|
<div class="apireq">
|
|
http://[316:c51a:62a3:8b9::2]/current <sup><a href="http://[316:c51a:62a3:8b9::2]/current" target="_blank">[⇗]</a> <a href="http://nodelist.ygg/current" target="_blank">[DNS]</a></sup>
|
|
</div>
|
|
Nodeinfo from all current active nodes:<br />
|
|
<div class="apireq">
|
|
http://[316:c51a:62a3:8b9::2]/nodeinfo <sup><a href="http://[316:c51a:62a3:8b9::2]/nodeinfo" target="_blank">[⇗]</a> <a href="http://nodelist.ygg/nodeinfo" target="_blank">[DNS]</a></sup>
|
|
</div>
|
|
Active nodes count for last 24 hours:<br />
|
|
<div class="apireq">
|
|
http://[316:c51a:62a3:8b9::2]/nodes24h <sup><a href="http://[316:c51a:62a3:8b9::2]/nodes24h" target="_blank">[⇗]</a> <a href="http://nodelist.ygg/nodes24h" target="_blank">[DNS]</a></sup>
|
|
</div>
|
|
Active nodes count for last 30 days:<br />
|
|
<div class="apireq">
|
|
http://[316:c51a:62a3:8b9::2]/nodes30d <sup><a href="http://[316:c51a:62a3:8b9::2]/nodes30d" target="_blank">[⇗]</a> <a href="http://nodelist.ygg/nodes30d" target="_blank">[DNS]</a></sup>
|
|
</div>
|
|
|
|
<div class="wide"></div>
|
|
<strong>Get latest crawler data</strong><br />
|
|
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">[⇗]</a> <a href="http://nodelist.ygg/result.json" target="_blank">[DNS]</a></sup>
|
|
</div>
|
|
|
|
<div class="wide"></div>
|
|
<small>Made with <a href="https://github.com/r4sas/yggdrasil-monitor" target="_blank">fork</a> of <a href="https://github.com/yakamok/Niflheim-api" target="_blank">Niflheim-API</a> by yakamok</small>
|
|
</div>
|
|
</body>
|
|
</html>
|