Network API with native Yggdrasil/IPv6 support
git clone https://github.com/YGGverse/web-api.git
cd web-api
composer install
nano config.json
cd src/public
php -S localhost:8080
Check socket (also useful for open ports detection)
port
- requiredhost
- optional, name, IPv4 or IPv6REMOTE_ADDR
by default
GET /net/socket.php?port=80&host=yo.index
JSON
{
success: bool
}
Show host records
name
- required host name, IPv4 or IPv6record
- required ifrecords
not providedrecords
- required ifrecord
not provided
- A
- AAAA
- SRV
GET /net/dig.php?name=yo.index&record=A
GET /net/dig.php?name=yo.index&records[]=A&records[]=AAAA
JSON
{
success: bool
records: array
}
http://[201:23b4:991a:634d:8359:4521:5576:15b7]/api/
http://[201:5eb5:f061:678e:7565:6338:c02c:5251]/api/
http://api.ygg
http://api.ygg.at
https://yggapi.duckdns.org