REST API สำหรับสร้างและจัดการ Short Links

สร้าง แก้ไข และลบ short links ผ่าน REST API ใช้งาน JSON responses, API keys, เอกสาร OpenAPI / Swagger และ webhook notifications เพื่อเชื่อมต่อกับ products, services และ 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"] }

ทำไมนักพัฒนาจึงเลือก API ของ Lix.li

เชื่อมต่อได้รวดเร็ว เอกสารชัดเจน และ API ที่ออกแบบมาสำหรับ workflow และ automation ในการใช้งานจริง

REST API

REST conventions ที่ชัดเจน, HTTP methods ที่เข้าใจง่าย และ predictable response codes เชื่อมต่อได้โดยไม่ต้องใช้ patterns พิเศษหรือความซับซ้อนที่ไม่จำเป็น

JSON Responses

JSON responses แบบมีโครงสร้างสำหรับทุก endpoints พร้อม predictable fields, รูปแบบข้อมูลที่สม่ำเสมอ และการประมวลผลฝั่ง client ที่ง่ายขึ้น

API Keys

Authentication ผ่าน Bearer tokens จัดการ keys, rotation และ revoke access ได้โดยตรงจาก dashboard

OpenAPI / Swagger

เอกสารแบบ interactive พร้อม request examples, responses และ API testing ได้โดยตรงใน browser

Predictable Endpoints

โครงสร้าง resources และ URLs ที่เป็นระบบ: /links, /groups, /analytics, /webhooks อ่านง่าย ใช้งานง่าย และดูแลรักษาง่าย

Fast Integration

ใช้งาน API ผ่าน HTTP clients มาตรฐาน, backend applications, automation services หรือ internal tools เหมาะสำหรับ products, CRM, SaaS และ backend workflows

ความสามารถของ API จาก Lix.li

สร้าง short links และจัดการ analytics, domains, groups และ automation ผ่าน REST API เดียว

Short Links API

สร้าง แก้ไข ลบ และดึงข้อมูล short links ผ่าน API รองรับ bulk operations, pagination, filtering และ link management

Groups & Tags API

จัดระเบียบ links ผ่าน API ด้วย groups, tags, projects และ workspaces เหมาะสำหรับ teams, campaigns และ integrations ขนาดใหญ่

Automation API

เชื่อมต่อ link shortening เข้ากับ CRM, marketing platforms, internal services และ automation workflows

Link Analytics API

เข้าถึงข้อมูล clicks, countries, devices, browsers, traffic sources และ UTM campaigns ผ่าน API

Tracking Pixels API

จัดการ Google, Hotjar, Yandex, TikTok และ tracking pixels อื่น ๆ ผ่าน API และเชื่อมเข้ากับ short links และ workflows

Custom Domains API

เชื่อมต่อและจัดการ branded domains สำหรับ short links ผ่าน API ใช้ short URLs ของคุณเองใน products และ campaigns

Webhooks API

Real-time events สำหรับ clicks, การสร้าง links, updates และ limits เชื่อมต่อกับ service ใดก็ได้ผ่าน webhooks

การจัดการ Security และ Expiration ผ่าน API

ตั้งค่า passwords, expiration dates, click limits และ access rules สำหรับ links ผ่าน API

เอกสาร API ที่เข้าใจง่าย

OpenAPI / Swagger, interactive testing, request examples พร้อมใช้งาน และ documentation ที่ชัดเจนสำหรับการเชื่อมต่ออย่างรวดเร็ว

  • OpenAPI 3.0 specification
  • Swagger UI สำหรับ testing
  • ตัวอย่างสำหรับ curl, Python และ Node.js
  • คำอธิบายของทุก field และ response code
  • ความช่วยเหลือด้าน integration
  • สร้าง API clients ได้อย่างง่ายดาย
เปิดเอกสาร API
https://lix.li/api/1.0
POST /links สร้างลิงก์
GET /links รายการลิงก์
GET /links/{id} ดึงข้อมูลลิงก์
PATCH /links/{id} แก้ไขลิงก์
DELETE /links/{id} ลบลิงก์
GET /analytics Analytics
GET /groups Groups
POST /webhooks สร้าง Webhook

