Giter VIP home page Giter VIP logo

chrismichaelperezsantiago / 123-movies Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 9.0 44 KB

The API 123Movies is a library that provides an extensive catalog of movies and series from the 123-movies.com platform. This allows access to all the videos of each movie and episodes of each series with audio in English.

JavaScript 100.00%
123movies 123-movies 123-movies-api 123movies-api series movies webscraper-api javascript-library

123-movies's Introduction

๐Ÿšฉ 123-Movies API (version v1.0.0)

Maintenance License: MIT

The API 123Movies is a library that provides an extensive catalog of movies and series from the 123-movies.com platform. This allows access to all the videos of each movie and episodes of each series with audio in English.


๐Ÿ“123-Movies API

PluginManager.getMovies([page])

page range
[1 .. 1222]
[
  [
    {
      id: 'https://vww.123-movies.com/movie/it-free100/watching.html',
      title: 'It',
      poster: 'https://123images.co/movies/1231396484-poster-It.jpg',
      description: "In the Town of Derry, the local kids are disappearing one by one, leaving behind bloody remains. In a place known as 'The Barrens', a group of seven kids are united by their horrifying and strange encounters with an evil clown and their determination to kill It. Written by Emma Chapman",
      imdb_score: 8,
      genres: [Array],
      year: '2017',
      episode_length: '135 min',
      quality: 'HD'
    },
    {
      id: 'https://vww.123-movies.com/movie/spider-man-homecoming-free113/watching.html',
      title: 'Spider-Man: Homecoming',
      poster: 'https://123images.co/movies/1232250912-poster-Spider-Man-Homecoming.jpg',
      description: 'Thrilled by his experience with the Avengers, Peter returns home, where he lives with his Aunt May, under the watchful eye of his new mentor Tony Stark, Peter tries to fall back into his normal daily routine - distracted by thoughts of proving 
himself to be more than just your friendly neighborhood Spider-Man - but when the Vulture emerges as a new villain, everything that 
Peter holds most important will be threatened. Written by Benett Sullivan',
      imdb_score: 7.9,
      genres: [Array],
      year: '2017',
      episode_length: '133 min',
      quality: 'HD'
    },
    {
      id: 'https://vww.123-movies.com/movie/transformers-the-last-knight-free126/watching.html',
      title: 'Transformers: The Last Knight',
      poster: 'https://123images.co/movies/1233371366-poster-Transformers-The-Last-Knight.jpg',
      description: 'Optimus Prime finds his dead home planet, Cybertron, in which he comes to find he was responsible for its destruction. He finds a way to bring Cybertron back to life, but in order to do so, Optimus needs to find an artifact that is on Earth.', 
      imdb_score: 5.3,
      genres: [Array],
      year: '2017',
      episode_length: '149 min',
      quality: 'HD'
    },
    {
      id: 'https://vww.123-movies.com/movie/annabelle-2-free104/watching.html',
      title: 'Annabelle 2',
      poster: 'https://123images.co/movies/1235140878-poster-Annabelle-2.jpg',
      description: "12 years after the tragic death of their little girl, a dollmaker and his wife welcome a nun and several girls from a shuttered orphanage into their home, where they soon become the target of the dollmaker's possessed creation, Annabelle.",    
      imdb_score: 6.9,
      genres: [Array],
      year: '2017',
      episode_length: '109 min',
      quality: 'HD'
    },
    // .....
  ]
]

PluginManager.getTVSeries([page])

