AJ-Linkshrink makes your URL simpler.
AJ-Linkshrink is a simple URL shortening API that allows you to convert long URLs into shorter, more manageable links. It uses FastAPI for the backend and integrates with Firebase Firestore for storage. The API is deployed on Render for reliable hosting and scalability.
Fetch the data for a short link.
- Body: A JSON object containing the short URL ID.
{ "link_id": "link-id" }
- Example response:
{ "link_id": "link-id", "short_link": "short-link", "original_link": "original-link" }
Create a short link for a given long URL.
- Body: A JSON object containing the long URL.
{ "link": "original-link" }
- Example response:
{ "link_id": "link-id", "short_link": "short-link", "original_link": "original-link" }