Dashboard
0
Total Links
0
Total Clicks
Terminal
Welcome to PwnURL Shortener
Type help to see available commands
Ready...
pwn>
Create Short URL
Your Short URL
All Short URLs
| Slug | Destination | Created | Actions |
|---|
API Documentation
Create a Short URL
CURL Example
curl -X POST https://s.x0r.xyz/api/create \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "slug": "optional-custom-slug"}'
Response
{
"success": true,
"slug": "abc123",
"url": "https://example.com",
"shortUrl": "https://s.x0r.xyz/abc123"
}
List All URLs
CURL Example
curl -X GET https://s.x0r.xyz/api/list
Response
[
{
"slug": "abc123",
"url": "https://example.com",
"shortUrl": "https://s.x0r.xyz/abc123",
"clicks": 42,
"created": 1633027200000
},
{
"slug": "xyz789",
"url": "https://anotherexample.com",
"shortUrl": "https://s.x0r.xyz/xyz789",
"clicks": 7,
"created": 1633113600000
}
]
Delete a URL
CURL Example
curl -X DELETE https://s.x0r.xyz/api/delete \
-H "Content-Type: application/json" \
-d '{"slug": "abc123"}'
Response
{
"success": true,
"message": "Slug 'abc123' deleted successfully"
}
Get URL Statistics
CURL Example (Overall Stats)
curl -X GET https://s.x0r.xyz/api/stats
Response
{
"totalUrls": 42,
"totalClicks": 1337
}
CURL Example (Specific Slug Stats)
curl -X GET https://s.x0r.xyz/api/stats?slug=abc123
Response
{
"slug": "abc123",
"url": "https://example.com",
"shortUrl": "https://s.x0r.xyz/abc123",
"clicks": 42,
"created": 1633027200000
}