mirror of
https://github.com/YGGverse/web-api.git
synced 2025-03-12 21:41:17 +00:00
net-api
Network API with native Yggdrasil/IPv6 support
Install
git clone https://github.com/YGGverse/net-api.git
cd net-api
composer install
Run
cd src/public
php -S localhost:8080
Features
Socket
Check socket (also useful for open ports detection)
Usage
Attributes
port
- requiredhost
- optional, name, IPv4 or IPv6REMOTE_ADDR
by default
Request
GET socket.php?port=80&host=yo.index
Response
JSON
{
success: bool
}
Dig
Show host records
Usage
Attributes
name
- required host name, IPv4 or IPv6record
- required ifrecords
not providedrecords
- required ifrecord
not provided
Records support
- A
- AAAA
- SRV
Request
Single record
GET dig.php?name=yo.index&record=A
Multiple records
GET dig.php?name=yo.index&records[]=A&records[]=AAAA
Response
JSON
{
success: bool
records: array
}
Online
Yggdrasil
http://[201:23b4:991a:634d:8359:4521:5576:15b7]/api/net/
Alfis
http://api.ygg/net/
http://api.ygg.at/net/
Clearnet
https://yggapi.duckdns.org/net/
Languages
PHP
100%