-
Instagram Data Retrieval:
Fetches Instagram post-data using GraphQL queries. Extracts and returns various details about an Instagram post, such as ID, caption, shortcode, dimensions, video URL, author, and more. -
YouTube Data Retrieval:
Fetches YouTube video or playlist data using the kkdai/youtube library. Extracts and returns various details about a YouTube video, such as ID, author, duration, thumbnail, description, stream URL, title, and view count. Supports fetching data for both individual videos and playlists. -
Proxy Support:
Supports the use of a SOCKS5 proxy for YouTube data retrieval, configurable via the config.Socks5Proxy setting.
- Go 1.23.0 or higher
SOCKS5_PROXY
: SOCKS5 proxy URL (optional)
-
Clone the repository:
git clone https://github.com/Abishnoi69/dl-api.git cd dl-api
-
Run the server:
go run main.go
-
The server will start on
http://localhost:8080
.
- Fork this repository 🍴
- Login your Vercel account
- Go to your Add New Project
- Choose the repository you forked
- Configure your Environment Variables: SOCKS5_PROXY
- Tap on Deploy
- Use your api and enjoy!
You can also use Video ID / Playlist ID instead of URL.
- URL: /yt?url={video_url}/{playlist_url}
- Method: GET
- Description: Download video information and stream URL.
- Response:
{
"ID": "video_id",
"author": "video_author",
"duration": "video_duration",
"thumbnail": "thumbnail_url",
"description": "video_description",
"stream_url": "stream_url", // you can use this to download the video
"title": "video_title",
"view_count": "view_count"
...
}
- URL: /ig?url={post_id}
- Method: GET
- Description: Instagram post-information.
- Response:
{
"ID": "post_id",
"caption": "post_caption",
"shortcode": "post_shortcode",
"dimensions": "post_dimensions",
"video_url": "video_url", // you can use this to download the video
"author": "post_author"
...
}
Contributions are welcome! For bug reports, feature requests, or pull requests, please open an issue or submit your changes directly
This project is licensed under the MIT License—see the LICENSE file for details.