Skip to content

taogeaidd/EgyBest-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUN

Unofficial EgyBest API.

contributors last update forks stars open issues license hits

👨‍💻 Dev & Support:

⚠️ Note:

  • For Personal Use Only, Don't Create Or Build Something Huge With This API Without Permission Otherwise You Will Be Banned
  • This Project Is Licensed Under The GNU General Public License v3.0

⭐️ Features:

  • Smart Search
  • Extract Full Info From Url (Movie-Serie/Anime)
  • Extract: Story - Image - Title - Trailer - Actors Info - Note - Rating Percent - Quality
  • Extract Download and Stream Links With Full Info
  • Extract Similar Movies
  • Extract Seasons / Episodes
  • Extract Previous And Next Episode
  • Extract Movies Or Series From Paths
  • And More ...

🕹 Libraries:

❤️ Used By :

🪐 Docs / Examples:

How To Use ?

🎰 Mandatory Configs

  • Make Sure You Have All These Mandatory Configs, API Will Not Work Without it
API_URL - ACCESS_TOKEN - REFRESH_TOKEN - ID - PASSWORD
  • You Can Get it From:

/dls:

Extract Download and Stream Links With Full Info

Parameters:

Name Required Type Description
v False Number 1-2 Return As list 3-4 As Dict, Default 1
url True String Episode or Movie link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
MOVIE_URL = "https://www.egybest.org/movie/top-gun-maverick-2022"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": MOVIE_URL, "v": 2}                      
URL = API +  "/dls"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/search:

Smart Search

Parameters:

Name Required Type Description
type False String types: all-serie-movie-anime-show, default: all
query True String title (Show - Movie ...)

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"query": "hulk", "type": "movie"}                      
URL = API +  "/search"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/seasons:

Extract Seasons

Parameters:

Name Required Type Description
url True String Show/Serie link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/series/the-walking-dead"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL}                      
URL = API +  "/seasons"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/episodes:

Extract Episodes

Parameters:

Name Required Type Description
url True String Season link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/season/the-walking-dead-season-11"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL}                      
URL = API +  "/episodes"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/info:

Extract Full Info From Url

Parameters:

Name Required Type Description
url True String Show / Serie / Movie, link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/movie/top-gun-maverick-2022"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL}                      
URL = API +  "/info"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/info (separate information)

Extract Story - Image - Title - Trailer - Actors Info - Note - Rating Percent - Quality

Parameters:

Name Required Type Description
url True String Show-Serie or Movie link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/movie/top-gun-maverick-2022"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL}
                
URL_actors = API +  "/actors"
response_actors = requests.get(URL_actors, headers=HEADERS, params=PARAMS)
print(response_actors.json())

URL_note = API +  "/note"
response_note = requests.get(URL_note, headers=HEADERS, params=PARAMS)
print(response_note.json())

URL_trailer = API +  "/trailer"
response_trailer = requests.get(URL_trailer, headers=HEADERS, params=PARAMS)
print(response_trailer.json())

URL_title = API +  "/title"
response_title = requests.get(URL_title, headers=HEADERS, params=PARAMS)
print(response_title.json())

URL_thumbnail = API +  "/thumbnail"
response_thumbnail = requests.get(URL_thumbnail, headers=HEADERS, params=PARAMS)
print(response_thumbnail.json())

URL_story = API +  "/story"
response_story = requests.get(URL_story, headers=HEADERS, params=PARAMS)
print(response_story.json())

URL_rating_percent = API +  "/rating_percent"
response_rating_percent = requests.get(URL_rating_percent, headers=HEADERS, params=PARAMS)
print(response_rating_percent.json())

URL_quality = API +  "/quality"
response_quality = requests.get(URL_quality, headers=HEADERS, params=PARAMS)
print(response_quality.json())

/page:

Extract Data From A Specific Path

Parameters:

Name Required Type Description
number False Number number of page, default 1
path True String path eg: movies/top - movies/latest ..

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"path": "movies/latest", "number": 1}                      
URL = API +  "/page"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/pages:

Extract Multiple Data From A Specific Path

Parameters:

Name Required Type Description
limit False Number number of pages, default 1
path True String path eg: movies/top - movies/latest ..

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"path": "movies/latest", "limit": 3}                      
URL = API +  "/pages"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/table:

Extract Table Info From Page

Parameters:

Name Required Type Description
url True String (Show / Episode / Movie ..) link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/movie/top-gun-maverick-2022"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL, "v": 2}                      
URL = API +  "/table"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/previous_next:

Extract Previous And Next Episode

Parameters:

Name Required Type Description
url True String Episode link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/episode/westworld-2016-season-4-ep-3"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL, "v": 2}                      
URL = API +  "/previous_next"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

/similar:

Extract Similar Movies

Parameters:

Name Required Type Description
url True String Movie link

Method:

  • GET

Example:

import requests
                 
TOKEN = "abcd123"
API = "http://0.1.2.3"
EGY_URL = "https://www.egybest.org/movie/top-gun-maverick-2022"       
HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Accept': 'application/json', 'Content-Type': 'application/json'}
PARAMS = {"url": EGY_URL, "v": 2}                      
URL = API +  "/similar"

response = requests.get(URL, headers=HEADERS, params=PARAMS)

print(response.status_code)
print(response.json())

⭐️

About

Unofficial EgyBest API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%