Introduction v4.0.0
Welcome to the LinkRun API documentation. Our API enables you to programmatically access and manage your shortened URLs, track analytics, and integrate LinkRun's functionality into your applications.
Base URL
Authentication
All API requests require authentication using an API token. Tokens can be generated from your account dashboard.
Token Format
Include your API token in the URL path for all requests:
Rate Limits
The API implements rate limiting to ensure fair usage:
- 100 requests per hour per token
- Rate limit counters reset every hour
- Exceeding the limit returns a 429 status code
API Endpoints
Retrieve all links associated with your account
Get the total number of links for the authenticated user
Retrieve the 10 most recently created links
Get detailed information about a specific link
Retrieve account information for the authenticated user
Get the total number of clicks across all links
Get the number of clicks for a specific link
Generate a new API token (Note: Use command line tools like cURL, Python requests, or any other API client. This endpoint does not support direct browser access.)
Error Responses
Common Error Codes
Status Code | Description |
---|---|
401 | Invalid or missing API token |
404 | Requested resource not found |
429 | Rate limit exceeded (100 requests per hour) |