nglier

not gonna lie, someone's getting texts

API

hit the endpoint directly if you want to script it or build on top of this.

endpoint

GET /api?username={username}&messagetype={random|custom}&custommessage={message}&howmuch={count}

parameters

param required description
username yes ngl username to send to
messagetype yes random or custom
custommessage if custom the message to send. ignored if type is random.
howmuch yes number of messages to send (1-50)

response

returns JSON with the results of each send attempt.

{
  "username": "someone",
  "messagetype": "random",
  "total": 3,
  "sent": 2,
  "failed": 1,
  "results": [
    { "index": 1, "ok": true, "message": "Stay amazing!" },
    { "index": 2, "ok": true, "message": "Have a great day!" },
    { "index": 3, "ok": false, "message": "You're awesome!", "error": "..." }
  ]
}

errors

status message
400 missing or invalid parameters
500 something broke on our end

examples

curl

curl "https://nglier.os7.site/api?username=johndoe&messagetype=custom&custommessage=hello&howmuch=1"

javascript

const res = await fetch(
  "/api?username=johndoe&messagetype=random&howmuch=5"
);
const data = await res.json();
console.log(data.sent, "messages sent");
there's no rate limit built in yet. don't be weird about it.
☕ buy me a cha github