@hssoftvn/yt-search-api - A light Youtube Search API for NodeJS
(2024-08-02 07:16)
96 ()
 

Looking for a lightweight and efficient way to fetch YouTube search results? Look no further!

 

Our @hssoftvn/yt-search-api is designed specifically for NodeJS developers who need a reliable and fast solution.

Whether you’re building a new app or enhancing an existing one, this API will streamline your YouTube data retrieval process.

Dive in now and see how it can transform your projects!

Feel free to tweak it as needed!

 

Project Overview

The youtube-search-api is an API for retrieving YouTube search results.

 

Installation

Docs

 

Core Functions

The API includes functions like SearchVideosByKeyword, FetchWhatToWatchByYouTube, FetchTrending, and GetVideoDetailsWithSuggestion.

 

Examples

Install module:

  • npm install @hssoftvn/yt-search-api

Create a test.js file, with content below

const ytSearchApi = require("@hssoftvn/yt-search-api");

ytSearchApi.SearchVideosByKeyword("Hello").then((result) => {
console.log(result.items[0], result.nextPage);
});

ytSearchApi.FetchWhatToWatchByYouTube().then((result) => {
console.log(result);
});

ytSearchApi.FetchTrending("0").then((result) => {
console.log(result.items && result.items[0], result.nextPage);
});

ytSearchApi.GetVideoDetailsWithSuggestion("oQl9XjVKdQ4").then((result) => {
console.log(result);
});

Run and enjoy:

  • node test.js

 

Contributing:

Contributions are welcome, and users can submit pull requests or open issues for discussion.

Chúng tôi sử dụng cookie để cải thiện trải nghiệm người dùng và phân tích lưu lượng truy cập trang web. Vì những lý do này, chúng tôi có thể chia sẻ dữ liệu sử dụng trang web của bạn với các đối tác phân tích của chúng tôi. Bằng cách nhấp vào “Chấp nhận cookie”, bạn đồng ý lưu trữ trên thiết bị của mình tất cả các công nghệ được mô tả trong chính sách về quyền riêng tư, hoặc rời khỏi trang.
@hssoftvn/yt-search-api - A light Youtube Search API for NodeJS