Server created to proxy some requests to YouTube using rotating keys. It is designed for personal use only and will not scale past a few users.
Name | Type | Comment | Default |
---|---|---|---|
HOSTNAME | String | Address of server, used by dokku to forward connection | localhost |
PORT | String | Port of server, used by dokku to forward connection | 3001 |
YOUTUBE_KEYS | String | Comma separated list of YouTube API keys, these are rotated on each use | N/A |
API_KEY | String | The API key needed to use this server | N/A |
Get the key quota status
Object of key number to remaining quota
{
"0": 5400,
"1": 10000
}
Param | Type | Comment |
---|---|---|
type | String | Must be 'channel', 'playlist' or 'video' |
Query | Type | Comment |
---|---|---|
q | String | Search term |
Field | Type | Comment |
---|---|---|
list | Array<Video, Channel or Playlist> | List of search results |
Field | Type | Comment |
---|---|---|
id | String | YouTube ID of channel |
title | String | Channel Title |
thumbnail | String | URL of YouTube channel thumbnail |
Field | Type | Comment |
---|---|---|
id | String | YouTube ID of video |
channelId | String | Channel ID |
channelTitle | String | Channel Title |
title | String | Video name |
thumbnail | String | URL of YouTube thumbnail |
date | String | Video publish date |
Field | Type | Comment |
---|---|---|
id | String | YouTube ID of playlist |
name | String | Playlist name |
channelId | String | Channel ID |
channelTitle | String | Channel Title |
thumbnail | String | URL of YouTube thumbnail |
[
{
"title": "Example Video",
"id": "grjytegdg",
"thumbnail": "https://youtube.com/media/5hjhrtjhe",
"channelId": "j75erhethr",
"channelTitle": "Example Channel"
}
]
Copyright 2020 Ray Britton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.