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"}' https://occu.ltd/api

Returned result

{"link":"https://occu.ltd/0HrJ6"}

Short URL for looking up external IP

curl https://occu.ltd/ip

Returned result

{"ip":"1.2.3.4"}