Developer API

Integrate link shortening into your applications with our powerful REST API

Quick Start

Base URL: https://api.go2it.link/v1

Authentication: API key in header (X-API-Key)

Response Format: JSON

Get your API key from the dashboard. Pro plan required for API access.

Endpoints

POST /shorten

Create a shortened link with optional custom alias.

Request Body

{"url": "https://example.com/very-long-url-that-needs-shortening", "custom_alias": "my-link" // optional}

Response

{"short_url": "https://go2it.link/abc123", "original_url": "https://example.com/very-long-url-that-needs-shortening", "created_at": "2025-01-01T00:00:00Z", "id": "abc123"}
GET /links/{id}

Get link details and analytics for a specific shortened link.

Response

{"id": "abc123", "short_url": "https://go2it.link/abc123", "original_url": "https://example.com/page", "clicks": 1234, "created_at": "2025-01-01T00:00:00Z", "last_clicked": "2025-01-15T14:32:10Z"}
GET /links

List all your shortened links with pagination support.

Query Parameters

page: 1 // default: 1
limit: 50 // default: 50, max: 100

Response

{"links": [{"id": "abc123", "short_url": "https://go2it.link/abc123", "original_url": "https://example.com/page", "clicks": 1234, "created_at": "2025-01-01T00:00:00Z"}], "total": 50, "page": 1, "pages": 1}
DELETE /links/{id}

Delete a shortened link permanently.

Response

{"success": true, "message": "Link deleted successfully"}

Rate Limits

API rate limits are enforced per API key based on your subscription plan.

Plan Requests per Day Burst Limit
Free 100 requests/day 10 per minute
Pro 10,000 requests/day 100 per minute
Enterprise Unlimited 1,000 per minute

When you exceed rate limits, the API returns a 429 Too Many Requests status code.

SDKs & Libraries

Official SDKs make integration even easier. Currently in development:

Python Coming Soon
Node.js Coming Soon
PHP Coming Soon
Ruby Coming Soon

Want to contribute an SDK? Contact us for collaboration opportunities.

Note: API access requires a Pro or Enterprise plan. Start your free trial today to get API access and 10,000 requests per day.