Developer API
Use the nly.kr Short URL API to generate links automatically. If you want to shorten a link directly on the web without API integration, use nly.kr free URL shortener .
01 Endpoint
POST
https://nly.kr/api/shorten
Content-Type:
application/x-www-form-urlencoded
02 Authentication
Include an API Key in the request headers for authentication.
- Header (recommended):
X-API-Key: your_API_KEY - Header (alternative):
Authorization: Bearer your_API_KEY - Common:
Accept: application/json
03 Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| url | String | Yes | Original URL to shorten (http/https only) |
| category | String | Yes | Category key (see “Allowed Categories” below) |
Allowed Categories
ai
order: 10
AI
A collection of AI tools, generative AI services, and automation resources.
dev
order: 20
Development / IT
Developer documentation, libraries, references, and useful development resources.
design
order: 30
Design
Icons, fonts, templates, and other design resources.
productivity
order: 40
Productivity
Productivity tools for collaboration, scheduling, notes, document organization, and more.
pdf
order: 50
PDF / Documents
Resources for PDF conversion, editing, sharing, and document workflows.
shopping
order: 60
Shopping / Deals
Shopping resources for products, deals, comparisons, and purchases.
news
order: 70
News / Information
News, blogs, trends, and other informational resources.
education
order: 80
Education / Courses
Courses, learning materials, and tutorials.
media
order: 90
Video / Media
YouTube, streaming, and other media content resources.
community
order: 100
Community
Forums, communities, and Q&A sites.
finance
order: 110
Finance / Investing
Resources for finance, investing, and personal money management.
travel
order: 120
Travel / Food
Travel information, restaurant guides, and place recommendations.
download
order: 130
Resources / Downloads
Utilities, resource libraries, and download links.
tools
order: 140
Useful sites
Useful websites that do not fit neatly into another category.
etc
order: 999
Other
Links that do not clearly fit another category are listed here.
WordPressplugins
order: 999
WordPress plugins
Resources related to building WordPress plugins.
04 Responses
Success (200 OK)
{
"status": "success",
"short_url": "https://nly.kr/Ab3XkQ",
"original_url": "https://example.com",
"code": "Ab3XkQ",
"member_idx": 123,
"category": "ai"
}
Error (4xx, 5xx)
{
"status": "error",
"message": "Category is required."}
400 : Bad Request
401 : Unauthorized
405 : Method Not Allowed
500 : Server Error