REST API để tạo và quản lý short links

Tạo, chỉnh sửa và xóa short links thông qua REST API. Sử dụng JSON responses, API keys, tài liệu OpenAPI / Swagger và webhook notifications để tích hợp nhanh vào products, services và automation workflows.

# Create a short link $ curl -X POST https://lix.li/api/1.0/links -H "X-Api-Key: lix_live_XXXX" -H "Content-Type: application/json" -d '{"url": "https://example.com/very/long/page", "alias": "demo", "tags" : ["sale", "promo"]}'
# Response { "id": "9053352", "alias": "demo", "short_url": "https://lix.li/demo", "url": "https://example.com/very/long/page", "title": null, "group": null, "created_datetime": "2023-05-23T22:56:57+03:00", "tags": ["sale", "promo"] }

Vì sao developers chọn API của Lix.li

Tích hợp nhanh, tài liệu rõ ràng và API được xây dựng cho workflows thực tế và automation.

REST API

REST conventions rõ ràng, HTTP methods dễ hiểu và predictable response codes. Tích hợp không cần patterns đặc biệt hay độ phức tạp không cần thiết.

JSON Responses

JSON responses có cấu trúc cho tất cả endpoints. Predictable fields, định dạng dữ liệu nhất quán và client-side processing đơn giản.

API Keys

Authentication thông qua Bearer tokens. Key management, rotation và access revoke trực tiếp từ dashboard.

OpenAPI / Swagger

Tài liệu tương tác với request examples, responses và API testing trực tiếp trong browser.

Predictable Endpoints

Cấu trúc resources và URLs hợp lý: /links, /groups, /analytics, /webhooks. Dễ đọc, dễ sử dụng và dễ bảo trì.

Tích hợp nhanh

Sử dụng API với HTTP clients tiêu chuẩn, backend applications, automation services hoặc internal tools. Phù hợp cho products, CRM, SaaS và backend workflows.

API của Lix.li có thể làm gì

Tạo short links và quản lý analytics, domains, groups cùng automation thông qua một REST API duy nhất.

Short Links API

Tạo, chỉnh sửa, xóa và lấy short links thông qua API. Hỗ trợ bulk operations, pagination, filtering và link management.

Groups & Tags API

Tổ chức links qua API bằng groups, tags, projects và workspaces. Phù hợp cho teams, campaigns và integrations quy mô lớn.

Automation API

Tích hợp link shortening với CRM, marketing platforms, internal services và automation workflows.

Link Analytics API

Truy cập dữ liệu về clicks, countries, devices, browsers, traffic sources và UTM campaigns thông qua API.

Tracking Pixels API

Quản lý Google, Hotjar, Yandex, TikTok và các tracking pixels khác qua API, đồng thời kết nối chúng với short links và workflows.

Custom Domains API

Kết nối và quản lý branded domains cho short links qua API. Sử dụng short URLs riêng trong products và campaigns.

Webhooks API

Real-time events cho clicks, link creation, updates và limits. Tích hợp với bất kỳ service nào thông qua webhooks.

Quản lý bảo mật và thời hạn qua API

Cấu hình passwords, expiration dates, click limits và access rules cho links thông qua API.

Tài liệu API dễ hiểu

OpenAPI / Swagger, interactive testing, request examples sẵn dùng và tài liệu rõ ràng cho việc tích hợp nhanh.

  • OpenAPI 3.0 specification
  • Swagger UI để testing
  • Ví dụ với curl, Python và Node.js
  • Mô tả từng field và response code
  • Hỗ trợ integration
  • Tạo API clients dễ dàng
Mở tài liệu API
https://lix.li/api/1.0
POST /links Tạo link
GET /links Danh sách links
GET /links/{id} Lấy link
PATCH /links/{id} Chỉnh sửa link
DELETE /links/{id} Xóa link
GET /analytics Analytics
GET /groups Groups
POST /webhooks Tạo webhook

Short Links API và URL Shortener API được sử dụng ở đâu

Products, services và automation workflows nơi short links API được sử dụng trong các tình huống thực tế.

SaaS Products

Short links trong user interfaces, referral programs, onboarding flows, notifications và product workflows.

Marketing Platforms

Tự động tạo links cho campaigns, publications, channels và quảng cáo với UTM tags, analytics và tracking pixels.

CRM Systems

Short links cá nhân hóa cho customers, email sequences, deals và theo dõi user workflows trong hệ thống CRM.

Automation Workflows

Tích hợp với Zapier, Make, n8n và internal workflows. Tự động link creation, updates và management thông qua API.

Internal Tools

Short links trong admin panels, dashboards, service tools và internal products mà không cần quản lý URLs thủ công.

Analytics Pipelines

Lấy dữ liệu clicks, traffic và analytics qua API cho BI systems, custom dashboards, data pipelines và báo cáo nội bộ.

Bắt đầu với Short Links API

Documentation, request examples, Swagger UI và khởi động nhanh mà không cần cấu hình phức tạp. Kết nối API với product, service hoặc automation workflow của bạn chỉ trong vài phút.

Câu hỏi thường gặp về Short Links API

API cho phép bạn tạo, chỉnh sửa, xóa và lấy short links, đồng thời quản lý groups, tags, custom domains, tracking pixels, analytics và webhook notifications. Tất cả đều có sẵn thông qua REST API với JSON responses.
Có. API sử dụng HTTP methods tiêu chuẩn (GET, POST, PATCH, DELETE), cấu trúc URL rõ ràng, semantic endpoints và predictable response codes. Tất cả responses đều được trả về ở định dạng JSON.
JSON. Mỗi endpoint trả về structured data với predictable fields. Errors bao gồm code, message và context bổ sung cho troubleshooting và debugging.
Có. OpenAPI 3.0 specification đi kèm interactive Swagger UI, request examples và API testing trực tiếp trong browser.
Authentication sử dụng tokens trong header X-Api-key. API keys có thể được tạo, rotate và revoke thông qua dashboard.
API limits phụ thuộc vào plan bạn chọn. Các giới hạn hiện tại và trạng thái rate limits có sẵn trong API responses và documentation.
Webhooks gửi HTTP requests đến endpoint của bạn khi xảy ra system events: link creation, clicks, updates hoặc limit events. Điều này cho phép nhận real-time data mà không cần liên tục polling API.
Có. Analytics endpoint cung cấp dữ liệu về clicks, countries, devices, browsers, traffic sources và các metrics khác. Hỗ trợ filters theo dates, links, groups và data ranges.
Basic API access khả dụng cho testing. Features và limits phụ thuộc vào plan của bạn. Advanced functionality có trong các gói trả phí.
Có. API liên tục được phát triển: thêm endpoints mới, mở rộng documentation, bổ sung webhook events và automation capabilities. Mọi thay đổi đều được versioned để đảm bảo compatibility.
Hỗ trợ bank cards, Bitcoin (BTC), TON và USDT (TRC20). Invoice billing khả dụng cho Enterprise customers.