Integrate the power of Just Right Analytics into your own applications with our v1 REST API.
To access the API, you must authenticate all requests using your private API Key from Account Settings.
Header: Authorization: Bearer YOUR_API_KEY // OR Query: ?key=YOUR_API_KEY
Find your key in Account Settings
Header: Content-Type: application/json Accept: application/json
Check your current plan, link creation limits, and total clicks recorded.
https://jr.ro/api/v1/get_usage{
"status": "success",
"plan": "PRO",
"usage": {
"total_links_created": 45,
"links_limit": 500,
"links_remaining": 455,
"total_clicks_recorded": 12840
}
}
Retrieve all your links or get detailed statistics for a specific link using its ID.
https://jr.ro/api/v1/linksid (Optional) - The ID of a specific link to get detailed stats.{
"status": "success",
"total_results": 1,
"data": {
"id": 101,
"long_url": "https://example.com",
"short_code": "my-link",
"custom_alias": "promo",
"clicks": 1240,
"created_at": "2026-03-12 10:00:00"
}
}
Generate a new shortened URL instantly. Supports custom aliases.
https://jr.ro/api/v1/shorten{
"url": "https://amazon.com/product/123",
"alias": "tech-deal"
}
{
"status": "success",
"short_url": "https://jr.ro/tech-deal",
"short_code": "tech-deal",
"long_url": "https://amazon.com/product/123"
}
Shorten up to 20 URLs in a single request for maximum efficiency.
https://jr.ro/api/v1/bulk_shorten{
"urls": [
"https://site-a.com",
"https://site-b.com"
]
}
{
"status": "success",
"links": [
{ "original": "https://site-a.com", "short": "https://jr.ro/abc123" },
{ "original": "https://site-b.com", "short": "https://jr.ro/def456" }
]
}
Update the destination URL of an existing link without changing its short code.
https://jr.ro/api/v1/update_link{
"id": 101,
"new_url": "https://new-destination.com"
}
{
"status": "success",
"new_url": "https://new-destination.com"
}
Permanently delete a short link and its associated statistics.
https://jr.ro/api/v1/delete_link?id=101id (Required) - The ID of the link to delete.{
"status": "success",
"message": "Link deleted permanently"
}
Check if a custom alias is available before attempting to create a link.
https://jr.ro/api/v1/validate_alias?alias=summer-sale{
"status": "available",
"available": true
}