An open API service indexing awesome lists of open source software.

https://github.com/chrismichaelps/otakustv

The Otakustv API is a content provider of the latest in the world of anime with sub in Spanish and free. Using as a reference the website otakustv.com, to extract the data.
https://github.com/chrismichaelps/otakustv

anime-scraper otakustv otakustv-api

Last synced: 3 months ago
JSON representation

The Otakustv API is a content provider of the latest in the world of anime with sub in Spanish and free. Using as a reference the website otakustv.com, to extract the data.

Awesome Lists containing this project

README

          


Otakustv API



The Otakustv API is a content provider of the latest in the world of anime with sub in Spanish and free. Using as a reference the website otakustv.com, to extract the data.



Maintenance
License: MIT



# 📖 API Documentation

## getServers([eps_id])
To access the servers you must use the `eps_id` property that you will find under the `episodes` array.

**For now it only returns the server Drive.google**

```js
(async() =>{
const data = await getServers(eps_id = '/anime/tokyo-ghoul/episodio-12/');
})();
```

```json
"https://drive.google.com/file/d/1ImYmj21QXMmqqd4dpBEU8KMnRSGi5o6_/preview"
```

## donwloadEpisode([eps_id])
To download the eposide you must use the `eps_id` property that you will find under the `episodes` array.

```js
(async() =>{
const data = await donwloadEpisode(eps_id = '/anime/tokyo-ghoul/episodio-12/');
})();
```

```json
[
{
url: 'https://mega.nz/file/u9wkwAKb#z-ojeXqQXWU9VhtqoKK2FWiEYCw2xEgOeg5MSsIjklo',
option: 'Descargar 1'
},
{
url: 'https://mega.nz/file/u9wkwAKb#z-ojeXqQXWU9VhtqoKK2FWiEYCw2xEgOeg5MSsIjklo',
option: 'Descargar 2'
},
{
url: 'https://mega.nz/file/u9wkwAKb#z-ojeXqQXWU9VhtqoKK2FWiEYCw2xEgOeg5MSsIjklo',
option: 'Descargar 3'
}
]
```

## premiereEpisodes()

```js
(async() =>{
const data = await premiereEpisodes();
})();
```

```json
[
{
title: 'Tsukiuta. The Animation 2',
eps_num: 8,
poster: 'https://www.otakustv.com/images/videos/episodio5fbe986482877.jpg',
premier: 'Nuevo',
eps_video: 'https://drive.google.com/file/d/1B8GqCH8znqAy4Nr6iPNIM7kr9H1I6_xk/preview'
},
// .....
]
```

## finishedAnime()

```js
(async() =>{
const data = await finishedAnime();
})();
```

```json
[
{
title: 'Naruto',
eps_num: 132,
poster: 'https://www.otakustv.com/images/videos/episodio5fac026f8dc81.jpg',
premier: null,
eps_video: 'https://drive.google.com/file/d/1KsTAVmgCsJfwBM9fUPW1nAH8BWTLopo5/preview'
},
// .....
]
```

## ranking()

```js
(async() =>{
const data = await ranking();
})();
```

```json
[
{
title: 'Haikyuu!!',
votes: 10420,
poster: 'https://www.otakustv.com/images/portadas/5c45233b6faa1.jpg',
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## simulcasts()

```js
(async() =>{
const data = await simulcasts();
})();
```

```json
[
{
title: '100-man no Inochi no Ue ni Ore wa Tatteiru',
poster: 'https://www.otakustv.com/images/portadas/5f773f139188b.jpg',
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## dubbedLatin()

```js
(async() =>{
const data = await dubbedLatin();
})();
```

```json
[
{
title: 'Saint Seiya',
poster: 'https://www.otakustv.com/images/portadas/5fb4cc59be0a1.jpg',
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## recentlyAdded()

```js
(async() =>{
const data = await recentlyAdded();
})();
```

```json
[
{
title: 'RWBY Volume 8',
poster: "https://www.otakustv.com/'images/portadas/5fb963a725d40.jpg'",
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## premieresAnime([page])
The value may change in the next days / weeks.
| PAGE LIMIT |
| ---------- |
| 4 |

```js
(async() =>{
const data = await premieresAnime(page = 1);
})();
```

```json
[
{
title: 'RWBY Volume 8',
poster: 'https://www.otakustv.com/images/portadas/5fb963a725d40.jpg',
description: 'Con el artefacto en sus garras, el poder de Salem alcanza nuevas y peligrosas alturas. Atlas, y toda Remnant en general, nunca habían corrido tanto peligro como ahora. ¿Habrá alguna esperanza de victoria para los protagonistas o las capacidades de Salem son demasiado grandes como para poder derrotarla?',
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## queries([genero, anno, tipo, estado, orden, page])
The value may change in the next days / weeks.
| PAGE LIMIT |
| ---------- |
| 36 |

@param **genero**
```html
default
Acción
Artes Marciales
Aventura
Carreras
Ciencia Ficción
Comedia
Demonios
Deportes
Drama
Ecchi
Escolares
Escuela
Espacial
Fantasía
Fútbol
Gore
Harem
Histórico
Horror
Infantil
Josei
Juegos
Latino
Lucha
Magia
Mecha
Militar
Misterio
Música
Parodia
Peleas
Policía
Psicológico
Recuentos de la vida
Recuerdos
Romance
Samurai
School
Seinen
Shoujo
Shounen
Sobrenatural
Superpoderes
Suspenso
Terror
Vampiros
```

@param **anno**
```html
default
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
```

@param **tipo**
```html
default
SERIE
PELICULA
ESPECIAL
OVA
TRAILER
```

@param **estado**
```html
default
EMITIENDOSE
PROXIMO
FINALIZADO
```

@param **orden**
```html
default
descendente por registro
ascendente por registro
```

```js
(async() =>{
const data = await queries(
genero = 1,
anno = 2020,
tipo = 0,
estado = 0,
orden = 0,
page = 0
);
})();
```

```json
[
{
title: 'Appare-Ranman!',
poster: 'https://www.otakustv.com/images/portadas/5f001b1b82bab.jpg',
description: 'La historia se desarrollará al final del siglo XIX, cerca ya del inicio del nuevo siglo. Tras ciertas circunstancias, la brillante pero socialmente inpeta ingeniera Sorano Appare y el cobarde samurái Isshiki Kosame',
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## search([query])

```js
(async() =>{
const data = await search(query = 'tokyo ghoul');
console.log(data);
})();
```

```json
[
{
title: 'Tokyo Ghoul',
poster: 'https://www.otakustv.com/images/portadas/5c4397772ab7f.jpg',
description: 'Extraños asesinatos se están sucediendo uno tras otro en Tokyo. Debido a las pruebas encontradas en las escenas, la policía concluye que los ataques son obra de ghouls que se comen a las personas. Kaneki y Hide, dos compañeros de clase, llegan a la c',
eps: {
info: [Array],
actors: [Array],
genres: [Array],
episodes: [Array]
}
},
// .....
]
```

## **:handshake: 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

---

### **:busts_in_silhouette: Credits**

- [Chris Michael](https://github.com/ChrisMichaelPerezSantiago) (Project Leader, and Developer)

---

### **:anger: 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).

---

### **:heart: Show your support**

Please :star: 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.

---

### **:robot: Author**

_*Chris Michael*_

> You can follow me on
[github](https://github.com/ChrisMichaelPerezSantiago) · [twitter](https://twitter.com/Chris5855M)

---

Copyright © 2020 [Otakustv API](https://github.com/ChrisMichaelPerezSantiago/otakustv).