GETPOST/api/notify
Visit & link notifications
Sends a Telegram message when someone visits one of your sites or clicks a tagged link. Open to any site: call it from the browser with notify.js, or directly with GET (query string) or POST (JSON body), from a page, a server or a script.
Parameters
sitequery or body · string · required- Site the visit belongs to, e.g. aslantm.com. For browser calls it falls back to the page's origin; notify.js sends the hostname.
fromquery or body · string- Where the link was placed, e.g. instagram or rojdaofficial.com. Up to 80 characters.
messagequery or body · string- Extra label for the link, e.g. bio or footer. Up to 80 characters.
pathquery or body · string- Page that was opened, e.g. /about.
referrerquery or body · string- Referring URL (document.referrer); only its host is shown. Empty means a direct visit.
Responses
200- { "ok": true, "sent": true, "visit": "<token>" } — or "sent": false with a reason ("bot", "throttled"). The visit token is used for the visit report.
302- When the link is opened in a browser: after sending, redirects to https://<site><path>.
400- { "ok": false, "error": ... } — site is missing.
502- Telegram did not accept the message.
- CORS is open (Access-Control-Allow-Origin: *), so any site can call it.
- Every visit is also saved to the ASLANTM visit log, with visit counts per site, per day and per tagged link.
- Clicked in a browser, the link sends the message and redirects the visitor to the site, so it works on sites without notify.js too. fetch, curl and servers get JSON instead.
- notify.js notifies once per browser session for plain visits and every time for tagged links (?from=...&message=..., or utm_source / utm_campaign). It removes from/message from the address bar afterwards; utm_* stays for analytics.
- Search engines and link-preview bots (WhatsApp, Telegram, Slack...) are ignored, so sharing a link does not trigger a message.
- The same visitor, site and link within 30 seconds is sent once; at most 30 messages a minute.
- Open a site with notify.js once with ?notrack to stop notifications from that browser; ?track turns them back on.
<script src="https://aslantm.com/notify.js" defer></script>https://aslantm.com/api/notify?site=aslantm.com&from=instagram&message=biocurl "https://aslantm.com/api/notify?site=aslantm.com&from=instagram&message=bio"fetch("https://aslantm.com/api/notify", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ site: "aslantm.com", from: "instagram", message: "bio" }),
});https://aslantm.com/?from=instagram&message=bio
https://muhammedaslan.net/?from=rojdaofficial.com&message=footer{ "ok": true, "sent": true, "visit": "1234.Xy9…" }New visit
Site: muhammedaslan.net
Page: /
Source: rojdaofficial.com
Message: footer
Referrer: rojdaofficial.com
Location: Istanbul, Türkiye
Device: iPhone · Instagram app
Time: 21 Nov 2026, 20:45 (Istanbul)