piped-api/README.md

24 lines
398 B
Markdown
Raw Normal View History

2023-08-03 21:00:47 +03:00
# Piped API
2023-08-03 21:13:33 +03:00
This is the API wrapper for [Piped](https://github.com/TeamPiped/Piped) in Node.js (Typescript).
2023-08-03 21:00:47 +03:00
2023-08-09 10:09:28 +03:00
[Docs](https://artegoser.github.io/piped-api/)
2023-08-03 21:00:47 +03:00
## Installation
```bash
npm i piped-api
```
## Usage
```typescript
2023-08-03 21:01:39 +03:00
import { PipedAPI } from "piped-api";
2023-08-03 21:00:47 +03:00
2023-08-03 21:34:10 +03:00
const api = new PipedAPI("https://ytapi.dc09.ru");
2023-08-03 21:00:47 +03:00
let trending = await api.trending("US");
console.log(trending[0].title);
```