Overview
Base URL: https://botfather.cloud/Apis/shorturl.php?url=
This API accepts a long URL as input and returns a shortened version.
Method
The API only supports the GET method.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | The original URL you want to shorten. Must include the scheme (http/https). |
Response
Successful Response
{
"original_url": "http://example.com",
"shortened_url": "http://tinyurl.com/abc123",
"developer": "@itsSowrov | @JSOrganization"
}
Error Responses
- No URL Provided:
{ "error": "No URL provided.", "developer": "@itsSowrov | @JSOrganization" } - Invalid URL:
{ "error": "Invalid URL.", "developer": "@itsSowrov | @JSOrganization" } - Failed to Shorten:
{ "error": "Failed to shorten the URL.", "developer": "@itsSowrov | @JSOrganization" }
Example Usage
Request:
GET https://botfather.cloud/Apis/shorturl.php?url=https://example.com
Response:
{
"original_url": "https://example.com",
"shortened_url": "http://tinyurl.com/example",
"developer": "@itsSowrov | @JSOrganization"
}
Notes
- Ensure the URL is properly encoded when passing it as a query parameter.
- The API uses TinyURL as the shortening service.
- If no
http://orhttps://is provided, the API will automatically prependhttp://.
Developer Contact
Developer: @itsSowrov | @JSOrganization
For any issues or support, reach out to the developer.