page range
[1 .. 208]
[
  [
    {
      title: 'Game of Thrones',
      poster: 'https://123images.co/tv/1230944947-poster-Game-of-Thrones.jpg',
      description: 'In the mythical continent of Westeros, several powerful families fight for control of the Seven Kingdoms. As conflict erupts in the kingdoms of men, an ancient enemy rises once again to threaten them all. Meanwhile, the last heirs of a recently usurped dynasty plot to take back their homeland from across the Narrow Sea. Written by Sam Gray',
      imdb_score: 9.5,
      genres: [Array],
      year: '2011',
      episode_length: '56 min',
      episodes: [Array]
    },
    {
      title: 'Power',
      poster: 'https://123images.co/tv/1233281796-poster-Power.jpg',
      description: "Power tells the story of James Ghost St. Patrick, a wealthy New York City nightclub owner who caters to the city's elite. He wants to build an empire, turn the club into a Fortune 500 business, but there's just one problem: Ghost is living a double life. When he is not in the club, he is the kingpin of the most lucrative drug network in New York for a very high-level clientele. His marriage, family and business all become unknowingly threatened as he is tempted 
to leave his criminal life behind and become the rags-to-riches businessman he wants to be most of all. Written by Jiilo_Kim",
      imdb_score: 8.1,
      genres: [Array],
      year: '2014',
      episode_length: '50 min',
      episodes: [Array]
    },
    {
      title: 'Rick and Morty',
      poster: 'https://123images.co/tv/1232861424-poster-Rick-and-Morty.jpg',
      description: 'An animated series on adult-swim about the infinite adventures of Rick, a genius alcoholic and careless scientist, with his grandson Morty, a 14 year-old anxious boy who is not so smart, but always tries to lead his grandfather with his own morale compass. Together, they explore the infinite universes; causing mayhem and running into trouble. Written by Ruben Galaviz',
      imdb_score: 9.3,
      genres: [Array],
      year: '2013',
      episode_length: '22 min',
      episodes: [Array]
    },
    {
      title: 'The Flash',
      poster: 'https://123images.co/tv/1233107288-poster-The-Flash.jpg',
      description: 'Barry Allen is a Central City police forensic scientist with a reasonably happy life, despite the childhood trauma of a mysterious red and yellow lightning killing his mother and framing his father. All that changes when a 
massive particle accelerator accident leads to Barry being struck by lightning in his lab. Coming out of coma nine months later, Barry and his new friends at S.T.A.R labs find that he now has the ability to move at superhuman speed. Furthermore, Barry learns that he is but one of many affected by that event, most of whom are using their powers for evil. Determined to make a difference, Barry dedicates his life to fighting such threats, as The Flash. While he gains allies he never expected, there are also secret forces determined to aid and manipulate him for their own agenda. Written by Kenneth Chisholm ([email protected])',
      imdb_score: 8.1,
      genres: [Array],
      year: '2014',
      episode_length: '43 min',
      episodes: [Array]
    },
    // .....
  ]
]   

How to get the videos of the episodes of each series?

You should go to the episodes property, and you will see a list of episodes from each season. You will take the url and pass it to the function getVideoURL([url])

PluginManager.getVideoURL([url]);

(async() =>{
  const episodeURL = 'https://vww.123-movies.com/episode/vikings-1x1/watching.html'
  const video = await PluginManager.getVideoURL(episodeURL);
})();

The function will return the video in mp4 format. If the .mp4 file is not found, it will return the iframe of the video.

[
  [
    {
      "data": {
        "video": "https://s39.upstream.to/o2up2ceuraysmvk4xsecu2xcl36uqlu3rguuezlbnrrfkua5wrmdb6uuzhcq/v.mp4"
      }
    }
  ]
]

How to get the videos of the movies?

You should take the value of the property id and pass it to the getVideoURL([url]) function.

PluginManager.getVideoURL([url]);

(async() =>{
  const url = 'https://vww.123-movies.com/movie/joker-1/watching.html';
  const video = await PluginManager.getVideoURL(url);
})();

The function will return the video in mp4 format. If the .mp4 file is not found, it will return the iframe of the video.

[
  [
    {
      "data": {
        "video": "https://s53.upstream.to/o2up3jvjr4ysmvk4xqksuzvikfjrgkyynbnb6c7j626eddozcgque2fttu6a/v.mp4"
      }
    }
  ]
]

๐Ÿค Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

๐Ÿ‘ฅ Credits


๐Ÿ’ข Troubleshootings

This is just a personal project created for study / demonstration purpose and to simplify my working life, it may or may not be a good fit for your project(s).


โค๏ธ Show your support

Please โญ this repository if you like it or this project helped you!
Feel free to open issues or submit pull-requests to help me improving my work.


๐Ÿค– Author

Chris Michael

You can follow me on githubย ยทย twitter


Copyright ยฉ 2020 123-Movies API.

123-movies's People

Contributors

chrismichaelperezsantiago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

123-movies's Issues

api request

thanks for the subject,i cannot access json results from your api call,should i use header or user agent or token,in fact i am using python because i do not know java.
i used this request but i got the source of 123movies and not json results.
regards

Running the PluginManager

Hi,

How to run the PluginManager on a website. Can you provide sample code to run on a website. I used the one provided in README and I am unable to use PluginManager as a module.

Regards,
Sam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.