Integrate URL shortening into your applications with our REST API. Simple, fast, and reliable.
curl -X POST https://urlx.fr/api/url/create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"long_url": "https://example.com/very/long/url"
}'
curl -X GET https://urlx.fr/api/url/{slug}/stats \
-H "Authorization: Bearer YOUR_TOKEN"
curl -X GET https://urlx.fr/api/url/list?page=1 \
-H "Authorization: Bearer YOUR_TOKEN"
All API requests require authentication using Bearer tokens. Include your token in the Authorization header of each request.
Note: You can generate your API token from your client dashboard under the API section.
To ensure fair usage, the API implements rate limiting and pagination: