The EU.PE REST API allows you to programmatically create and manage shortened links. All API requests require authentication via API key.

You can find your API key in your account settings.

Authentication

Include your API key in the request header:

X-API-KEY: your_api_key_here

Endpoints

POST Shorten URL

Create a new shortened URL.

POST https://eu.pe/api/shorten // Request Headers Content-Type: application/json X-API-KEY: your_api_key // Request Body { "url": "https://example.com/very-long-url", "custom_code": "mylink", // optional, Pro only "domain_id": 1 // optional } // Response (200 OK) { "success": true, "short_url": "https://eu.pe/mylink", "short_code": "mylink" }
DELETE Delete Link

Delete an existing shortened link.

DELETE https://eu.pe/api/delete-link // Request Body { "link_id": 123 } // Response (200 OK) { "success": true, "message": "Link deleted successfully" }

Rate Limits

Free accounts: 100 requests/hour. Pro accounts: 10,000 requests/hour.

Error Codes

Code Description
400Bad Request (missing/invalid parameters)
401Unauthorized (invalid API key)
403Forbidden (limit reached or insufficient permissions)
429Too Many Requests (rate limit exceeded)
500Internal Server Error