API Documentation

Integrate LinkPro into your applications with our REST API

Getting Started

LinkPro provides a RESTful API that allows you to programmatically create, manage, and retrieve information about your shortened links. The API uses standard HTTP methods and returns JSON responses.

Base URL: https://api.linkpro.io/v2

Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

You can generate an API key from your account settings. API access is available for Pro and Enterprise plans.

Endpoints

Create a Short Link

POST /links

Request Body:

{
  "url": "https://example.com/very/long/url",
  "alias": "optional-custom-alias",
  "domain": "custom-domain.com"
}

Get Link Analytics

GET /links/{link_id}/analytics

Retrieve detailed analytics data for a specific link, including click counts, geographic data, and referral sources.

List All Links

GET /links

Retrieve a paginated list of all your shortened links with optional filtering and sorting options.

Update a Link

PUT /links/{link_id}

Update the destination URL or other properties of an existing shortened link.

Delete a Link

DELETE /links/{link_id}

Permanently delete a shortened link and all associated analytics data.

Rate Limits

API requests are rate-limited based on your plan:

  • Free: 100 requests per hour
  • Pro: 1,000 requests per hour
  • Enterprise: Custom rate limits

Error Codes

The API uses standard HTTP status codes:

  • 200: Success
  • 400: Bad Request
  • 401: Unauthorized
  • 404: Not Found
  • 429: Too Many Requests
  • 500: Internal Server Error

Ready to Get Started?

Upgrade to Pro or Enterprise to access the API

Get Started