Short Links API และ URL Shortener API ถูกใช้งานที่ไหน

Products, services และ automation workflows ที่ใช้ short links API ในการใช้งานจริง

SaaS Products

Short links ภายใน user interfaces, referral programs, onboarding flows, notifications และ product workflows

Marketing Platforms

สร้างลิงก์อัตโนมัติสำหรับ campaigns, publications, channels และโฆษณา พร้อม UTM tags, analytics และ tracking pixels

CRM Systems

Short links แบบ personalized สำหรับลูกค้า, email sequences, deals และการติดตาม user workflows ภายในระบบ CRM

Automation Workflows

เชื่อมต่อกับ Zapier, Make, n8n และ internal workflows พร้อมสร้าง อัปเดต และจัดการ links แบบอัตโนมัติผ่าน API

Internal Tools

Short links ใน admin panels, dashboards, service tools และผลิตภัณฑ์ภายในองค์กร โดยไม่ต้องจัดการ URLs ด้วยตนเอง

Analytics Pipelines

ดึงข้อมูล clicks, traffic และ analytics ผ่าน API สำหรับ BI systems, custom dashboards, data pipelines และรายงานภายใน

เริ่มต้นใช้งาน Short Links API

Documentation, request examples, Swagger UI และการเริ่มต้นใช้งานอย่างรวดเร็วโดยไม่ต้องตั้งค่าซับซ้อน เชื่อมต่อ API เข้ากับ product, service หรือ automation workflow ของคุณได้ภายในไม่กี่นาที

คำถามที่พบบ่อยเกี่ยวกับ Short Links API

API ช่วยให้คุณสร้าง แก้ไข ลบ และดึงข้อมูล short links รวมถึงจัดการ groups, tags, custom domains, tracking pixels, analytics และ webhook notifications ทั้งหมดผ่าน REST API พร้อม JSON responses
ใช่ API ใช้มาตรฐาน HTTP methods (GET, POST, PATCH, DELETE), โครงสร้าง URL ที่ชัดเจน, semantic endpoints และ predictable response codes โดย responses ทั้งหมดส่งกลับในรูปแบบ JSON
JSON ทุก endpoint ส่งคืน structured data พร้อม predictable fields ส่วน errors จะมี code, message และ context เพิ่มเติมสำหรับ troubleshooting และ debugging
มี รองรับ OpenAPI 3.0 specification พร้อม interactive Swagger UI, request examples และ API testing ได้โดยตรงใน browser
Authentication ใช้ tokens ใน header X-Api-key สามารถสร้าง, rotate และ revoke API keys ได้จาก dashboard
API limits ขึ้นอยู่กับ plan ที่เลือก ข้อจำกัดปัจจุบันและสถานะ rate limits สามารถดูได้จาก API responses และ documentation
Webhooks จะส่ง HTTP requests ไปยัง endpoint ของคุณเมื่อเกิด system events เช่น การสร้างลิงก์, clicks, updates หรือ limit events ทำให้รับ real-time data ได้โดยไม่ต้อง polling API ตลอดเวลา
ได้ Analytics endpoint ให้ข้อมูลเกี่ยวกับ clicks, countries, devices, browsers, traffic sources และ metrics อื่น ๆ รองรับ filters ตาม dates, links, groups และ data ranges
มี basic API access สำหรับ testing ส่วน features และ limits ที่ใช้งานได้ขึ้นอยู่กับ plan ของคุณ Advanced functionality จะอยู่ใน paid plans
มี API ได้รับการพัฒนาอย่างต่อเนื่อง โดยเพิ่ม endpoints ใหม่ ขยาย documentation เพิ่ม webhook events และ automation capabilities ใหม่ ๆ การเปลี่ยนแปลงทั้งหมดเป็น versioned เพื่อรักษา compatibility
รองรับ bank cards, Bitcoin (BTC), TON และ USDT (TRC20) สำหรับ Enterprise customers รองรับ invoice billing