```html
Comprehensive guides and references for the Qur.li API, integrations, and advanced features.
The Qur.li API allows you to programmatically create, manage, and track shortened URLs. This guide will help you get started with making your first API request.
Here's an example of how to shorten a URL using cURL:
curl -X POST \
https://api.qur.li/v1/links \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"long_url": "https://example.com/very-long-url",
"custom_alias": "my-custom-link"
}'
{
"success": true,
"data": {
"short_url": "https://qur.li/my-custom-link",
"long_url": "https://example.com/very-long-url",
"alias": "my-custom-link",
"clicks": 0,
"created_at": "2023-10-15T10:30:00Z"
}
}
All API requests must include your API key in the Authorization header. You can find your API key in your account settings.
Authorization: Bearer YOUR_API_KEY
Keep your API key secret. Do not share it in client-side code or public repositories.
Create a new shortened URL
| Parameter | Type | Required | Description |
|---|---|---|---|
| long_url | string | Yes | The URL to shorten |
| custom_alias | string | No | Custom alias for the short URL |
Retrieve analytics data for a specific short link
Complete reference for all API endpoints, parameters, and responses.
View Full Reference →Download official SDKs for popular programming languages and frameworks.
Download SDKs →Our support team is here to help you with any questions about the API or integrations.
Contact Support