Developer API Documentation

Integrate link shortening and system management features directly into your application via a fast and secure REST API.

1. Public API: Generate URL & Microsite

POST https://g.elyng.com/api/generate

Basic Parameters (Form Data):

  • is_bulk : (Int) 0 for Single Link, 1 for Bulk Link. Required.
  • url : (String) Original destination URL. Required if is_bulk = 0.
  • bulk_urls : (String) List of URLs separated by enter (\n), max 20 lines. Required if is_bulk = 1.

Additional Parameters (Optional):

  • slug : (String) Your custom short link alias.
  • password : (String) Link protection password.
  • max_clicks : (Int) Maximum click limit.
  • expires_at : (DateTime) Date the link is no longer accessible (Format: YYYY-MM-DD HH:MM:SS).
  • is_private : (Int) 1 to hide from public statistics list, 0 for public.

cURL Example (Create Single URL):

curl -X POST https://g.elyng.com/api/generate \
     -d "is_bulk=0" \
     -d "url=https://domainpanjang.com/halaman-penting" \
     -d "slug=promo-2026" \
     -d "is_private=1"

cURL Example (Create Bulk URL):

curl -X POST https://g.elyng.com/api/generate \
     -d "is_bulk=1" \
     -d "bulk_urls=https://satu.com
https://dua.com
https://tiga.com"