curl -X POST "https://plvt.me/v1/url-shortener/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/very/long/url/path?param=value",
"track_visits": true,
"track_ip_address": true,
"track_browser": true,
"track_operating_system": true,
"track_device_type": true,
"track_referer_url": true
}'
const response = await fetch('https://plvt.me/v1/url-shortener/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://example.com/very/long/url/path?param=value',
track_visits: true,
track_ip_address: true,
track_browser: true,
track_operating_system: true,
track_device_type: true,
track_referer_url: true
})
});
const data = await response.json();
console.log(data.data.short_url);
import requests
response = requests.post(
'https://plvt.me/v1/url-shortener/create',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://example.com/very/long/url/path?param=value',
'track_visits': True,
'track_ip_address': True,
'track_browser': True,
'track_operating_system': True,
'track_device_type': True,
'track_referer_url': True
}
)
print(response.json()['data']['short_url'])
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://plvt.me/v1/url-shortener/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
],
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com/very/long/url/path?param=value',
'track_visits' => true,
'track_ip_address' => true,
'track_browser' => true,
'track_operating_system' => true,
'track_device_type' => true,
'track_referer_url' => true
])
]);
$response = curl_exec($curl);
curl_close($curl);
$data = json_decode($response, true);
echo $data['data']['short_url'];
{
"status": true,
"message": "Short URL created successfully",
"data": {
"id": "abc123",
"short_url": "https://plvt.me/abc123",
"original_url": "https://example.com/very/long/url/path?param=value",
"track_visits": true,
"track_ip_address": true,
"track_browser": true,
"track_operating_system": true,
"track_device_type": true,
"track_referer_url": true,
"created_at": "2026-01-15T12:00:00.000000Z"
}
}
{
"status": false,
"message": "Validation failed",
"errors": {
"url": ["The url field is required."]
}
}
{
"status": false,
"message": "Unauthenticated."
}
Tools
Create Short URL
Generate shortened URLs with advanced tracking capabilities
POST
https://plvt.me
/
v1
/
url-shortener
/
create
curl -X POST "https://plvt.me/v1/url-shortener/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/very/long/url/path?param=value",
"track_visits": true,
"track_ip_address": true,
"track_browser": true,
"track_operating_system": true,
"track_device_type": true,
"track_referer_url": true
}'
const response = await fetch('https://plvt.me/v1/url-shortener/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://example.com/very/long/url/path?param=value',
track_visits: true,
track_ip_address: true,
track_browser: true,
track_operating_system: true,
track_device_type: true,
track_referer_url: true
})
});
const data = await response.json();
console.log(data.data.short_url);
import requests
response = requests.post(
'https://plvt.me/v1/url-shortener/create',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://example.com/very/long/url/path?param=value',
'track_visits': True,
'track_ip_address': True,
'track_browser': True,
'track_operating_system': True,
'track_device_type': True,
'track_referer_url': True
}
)
print(response.json()['data']['short_url'])
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://plvt.me/v1/url-shortener/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
],
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com/very/long/url/path?param=value',
'track_visits' => true,
'track_ip_address' => true,
'track_browser' => true,
'track_operating_system' => true,
'track_device_type' => true,
'track_referer_url' => true
])
]);
$response = curl_exec($curl);
curl_close($curl);
$data = json_decode($response, true);
echo $data['data']['short_url'];
{
"status": true,
"message": "Short URL created successfully",
"data": {
"id": "abc123",
"short_url": "https://plvt.me/abc123",
"original_url": "https://example.com/very/long/url/path?param=value",
"track_visits": true,
"track_ip_address": true,
"track_browser": true,
"track_operating_system": true,
"track_device_type": true,
"track_referer_url": true,
"created_at": "2026-01-15T12:00:00.000000Z"
}
}
{
"status": false,
"message": "Validation failed",
"errors": {
"url": ["The url field is required."]
}
}
{
"status": false,
"message": "Unauthenticated."
}
Shorten long URLs and optionally track visitor analytics including visits, IP addresses, browsers, devices, and referrer sources.
This endpoint uses a different base URL:
https://plvt.me/v1Request Body
The long URL to shorten
Enable visit tracking
Track visitor IP addresses
Track visitor browser information
Track visitor operating system
Track visitor device type (mobile, desktop, tablet)
Track referrer URLs
curl -X POST "https://plvt.me/v1/url-shortener/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/very/long/url/path?param=value",
"track_visits": true,
"track_ip_address": true,
"track_browser": true,
"track_operating_system": true,
"track_device_type": true,
"track_referer_url": true
}'
const response = await fetch('https://plvt.me/v1/url-shortener/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://example.com/very/long/url/path?param=value',
track_visits: true,
track_ip_address: true,
track_browser: true,
track_operating_system: true,
track_device_type: true,
track_referer_url: true
})
});
const data = await response.json();
console.log(data.data.short_url);
import requests
response = requests.post(
'https://plvt.me/v1/url-shortener/create',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://example.com/very/long/url/path?param=value',
'track_visits': True,
'track_ip_address': True,
'track_browser': True,
'track_operating_system': True,
'track_device_type': True,
'track_referer_url': True
}
)
print(response.json()['data']['short_url'])
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://plvt.me/v1/url-shortener/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
],
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com/very/long/url/path?param=value',
'track_visits' => true,
'track_ip_address' => true,
'track_browser' => true,
'track_operating_system' => true,
'track_device_type' => true,
'track_referer_url' => true
])
]);
$response = curl_exec($curl);
curl_close($curl);
$data = json_decode($response, true);
echo $data['data']['short_url'];
{
"status": true,
"message": "Short URL created successfully",
"data": {
"id": "abc123",
"short_url": "https://plvt.me/abc123",
"original_url": "https://example.com/very/long/url/path?param=value",
"track_visits": true,
"track_ip_address": true,
"track_browser": true,
"track_operating_system": true,
"track_device_type": true,
"track_referer_url": true,
"created_at": "2026-01-15T12:00:00.000000Z"
}
}
{
"status": false,
"message": "Validation failed",
"errors": {
"url": ["The url field is required."]
}
}
{
"status": false,
"message": "Unauthenticated."
}
Tracking Options
Enable tracking options to gather analytics on your shortened URLs:| Option | Description |
|---|---|
track_visits | Count total visits to the short URL |
track_ip_address | Log visitor IP addresses |
track_browser | Identify visitor browser (Chrome, Firefox, Safari, etc.) |
track_operating_system | Identify visitor OS (Windows, macOS, iOS, Android, etc.) |
track_device_type | Categorize visitors by device (mobile, desktop, tablet) |
track_referer_url | Track where visitors came from |
Use shortened URLs in your SMS campaigns to save characters and track engagement!
Was this page helpful?
⌘I
