{"id":16966925,"url":"https://github.com/tuhinpal/url-shorten-api","last_synced_at":"2025-04-11T23:41:22.969Z","repository":{"id":104209656,"uuid":"308220852","full_name":"tuhinpal/url-shorten-api","owner":"tuhinpal","description":"Serverless URL Shortener API (Nodejs + MongoDB + Vercel)","archived":false,"fork":false,"pushed_at":"2020-12-11T04:09:28.000Z","size":17,"stargazers_count":10,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T19:37:14.337Z","etag":null,"topics":["mongoclient","mongodb","serverless","serverless-functions","url-shortener","vercel","vercel-serverless"],"latest_commit_sha":null,"homepage":"https://url-shorten-api.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuhinpal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-29T04:50:21.000Z","updated_at":"2023-10-20T16:22:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc57c856-c698-40cf-950c-ced6b3e99093","html_url":"https://github.com/tuhinpal/url-shorten-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuhinpal%2Furl-shorten-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuhinpal%2Furl-shorten-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuhinpal%2Furl-shorten-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuhinpal%2Furl-shorten-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuhinpal","download_url":"https://codeload.github.com/tuhinpal/url-shorten-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497902,"owners_count":21113982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mongoclient","mongodb","serverless","serverless-functions","url-shortener","vercel","vercel-serverless"],"created_at":"2024-10-14T00:06:36.302Z","updated_at":"2025-04-11T23:41:22.961Z","avatar_url":"https://github.com/tuhinpal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Url Shorten API\n[![Watch it on YouTube](https://img.shields.io/badge/Watch%20it%20on%20youtube-red?style=for-the-badge\u0026logo=youtube \"Watch it on YouTube\")](https://youtu.be/TmSohwAM6Ss \"Watch it on YouTube\")\n\n### API Endpoints\n**1. Create a Shortned Link (Get):**\u003cbr\u003e\n*Request*\n\n```\nhttps://your-app-url.vercel.app/create?u={url}\n\n##Ex.\nhttps://url-shorten-api.vercel.app/create?u=https://thetuhin.com\n```\n\n*Response*\n\n```json\n{\n  \"status\": true,\n  \"link\": \"https://url-shorten-api.vercel.app/?i=1603985599nRrMuJ\",\n  \"unique_id\": \"1603985599nRrMuJ\",\n  \"timestamp\": 1603985599\n}\n```\n\n**2. Get Main URL from Shortened URL (Get):**\u003cbr\u003e\n*Request*\n\n```\nhttps://your-app-url.vercel.app/?i={unique-id}\n\n##Ex.\nhttps://url-shorten-api.vercel.app/?i=1603985599nRrMuJ\n```\n\n*Response*\n\n```json\n{\n  \"status\": true,\n  \"main_link\": \"https://thetuhin.com\",\n  \"created_at\": 1603985599\n}\n```\n\n### Make Your Own\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fcachecleanerjeet%2Furl-shorten-api)\n\n**Environment Variables**\n- **APP_URL**\u003cbr\u003e\n(Vercel Deployment Link - https://url-shorten-api.vercel.app)\n- **DB_URL**\u003cbr\u003e\n(MongoDB Url)\u003cbr\u003e\u003cbr\u003e\n\n## Star this Repo if you Liked it ⭐⭐⭐\n\n\n\u003cbr\u003e\u003cbr\u003e\n\u003cp align=\"center\"\u003e \u003cb\u003eMy Website \u0026 Social\u003c/b\u003e\u003c/p\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n \n \u003ca href=\"https://tu.hin.life\"\u003e\n    \u003cimg alt=\"Website\" width=\"30px\" src=\"https://firebasestorage.googleapis.com/v0/b/webtuhin.appspot.com/o/githubstatic%2Fwebsite.svg?alt=media\u0026token=5c3ea7e0-d4f7-4566-b78a-bdee6c65f03e\" /\u003e\n  \u003c/a\u003e  \n..\n  \u003ca href=\"https://www.instagram.com/jeeetpaul\"\u003e\n    \u003cimg alt=\"Instagram\" width=\"30px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@3.2.0/icons/instagram.svg\" /\u003e\n  \u003c/a\u003e\n..\n  \u003ca href=\"https://www.youtube.com/channel/UCa4FMtLpYcOBtjKOZgzTFNA\"\u003e\n    \u003cimg alt=\"YouTube\" width=\"30px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@3.2.0/icons/youtube.svg\" /\u003e\n  \u003c/a\u003e\n..\n  \u003ca href=\"https://telegram.dog/tprojects\"\u003e\n    \u003cimg alt=\"Telegram\" width=\"30px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@3.2.0/icons/telegram.svg\" /\u003e\n  \u003c/a\u003e\n  \n\u003c/p\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuhinpal%2Furl-shorten-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuhinpal%2Furl-shorten-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuhinpal%2Furl-shorten-api/lists"}