Explore our free URL shortening API. No authentication is required, making it easy to set up and integrate into your application.
The endpoint to shorten URLs is:
POST https://i2l.site/api.php
Send a POST request with the following JSON body:
{
"long_url": "https://www.example.com"
}
The response will be in JSON format:
{
"short_url": "https://i2l.site?s=abc123",
"message": "URL shortened successfully!",
"type": "success"
}
Here’s how you can use the API with curl
:
curl -X POST https://i2l.site/api.php -H "Content-Type: application/json" -d '{"long_url": "https://www.example.com"}'
Our API is designed to be simple and easy to use. There’s no need for authentication, making it ideal for quick integrations and prototyping.