Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashraj-n/zoro-to-api
API wrapper for Zoro.to
https://github.com/yashraj-n/zoro-to-api
Last synced: 4 days ago
JSON representation
API wrapper for Zoro.to
- Host: GitHub
- URL: https://github.com/yashraj-n/zoro-to-api
- Owner: yashraj-n
- License: mit
- Created: 2022-12-26T04:50:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-20T12:57:53.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T05:30:48.869Z (9 months ago)
- Language: TypeScript
- Homepage: https://yashraj-n.github.io/zoro-to-api/
- Size: 628 KB
- Stars: 10
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zoro.to API
A simple wrapper for the Zoro.to API
[Documentation](https://yashraj-n.github.io/zoro-to-api/)
## Installation```bash
# npm
npm install zoro-to-api# yarn
yarn add zoro-to-api
```## Basic Usage
#### Javascript
```js
const Zoro = require('zoro-to-api');// Change Horimiya to whatever you want to search for
let zoroResults = await Zoro.zoroSearch("Horimiya")// Get the first result
let horimiya = zoroResults[0]// Get the info for the first result
let info = Zoro.getAnimeInfoByName(horimiya.eng_title);// Get the episodes for the first result
let eps = Zoro.getEpList(horimiya.id);// Get the first episode
let firstEpisode = eps.episodes[0];// Get the servers for the first episode
let servers = Zoro.getEpisodeServers(firstEpisode.epId);// Choose out of 4 servers
let subbed = servers.serversSub[0]// Get the stream server
let streamServer = Zoro.getStreamsById(subbed.serverId);// Your iframe link
console.log(streamServer.link)//* ⚠ Make sure you read the docs for the functions you use
```#### Typescript
```ts
import Zoro from 'zoro-to-api';...
```### Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Make sure to update tests as appropriate.### License
[MIT](https://choosealicense.com/licenses/mit/)