Developer API

Built for scale. Integrated in minutes.

Introduction

Welcome to the URLy API. Our RESTful API allows you to programmatically shorten URLs, track performance, and manage your links from your own applications.

The base URL for all API requests is https://urly.ing/api/v1. All requests must be made over HTTPS.

Authentication

To use the API, you need an API Token. You can generate or find your token in your User Dashboard.

Security Recommendation

Never share your API token in client-side code or public repositories. Always make API calls from your server.

HTTP HEADER
Authorization: Bearer YOUR_API_TOKEN

Shorten URL

Create a new shortened link with optional customization like custom aliases and passwords.

POST /shorten
Parameter Type Requirement Description
url STRING REQUIRED The destination URL you want to shorten.
alias STRING OPTIONAL Custom slug (e.g. "my-link").
password STRING PREMIUM Password to protect the link.
JSON RESPONSE
{ "status": "success", "short_url": "https://urly.ing/xyz123", "short_code": "xyz123", "long_url": "https://example.com" }

Link Statistics

Retrieve detailed analytical data for any link you've created.

GET /stats/{short_code}
JSON RESPONSE
{ "short_code": "xyz123", "hits": 1250, "unique_visitors": 840, "last_click": "2026-08-05 10:30:00" }

WordPress Integration

Integrating URLy with your WordPress website is seamless. You can use our official plugin or make simple wp_remote_post calls in your theme's functions.php.

PHP / WORDPRESS SNIPPET
$response = wp_remote_post('https://urly.ing/api/v1/shorten', [ 'headers' => [ 'Authorization' => 'Bearer ' . $api_token, 'Content-Type' => 'application/json', ], 'body' => json_encode([ 'url' => get_permalink($post_id) ]) ]);
Get the WordPress Plugin