Minha Serie | API
Está é uma API não oficial, desenvolvida para testes de extração de series resultantes do Minha Series.
Instalação
Clone o repo, instale as dependencias e inicie o server.
$ git clone https://github.com/DevUpAcademy/minhaserieapi.git
$ cd minhaserieapi
$ npm install
$ npm run dev
Acesse então no navegador por exemplo:
localhost:3000/search/vikings
Retornará como resultado:
"results": [
{
"title": "Vikings",
"category": "Ação/Aventura",
"thumb": "https://assets2.minhaserie.com.br/images/highlights/000/017/148/thumb_740.jpg",
"name": "740-vikings",
"link": "https://www.minhaserie.com.br/serie/740-vikings",
"stars": 5,
"stars-width": "100%",
"visits": "402810"
},
{
"title": "The Last Kingdom",
"category": "Ação/Aventura, Drama",
"thumb": "https://assets3.minhaserie.com.br/images/highlights/000/024/564/thumb_1156.jpg",
"name": "1156-the-last-kingdom",
"link": "https://www.minhaserie.com.br/serie/1156-the-last-kingdom",
"stars": 5,
"stars-width": "100%",
"visits": "25355"
}
],
"count": 2
Rotas
Estas são as rotas da API
- Listar Top Series (15) > /series:
- Pesquisar por serie > /search/:name
- Ver mais informações da serie > /series/:name_in_site
- GET https://minhaserieapi.herokuapp.com/series/740-vikings
- name_in_site pode ser encontrado como retorno de /search/:name como name
- GET https://minhaserieapi.herokuapp.com/series/740-vikings
- Listar Novidades > /news:
- Ver mais informações da noticia > /news/:name