Integrate Gcut URL Shortener into your applications using our RESTful API
Import the shorten, stats, and list requests into Postman. The easy Auth-Key hit is included.
Downloaded 0 times
Hit this URL in a browser, curl, or Postman. The response is the short link as plain text. Shortening works only while your paid plan is active.
The response is plain text. Add &format=json at the end, or send Accept: application/json, for JSON. Same result: https://gcut.in/api/v1/shorten.php?key={Auth-Key}&url={full-url}.
Shorten a long URL into a short link. Returns the shortened URL with analytics data.
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | The long URL to be shortened |
custom_code |
string | No | Custom short code (2-32 characters, paid plan) |
expires_at |
string | No | Expiration date (ISO 8601, paid plan). Free links expire in 30 days. |
Get analytics and statistics for a shortened URL including click counts, location data, and device information.
| Parameter | Type | Required | Description |
|---|---|---|---|
short_code |
string | Yes | The short code in the URL path (e.g., "GW01") |
Get a list of all your shortened URLs with pagination support.
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | No | Page number (default: 1) |
limit |
integer | No | Items per page (default: 10, max: 100) |
status |
string | No | Filter by status: "active", "inactive", "expired" |
REST calls use your Auth-Key. Send it as X-Auth-Key or as a Bearer token. The easy shorten URL puts the same key in the path.
Shortening a URL requires an active paid plan. When the plan ends, the API stops creating short links. Other API requests are rate-limited as follows:
| Plan | Requests per Minute | Requests per Day |
|---|---|---|
| Free | 10 | 1,000 |
| Paid | 100 | 100,000 |