Global

Methods

parseURL(url) → {Object}

Parse a string as a potential YouTube resource URL.
Source:
Parameters:
Name Type Description
url string
Returns:
Type:
Object

Type Definitions

DurationObject

An object containing time period information. All properties are integers, and do not include the lower precision ones.
Properties:
Name Type Attributes Description
hours number <optional>
How many hours the video is long
minutes number <optional>
How many minutes the video is long
seconds number <optional>
How many seconds the video is long
Source:
Type:
  • Object

Thumbnail

Information about a thumbnail
Properties:
Name Type Description
url string The URL of this thumbnail
width number The width of this thumbnail
height number The height of this thumbnail
Source:
Type:
  • Object