Skip to content

rayhanzz73/All-dl-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here's a sample README.md file for your Express application:

# Media Downloader API

This is a simple Express.js application that allows users to download media from a given URL using the `SiFu-dlmedia` library.

## Features

- Serve a static HTML page.
- Fetch notices (custom implementation).
- Download media using a provided URL.

## Installation
  1. Clone the repository:
  git clone https://github.com/rayhanzz73/All-dl-api.git
   cd All-dl-api
  1. Install the dependencies:

    npm install

Usage

  1. Start the server:

    npm start

    The server will run on http://localhost:3000.

  2. Access the API:

    Make a GET request to /api with a query parameter url. For example:

    GET http://localhost:3000/api?url=<media-url>
    

    Replace <media-url> with the URL of the media you want to download.

Error Handling

  • If the url parameter is missing, the API will return a 400 status code with an error message.
  • If an error occurs during the media download, a 500 status code will be returned with an error message.

Html response

Media Downloader

  • response
  • Media Downloader

Contributing

Feel free to submit issues or pull requests for improvements or new features.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors