API

About API

Programmatic requests follow a simple protocol:

Make a POST request

curl -H Content-Type:application/json -X POST -d '{"url":"https://example.co"}' http://cru.cx/api

Returned result

{"link":"https://cru.cx/0HrJ6"}

Short URL for looking up external IP

curl https://cru.cx/ip

Returned result

{"ip":"1.2.3.4"}