L2S - API Docs
Visit L2S
Visit L2S
Get API Key
  1. URL
  • URL
    • Shorten a URL
      POST
    • Get URL details
      GET
    • Update URL details
      PUT
  • User
    • Get user settings
      GET
  1. URL

Get URL details

GET
/url/{id}
URL
This endpoint retrieves details of a shortened URL by its ID.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
The ID of the shortened URL

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.l2s.is/url/'

Responses

🟢200URL details retrieved successfully
application/json
Body
ok
boolean 
optional
Example:
true
response
object 
optional
message
string 
optional
Example:
Operation successful
data
object 
optional
Example
{
    "ok": true,
    "response": {
        "message": "Operation successful",
        "data": {}
    }
}
🟠400Validation Error
🟠401Unauthorized
🔴500Internal Server Error
Previous
Shorten a URL
Next
Update URL details
Built with