Description Usage Arguments Details Value
Extract youtube trends of most popular or most viewed by country .
1 | geTrends(chart = "mostPopular", regionCode, api_key, maxResults = 5)
|
chart |
:The chart parameter identifies the chart that you want to retrieve. (string) like 'mostPopular' |
regionCode |
: string The regionCode parameter instructs the API to select a video chart available in the specified region. This parameter can only be used in conjunction with the chart parameter. The parameter value is an ISO 3166-1 alpha-2 country code https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Current_codes |
api_key |
: Google API key |
maxResults |
unsigned integer . The maxResults parameter specifies the maximum number of items that should be returned in the result set. Note: This parameter is supported for use in conjunction with the myRating parameter, but it is not supported for use in conjunction with the id parameter. Acceptable values are 1 to 50, inclusive. The default value is 5. |
part |
The part parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set part=snippet, the API response will contain all of those properties. |
For most popular video
Data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.