Skip to content

myapi-rest/myapi-shorturl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

License: MIT Website Discussions myapi.rest Suite

myapi.rest — Short URL API

Create fast, reliable short URLs through a simple REST API.

Features

  • Generate short links instantly
  • Optional expiry timestamps
  • Webhook support for click events
  • Developer-friendly and lightweight

Quick Example

curl --location 'https://api.myapi.rest/api/shorturl/generate'   --header 'Authorization: Bearer <API_KEY>'   --header 'Content-Type: application/json'   --data '{
    "long_url": "https://myapi.rest",
    "expires_at": "2026-12-01T10:00:00Z"
  }'

Sample response:

{
  "shorturl": "https://grc.pw/Z7hye8b"
}

Documentation

See the /docs folder for full usage guides, examples, errors, and endpoint details.

Examples

Language examples are available in the /examples directory, including:

  • C#
  • JavaScript
  • Python
  • PHP
  • Postman Collection

myapi.rest Suite

This API is part of the broader myapi.rest developer suite.
For all APIs, documentation, and examples, visit:

👉 https://github.com/myapi-rest/myapi.rest

About

Short URL API — generate branded short links with webhooks. Part of the myapi.rest suite.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published