API Documentation

Explore our free URL shortening API. No authentication is required, making it easy to set up and integrate into your application.

API Endpoint

The endpoint to shorten URLs is:

POST https://i2l.site/api.php

Request

Send a POST request with the following JSON body:

{
  "long_url": "https://www.example.com"
}

Response

The response will be in JSON format:

{
  "short_url": "https://i2l.site?s=abc123",
  "message": "URL shortened successfully!",
  "type": "success"
}

Example

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"}'

Additional Information

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.