UNPKG

ytsearcher

Version:

A nodejs package that provides an easy-to-use promise-based system of getting youtube search results

46 lines (43 loc) 860 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.validOptions = [].concat(...[ [ //required: 'part', ], [ //filters: 'forContentOwner', 'forDeveloper', 'forMine', 'relatedToVideoId', ], [ //optional: 'channelId', 'channelType', 'eventType', 'fields', 'location', 'locationRadius', 'maxResults', 'onBehalfOfContentOwner', 'order', 'pageToken', 'publishedAfter', 'publishedBefore', 'q', 'regionCode', 'relevanceLanguage', 'safeSearch', 'topicId', 'type', 'videoCaption', 'videoCategoryId', 'videoDefinition', 'videoDimension', 'videoDuration', 'videoEmbeddable', 'videoLicense', 'videoSyndicated', 'videoType', ], ]); exports.apiurl = 'https://www.googleapis.com/youtube/v3/search?';