Emily API Server that integrates various scripts and processes them server-side (written in Flask)
Usage
Environment Variables
Set the Server Port to use in PORT.It defaults to 8080 and this variable only works for Python Deployment.
Set the BIFM API URL to use for Bypass in BIFM_URL. It defaults to this API.
Set the SAFONE API URL to use in SAFONE_API_URL. It defaults to this API.
Set the Telegraph Name to use in TELEGRAPH_NAME. It defaults to this Name - EmilyAPI.
Set the Telegraph URL to use in TELEGRAPH_LINK. It defaults to this link.
(Optional) Set DATABASE_URL to a MongoDB URL (Connection string) for storing/obtaining results generated via the /api/bypass and /api/direct endpoints.
Follow this guide to generate database.
(Optional) Set WARP_ID to your Cloudflare Warp ID if you want to generate some extra Warp+ Quota
Starting the Server
A. Python
Install the required python packages using pip install -r requirements.txt
Start the server using python -m web or python3 -m web
The server will start at port 8080 (By Default)
B. DockerFile
Build the Docker Image first using sudo docker build . -t emily-api
Then run the Docker Image using sudo docker run -p 8080:8080 emily-api
To stop the Docker , use sudo docker ps and sudo docker stop {name/id}
C. Docker Compose
Build and run the Image using sudo docker-compose up
After Editing Files, Run sudo docker-compose up --build to rebuild the image
To Stop the Image, Use sudo docker-compose stop
To Start the Image again, Use sudo docker-compose start
Making Requests
You can make POST as well as GET requests to the server
Server Endpoints are -
/api/bypass for AD-Bypassers
/api/direct for DL-Generators
/api/misc for Misc Services
/api/paste for Pasting
/api/scraper for Site Scraping
/api/shorten for Link Shorteners
/api/multi for all Bypassers, Generators and Scrapers combined
The data should be in json format and should have two of these keys:
type - Specify Link Bypasser/Direct-Gen Type to use
url - Specify the link which is to be sent to Bypass/Direct-Link (This Key is not for Paste & Misc Services)
text - Specify the text which is to be sent for pasting (This Key is only for Paste)
query - Specify the word(s) for misc services (This Key is only for Misc Services)
The Returned Json Data has a Field success (boolean) specifying if the Request was Successful or not
In Case of Error,success is False and a Field msg is returned containing the Error
Otherwise success is True and a Key url contains the Bypassed Link
Important Points
MegaUP Download URLs can only be downloaded by Non-Blacklisted IPs as their server is Cloudflare Protected.
If you do not want to use Environment Variables, then you can manually change them in