All Projects → jasonhaxstuff → popyt

jasonhaxstuff / popyt

Licence: Unlicense License
A very easy to use Youtube Data v3 API wrapper.

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to popyt

PowerSchool-API
A Node.js library for interacting with the PowerSchool SIS API.
Stars: ✭ 21 (-50%)
Mutual labels:  wrapper, api-wrapper
GraphiPy
GraphiPy: Universal Social Data Extractor
Stars: ✭ 61 (+45.24%)
Mutual labels:  youtube-api, api-wrapper
search-youtube
An Android App used for searching and playing videos from YouTube. Used: Youtube Data API v3, YouTube Player API
Stars: ✭ 24 (-42.86%)
Mutual labels:  youtube-api, youtube-data-api
Binancedotnet
Official C# Wrapper for the Binance exchange API, with REST and WebSocket endpoints
Stars: ✭ 102 (+142.86%)
Mutual labels:  wrapper, api-wrapper
HerePy
A library that provides a Python interface to the HERE APIs.
Stars: ✭ 73 (+73.81%)
Mutual labels:  wrapper, api-wrapper
Tlaw
The Last API Wrapper: Pragmatic API wrapper framework
Stars: ✭ 112 (+166.67%)
Mutual labels:  wrapper, api-wrapper
activecampaign-python
ActiveCampaign API wrapper written in python.
Stars: ✭ 25 (-40.48%)
Mutual labels:  wrapper, api-wrapper
Python Poloniex
Poloniex API wrapper for Python 2.7 & 3
Stars: ✭ 557 (+1226.19%)
Mutual labels:  wrapper, api-wrapper
routeros-client
Abstraction layer over the node-routeros API
Stars: ✭ 63 (+50%)
Mutual labels:  wrapper, promise
node-youtube-music
Unofficial YouTube Music API for Node.js
Stars: ✭ 34 (-19.05%)
Mutual labels:  youtube-api, api-wrapper
Discord.jl
The Julia Discord API Wrapper
Stars: ✭ 93 (+121.43%)
Mutual labels:  wrapper, api-wrapper
Pyblox
An API wrapper for Roblox written in Python. (Receives Updates)
Stars: ✭ 30 (-28.57%)
Mutual labels:  wrapper, api-wrapper
Ws Wrapper
Lightweight WebSocket lib with socket.io-like event handling, requests, and channels
Stars: ✭ 58 (+38.1%)
Mutual labels:  wrapper, promise
Await Of
await wrapper for easier errors handling without try-catch
Stars: ✭ 240 (+471.43%)
Mutual labels:  wrapper, promise
Golang Tmdb
This is a Golang wrapper for working with TMDb API. It aims to support version 3.
Stars: ✭ 36 (-14.29%)
Mutual labels:  wrapper, api-wrapper
nanoleaf-aurora
A java wrapper for the Nanoleaf Aurora API
Stars: ✭ 19 (-54.76%)
Mutual labels:  wrapper, api-wrapper
Pycoingecko
Python wrapper for the CoinGecko API
Stars: ✭ 270 (+542.86%)
Mutual labels:  wrapper, api-wrapper
Cuda Api Wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
Stars: ✭ 362 (+761.9%)
Mutual labels:  wrapper, api-wrapper
of
🍬 Promise wrapper with sugar 🍬
Stars: ✭ 13 (-69.05%)
Mutual labels:  wrapper, promise
discord.bat
🗑️ the BEST discord lib
Stars: ✭ 38 (-9.52%)
Mutual labels:  wrapper, api-wrapper

popyt

Want to access data from the YouTube Data v3 API? Want a Node.js YouTube API wrapper with typings, promises, and caching? No problem! We've got ya covered. npm i popyt

GitHub issues GitHub stars GitHub license Coverage status Actions status DeepScan grade Downloads Version

Examples

See the documentation.

Here are some basic methods:

Instantiate the object:

const { YouTube } = require('popyt')
const youtube = new YouTube(apiKey)

Instantiate the object without caching:

const { YouTube } = require('popyt')
const youtube = new YouTube(apiKey, undefined, { cache: false })

Get a video by ID:

const video = await youtube.getVideo('dQw4w9WgXcQ')
console.log(video)

You can do the same thing with playlists, channels, and comments by replacing Video with any of them.

Get a video by URL:

const video = await youtube.getVideo('https://youtube.com/watch?v=dQw4w9WgXcQ')
console.log(video)

Get a video by title (or similar title):

const video = await youtube.getVideo('never gonna give you up')
console.log(video)

Search videos:

const videos = await youtube.searchVideos('never gonna give you up', 12)
console.log(videos) // array of 12 partial video objects

Note: This wrapper does not implement every feature of the YouTube API. If you would like anything added, feel free to open an issue. The limits imposed by the wrapper are not imposed by YouTube.

Development/Contributing

Before committing:

  • Run yarn lint.
  • Run yarn coverage or npm run coverage to check if you've added enough tests. It should display 100% statement, line, and branch coverage.
  • Also, make sure that every test passes.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].