This API is created with Flask. It scrapes data from bookmyshow.com and provides the necessary data. No need of some special key, just hit the api to get results. It is not live yet but will be soon.
It supports following functions:
- To access this function hit the url: https://yourserver.com/city/event
- It takes
city
as argument and returns a json of all the available movies in that city. - Argument
event
is not supported yet, but will be available soon. - To filter out results you could use
POST JSON(application/json)
parameters:languages
anddimensions
. Both should be list type object in json.
- To access this function hit the url: https://yourserver.com/city/venues
- Returns: A JSON containing seat availability details of the venue in which the movie is showing.
{
"details": [
{
"name": "<Venue Name>",
"timings": [
{
"show_time": "<Show Time>",
"seat_type": [
{
"name": "<Seat Type>",
"price": "<Price>",
"availability": "<Availbility = ['Available', 'Filling Fast', 'Sold Out']>"
}
]
}
]
}
]
}
- Parameters:
movieUrl
: A string URL of the venues pagedimension
: A stringdimension
in which you want the result for that movie to be in(eg: "2D", "3D", etc).language
: A string in which you want the results for that movie to be in (eg: "English", "Hindi", "Marathi", "Tamil", etc.)langDimUrl
: A string URL of the page from where you select language and dimensions for that movie.
- It works with 3 different cases:
If the
movieUrl
is given it will directly show the resultIt requires the{ "movieUrl": "https://in.bookmyshow.com/buytickets/avengers-endgame-pune/movie-pune-ET00090482-MT/" }
dimension
andlanguage
parameters to work properly.To get these parameters first hit{ "language": "English", "dimension": "3D", "langDimUrl": "https://in.bookmyshow.com/pune/movies/avengers-endgame/ET00090482" }
/<city>/
with themovieName
. Then hit/<city>/venues
for venues data. It requires exactmovieName
,dimension
andlanguage
to work properly.{ "language": "English", "dimension": "3D", "movieName": "Avengers: Endgame" }
Feel free to contribute!!