daycat / daycatapi

api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

daycatapi

The backend powering https://api.daycat.space

Endpoints

/whoami

Returns your IP address

/ipinfo

Returns info about queried IP address

params

ip: IP to query (string)

return

{
"Ip": "114.5.14.2",
"City": "Jakarta",
"Country": "Indonesia",
"Asn": 4761,
"AsnOrg": "INDOSAT Internet Network Provider",
"ISOCode": "ID"
}

/assign

Assigns a domain to point to an IP address

params:

ip: IP address you want the domain to point to (string) type: type of record (string, A or AAAA only)

return

{
"Domain": "M19bGc.dcapi.top",
"ReferenceID": "M19bGcxN9gbxXXXX"
}

/toggleProxy

Changes proxy status of a domain (cloudflare CDN)

params

referenceid: reference ID of the domain (string) proxy: whether to enable or disable proxy (bool)

return

{
"Sucess": true,
"Error": ""
}

/warp

Generates cloudflare warp credentials

params

stack: ipv4 / ipv6 (optional, string) format: xray / wireguard / wg-quick (string)

return

depends on format param

Open source projects used:

About

api


Languages

Language:Go 97.7%Language:Shell 2.3%