Return to enstrayed.com

API Documentation

This page was last updated 2024-08-20.

Source Code & Issue Tracker: github.com/enstrayed/enstrayedapi


/api/nowplaying

nowplaying.js GET

Returns whatever I'm listening to via the Last.fm API in JSON. If ?format=html is used in the URL it will return the same but in HTML. If nothing is playing the JSON response will just have "playing": false.

/api/etyd/*

etyd.js GET POST DELETE

Retrieves, creates or deletes entries for the etyd.cc URL shortener. Replace * in the URL for the target of the request.

Required Headers (POST, DELETE): Required Body (POST):
{
        "url": "urlValue"
}

/api/sendemail

mailjet.js POST

Sends an email to the specified recipient, intended for application & automation use.

Required Headers: Required Body:
{
        "recipient": "recipientEmailHere",
        "subject": "emailSubjectHere",
        "message": "emailBodyHere"
}

/api/ip

ip.js GET

Returns the IP, country and Cloudflare ray of the request in JSON.

/api/headers

ip.js GET

Returns all request headers in JSON.