mirror of
https://github.com/artegoser/piped-api.git
synced 2024-11-06 04:23:58 +03:00
23 lines
398 B
Markdown
23 lines
398 B
Markdown
# Piped API
|
|
|
|
This is the API wrapper for [Piped](https://github.com/TeamPiped/Piped) in Node.js (Typescript).
|
|
|
|
[Docs](https://artegoser.github.io/piped-api/)
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm i piped-api
|
|
```
|
|
|
|
## Usage
|
|
|
|
```typescript
|
|
import { PipedAPI } from "piped-api";
|
|
|
|
const api = new PipedAPI("https://ytapi.dc09.ru");
|
|
|
|
let trending = await api.trending("US");
|
|
|
|
console.log(trending[0].title);
|
|
```
|