{"id":15583004,"url":"https://github.com/ashokshau/dl-api","last_synced_at":"2025-03-07T06:31:04.928Z","repository":{"id":253094719,"uuid":"841465675","full_name":"AshokShau/dl-api","owner":"AshokShau","description":"YouTube and Instagram downloader api","archived":true,"fork":false,"pushed_at":"2024-08-23T18:43:04.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T12:07:24.644Z","etag":null,"topics":["api","downloader","go","insta-dl","instagram","instagram-api","vercel","yt-api","yt-dlp"],"latest_commit_sha":null,"homepage":"https://dl-api.abishnoi.me/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AshokShau.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-12T13:13:24.000Z","updated_at":"2025-01-12T17:54:22.000Z","dependencies_parsed_at":"2024-08-24T14:15:44.600Z","dependency_job_id":null,"html_url":"https://github.com/AshokShau/dl-api","commit_stats":null,"previous_names":["abishnoi69/ytdl-api","abishnoi69/dl-api","ashokshau/dl-api"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2Fdl-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2Fdl-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2Fdl-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2Fdl-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshokShau","download_url":"https://codeload.github.com/AshokShau/dl-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242345069,"owners_count":20112590,"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":["api","downloader","go","insta-dl","instagram","instagram-api","vercel","yt-api","yt-dlp"],"created_at":"2024-10-02T20:03:43.205Z","updated_at":"2025-03-07T06:31:04.647Z","avatar_url":"https://github.com/AshokShau.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Downloader API\n\n## Features: \n\n* Instagram Data Retrieval:  \nFetches Instagram post-data using GraphQL queries.\nExtracts and returns various details about an Instagram post, such as ID, caption, shortcode, dimensions, video URL, author, and more.\n\n* YouTube Data Retrieval:  \nFetches YouTube video or playlist data using the [kkdai/youtube](https://github.com/kkdai/youtube) library.\nExtracts and returns various details about a YouTube video, such as ID, author, duration, thumbnail, description, stream URL, title, and view count.\nSupports fetching data for both individual videos and playlists.\n\n* Proxy Support:  \nSupports the use of a SOCKS5 proxy for YouTube data retrieval, configurable via the config.Socks5Proxy setting.\n\n## Prerequisites:\n\n- Go 1.23.0 or higher\n\n## Configuration:\n\n* `SOCKS5_PROXY` : SOCKS5 proxy URL (optional)\n\n## Setup:\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/Abishnoi69/dl-api.git\n   cd dl-api\n   ```\n   \n2. Run the server:\n   ```sh\n    go run main.go\n    ```\n   \n3. The server will start on `http://localhost:8080`.\n\n\n\u003csection\u003e\n\u003ch2\u003eDeploy to Vercel\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eFork this repository 🍴\u003c/li\u003e\n\u003cli\u003eLogin your \u003ca href=\"https://vercel.com/\"\u003eVercel\u003c/a\u003e account \u003c/li\u003e\n\u003cli\u003eGo to your \u003ca href=\"https://vercel.com/new\"\u003eAdd New Project\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eChoose the repository you forked\u003c/li\u003e\n\u003cli\u003eConfigure your Environment Variables: \u003cb\u003eSOCKS5_PROXY\u003c/b\u003e\u003c/li\u003e\n\u003cli\u003eTap on Deploy\u003c/li\u003e\n\u003cli\u003eUse your api and enjoy!\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/section\u003e\n\n\n## Endpoints\n\u003e You can also use Video ID / Playlist ID instead of URL.\n\n### Get Video Information:\n* URL: /yt?url={video_url}/{playlist_url}  \n* Method: GET\n* Description: Download video information and stream URL.\n* Response:\n```\n{\n\"ID\": \"video_id\",\n\"author\": \"video_author\",\n\"duration\": \"video_duration\",\n\"thumbnail\": \"thumbnail_url\",\n\"description\": \"video_description\",\n\"stream_url\": \"stream_url\", // you can use this to download the video\n\"title\": \"video_title\",\n\"view_count\": \"view_count\"\n...\n}\n```\n\n### Get Instagram Post Information:\n* URL: /ig?url={post_id} \n* Method: GET\n* Description: Instagram post-information.\n* Response:\n```\n{\n\"ID\": \"post_id\",\n\"caption\": \"post_caption\",\n\"shortcode\": \"post_shortcode\",\n\"dimensions\": \"post_dimensions\",\n\"video_url\": \"video_url\", // you can use this to download the video\n\"author\": \"post_author\"\n...\n}\n```\n\n## Contributing\nContributions are welcome! For bug reports, feature requests, or pull requests, please open an issue or submit your changes directly\n\n\n## License\nThis project is licensed under the MIT License—see the [LICENSE](/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fdl-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashokshau%2Fdl-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fdl-api/lists"}