youtube-search-api-ts

1.2.8 • Public • Published

Youtube Search API

How to use

  • Install package
npm install youtube-search-api-ts
  • Search
import { NextPage, YoutubeSearchApi } from "youtube-search-api-ts"
const api = new YoutubeSearchApi()

// Search
const output1 = await api.search("cat", true, 2, [{ type: "video" }])

// Fetch subsequent pages
const output2 = await api.getNextPage(output1.nextPage, true, 2)

const output3 = await api.getNextPage(output2.nextPage, true, 2)

Package Sidebar

Install

npm i youtube-search-api-ts

Weekly Downloads

3

Version

1.2.8

License

MIT

Unpacked Size

62.6 kB

Total Files

9

Last publish

Collaborators

  • yonghoon