Quick start
Free tools need nothing: call them straight away, even from browser JavaScript on your own website.
Link endpoints need an API key: sign in and open Dashboard → Developer API , then click Create API key .
Every response is JSON with "ok": true on success, or "ok": false and an "error" message.
Try one now:
https://rexbd.net/api/v1/tools/amount-in-words?amount=125050.75
Open ↗
Authentication
Send your key in the Authorization header (recommended), or as ?key= for quick tests.
Authorization: Bearer bd_your_api_key_here
🔒 Keep your key secret: it works like a password for your links. Use link endpoints from your server , never from public JavaScript. Creating a new key in the dashboard stops the old one immediately.
Errors & limits
Status Meaning
200 / 201Success (201 = something was created)
401Missing or wrong API key
404That link is not in your account
422Invalid input: the error message says what to fix
429Too many requests: wait a minute
Rate limits: link API 60 requests/minute per key · bulk shortening 10/minute · free tools 60/minute per IP. Every response includes X-RateLimit-Remaining.
Link API Needs your API key.
GET
/api/v1/me
API key
Your account
Check your key works and see your username, link count and total clicks.
cURL JavaScript PHP Response
curl "https://rexbd.net/api/v1/me" \
-H "Authorization: Bearer YOUR_API_KEY"Copy
const res = await fetch("https://rexbd.net/api/v1/me", {
method: "GET",
headers: { Authorization: "Bearer YOUR_API_KEY" }
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/me");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "user": { "username": "rahim", "name": "Rahim", "links": 42, "total_clicks": 1830, "member_since": "2026-01-05T10:00:00+00:00" } }
POST
/api/v1/shorten
API key
Shorten a link
Create one short link. Returns 201 with the new short URL.
Parameter Description
urlrequired The long web address aliasoptional Custom name, 3–64 letters, numbers, - or _ titleoptional A label for your dashboard
cURL JavaScript PHP Response
curl -X POST "https://rexbd.net/api/v1/shorten" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "url=https://example.com/a/very/long/page" \
--data-urlencode "alias=eid-sale"Copy
const res = await fetch("https://rexbd.net/api/v1/shorten", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams("url=https://example.com/a/very/long/page&alias=eid-sale")
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/shorten");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
CURLOPT_POSTFIELDS => "url=https://example.com/a/very/long/page&alias=eid-sale",
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "short_url": "https://rexbd.net/eid-sale", "slug": "eid-sale", "url": "https://example.com/a/very/long/page" }
POST
/api/v1/shorten/bulk
API key
Shorten many links
Up to 50 links in one request. Each line gets its own result, so one bad URL does not stop the rest.
Parameter Description
urls[]required Array of URLs, or urls as text, one per line
cURL JavaScript PHP Response
curl -X POST "https://rexbd.net/api/v1/shorten/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "urls[]=https://example.com/a" \
--data-urlencode "urls[]=https://example.com/b"Copy
const res = await fetch("https://rexbd.net/api/v1/shorten/bulk", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams("urls[]=https://example.com/a&urls[]=https://example.com/b")
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/shorten/bulk");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
CURLOPT_POSTFIELDS => "urls[]=https://example.com/a&urls[]=https://example.com/b",
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "created": 2, "results": [ { "ok": true, "url": "https://example.com/a", "short_url": "https://rexbd.net/Xk3pQa", "slug": "Xk3pQa" }, … ] }
GET
/api/v1/links
API key
List & search links
Your links, newest first, 25 per page (up to 100).
Parameter Description
searchoptional Match slug, URL or title pageoptional Page number (default 1) per_pageoptional 1–100 (default 25)
cURL JavaScript PHP Response
curl "https://rexbd.net/api/v1/links?search=eid&per_page=10" \
-H "Authorization: Bearer YOUR_API_KEY"Copy
const res = await fetch("https://rexbd.net/api/v1/links?search=eid&per_page=10", {
method: "GET",
headers: { Authorization: "Bearer YOUR_API_KEY" }
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/links?search=eid&per_page=10");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "links": [ { "short_url": "…", "slug": "eid-sale", "url": "…", "clicks": 120, "unique_clicks": 96, "status": "active", … } ], "page": 1, "per_page": 10, "total": 1, "last_page": 1 }
GET
/api/v1/links/{slug}
API key
Link details
Everything about one link, including expiry, password protection and last click time.
cURL JavaScript PHP Response
curl "https://rexbd.net/api/v1/links/eid-sale" \
-H "Authorization: Bearer YOUR_API_KEY"Copy
const res = await fetch("https://rexbd.net/api/v1/links/eid-sale", {
method: "GET",
headers: { Authorization: "Bearer YOUR_API_KEY" }
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/links/eid-sale");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "link": { "short_url": "…", "slug": "eid-sale", "active": true, "password_protected": false, "expires_at": null, "stats_url": "…" } }
GET
/api/v1/links/{slug}/stats
API key
Link statistics
Daily clicks plus top countries, devices, browsers, operating systems and referrers (bots excluded).
Parameter Description
daysoptional 1–365 (default 30)
cURL JavaScript PHP Response
curl "https://rexbd.net/api/v1/links/eid-sale/stats?days=7" \
-H "Authorization: Bearer YOUR_API_KEY"Copy
const res = await fetch("https://rexbd.net/api/v1/links/eid-sale/stats?days=7", {
method: "GET",
headers: { Authorization: "Bearer YOUR_API_KEY" }
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/links/eid-sale/stats?days=7");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "totals": { "clicks": 58, "unique": 41 }, "daily": [ { "date": "2026-11-13", "clicks": 9, "unique": 7 }, … ], "countries": [ { "name": "BD", "clicks": 44 } ], "devices": [ … ], "referrers": [ … ] }
PATCH
/api/v1/links/{slug}
API key
Edit a link
Change the destination, title, on/off state or expiry. Send only what you want to change. (POST works too.)
Parameter Description
urloptional New destination titleoptional New label activeoptional 1 = on, 0 = off expires_atoptional e.g. 2026-12-31 23:59, or empty to remove
cURL JavaScript PHP Response
curl -X PATCH "https://rexbd.net/api/v1/links/eid-sale" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "url=https://example.com/new-page" \
--data-urlencode "active=1"Copy
const res = await fetch("https://rexbd.net/api/v1/links/eid-sale", {
method: "PATCH",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams("url=https://example.com/new-page&active=1")
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/links/eid-sale");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
CURLOPT_POSTFIELDS => "url=https://example.com/new-page&active=1",
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "link": { "slug": "eid-sale", "url": "https://example.com/new-page", "status": "active", … } }
DELETE
/api/v1/links/{slug}
API key
Delete a link
Deletes the link and its click history. This cannot be undone.
cURL JavaScript PHP Response
curl -X DELETE "https://rexbd.net/api/v1/links/eid-sale" \
-H "Authorization: Bearer YOUR_API_KEY"Copy
const res = await fetch("https://rexbd.net/api/v1/links/eid-sale", {
method: "DELETE",
headers: { Authorization: "Bearer YOUR_API_KEY" }
});
const data = await res.json();Copy
$ch = curl_init("https://rexbd.net/api/v1/links/eid-sale");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"],
]);
$data = json_decode(curl_exec($ch), true);Copy
{ "ok": true, "deleted": "eid-sale" }
Free tools API No key needed. CORS is open, so you can call these from browser JavaScript on any website.
GET
/api/v1/tools/amount-in-words
Free · no key
Amount in words (Taka)
Any amount in English (lakh / crore and international) and Bangla, ready for cheques, invoices and receipts.
Parameter Description
amountrequired e.g. 125050.75 (commas, ৳ and Bangla digits are fine)
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/bangla-date
Free · no key
Bangla calendar date
Gregorian → Bangla (Bongabdo) date using the revised Bangladesh calendar, with season and weekday.
Parameter Description
dateoptional YYYY-MM-DD (default: today in Bangladesh)
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/bangla-number
Free · no key
Bangla ↔ English digits
Turn 0–9 into ০–৯ or back. Direction is detected automatically.
Parameter Description
numberrequired Text with digits (up to 200 characters) tooptional bn or en
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/convert
Free · no key
Unit converter
Gold (bhori, ana, rati, gram…), Bangladesh land (decimal, katha, bigha, acre…), length and weight (maund, seer…). Leave out "to" to get every unit.
Parameter Description
valuerequired Number to convert fromrequired e.g. bhori, katha, foot, maund tooptional Target unit in the same group katha_sqftoptional Katha size in sq ft (default 720)
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/vat
Free · no key
VAT calculator
Add VAT to a price or remove it from a VAT-inclusive price.
Parameter Description
amountrequired Price rateoptional Percent (default 15) modeoptional add (default) or remove
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/slug
Free · no key
Slug generator
Make a clean, URL-friendly slug from any title.
Parameter Description
textrequired Up to 1000 characters separatoroptional - (default), _ or .
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/password
Free · no key
Password generator
Strong random passwords from a cryptographically secure generator.
Parameter Description
lengthoptional 4–128 (default 16) countoptional 1–20 (default 1) upper / lower / numbers / symbolsoptional 1 or 0 (all on by default)
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/uuid
Free · no key
UUID generator
Random version-4 UUIDs, or time-ordered version-7 UUIDs for database keys.
Parameter Description
countoptional 1–50 (default 1) versionoptional 4 (default) or 7
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/hash
Free · no key
Hash generator
MD5, SHA-1, SHA-256, SHA-384, SHA-512 or CRC32 of any text. Use POST for long text.
Parameter Description
textrequired Up to 1 MB algooptional Leave out to get all of them
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/user-agent
Free · no key
User-agent parser
Device, browser, OS and bot detection from a user-agent string (defaults to the caller's own).
Parameter Description
uaoptional User-agent string
cURL JavaScript PHP Response
▶ Try it live
GET
/api/v1/tools/ip
Free · no key
What is my IP
The caller's IP address and version (and country when available).
cURL JavaScript PHP Response
▶ Try it live
Ready to build?
Free tools work right now. For the link API, create a free account and get your key in seconds.
Create free account Log in See all endpoints (JSON) ↗