Media Hosting API is an open-source solution for streaming and managing media files. It provides a simple and efficient way to upload, access, and delete various types of media files. With Media Hosting API, you can streamline your media hosting needs and easily integrate media file management into your applications.
The following endpoints are available in the Media Hosting API:
- GET
/api/v1/check/:id
- Check if a media file exists by ID. Returns 'isFound', 'id', 'url'. - DELETE
/api/v1/delete/:id
- Remove a file by ID. Returns 'deleted', 'message'. - GET
/api/v1/play/:id
- Stream only videos or mp3 files. Turns link into stream source. - POST
/api/v1/upload
- Upload either images, video files, audio files. Returns 'id', 'url'. - GET
/api/v1/view/:id
- Get source link of the media that includes the ID. Returns 'url'.
If you encounter any errors while using the API, you can access the specific error message by checking response.data.error
in the API response.
We appreciate contributions to enhance the Media Hosting API. If you find any bugs or have suggestions for improvements, please feel free to contribute by following these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make the necessary modifications and fixes.
- Test your changes thoroughly.
- Submit a pull request, describing the changes you have made.
Your contributions will help make the Media Hosting API even better!
If you have identified any bugs in the API and have fixed them, we encourage you to contribute by creating a pull request. We appreciate your effort in improving the stability and reliability of the API.
If you need any assistance or have questions related to the Media Hosting API, please open create an issue with your question.
Special thanks to the all the contributors who have helped make the Media Hosting API even better!