forest-api is a tool to call api https://www.forestapi.my.id which functions to get data about YouTube such as data about channels and about YouTube video and others social media. This API frequently experiences internal server error 500.
npm install forest-api
You just put channel name in parameter. example :
import { getYoutubeChannel } from "forest-api";
(async () => {
try {
const response = await getYoutubeChannel(channelName)
console.log(response)
} catch (error) {
console.error("error:", error)
}
})()
response :
{
status: true,
id: 'example id',
name: 'example name',
description: 'example description',
image_url: 'example image_url'
}
You just put id video in parameter example :
import { getYoutubeVideo } from "forest-api";
(async () => {
try {
const response = await getYoutubeVideo(idVideo)
console.log(response)
} catch (error) {
console.error("error:", error)
}
})()
response:
{
"status": true,
"id": "Video ID",
"title": "Video Title",
"description": "Video Description",
"viewers": "Video Viewers",
"author": "Video Author",
"thumbnails": [
{
"url": "Video Thumbnail URL",
"width": "Video Thumbnail Width",
"height": "Video Thumbnail Height"
}
],
"videos": [
{
"url": "Video URL",
"type": "Video Type",
"size": "Video Size",
"quality": "Video Resolution"
}
]
}
getTelegramUser(username)
getTelegramChannel(username)
getTelegramGroup(idOrUsername)
getInstagramAccount(username)
getInstagramPhoto(id)
getFacebookUser(username)
getFacebookVideo(id)
getFacebookPage(username)
getFacebookGroup(idOrUsername)
getTiktokUser(username)
getTiktokVideo(username, id)
getGithubUser(username)
getGithubRepository(username)
getGithubFollowers(username)
getGithubFollowing(username)
getGithubStars(username)
getGithubRepoInformation(username, repository)
getGithubRepoStars(username, repository)
getGithubRepoForks(username, repository)