listyoutubevideos - List YouTube Videos
Returns a list of videos that match the API request parameters.
credentialKey
string
Your 1001fx credential key. See https://1001fx.com/app/credentials/list
Example:
yourCredentialKey
chart
object
Filters videos based on the chart filter. One of chart, id or myRating needs to be provided.
Example:
{
"chart": "mostPopular",
"regionCode": "DE",
"videoCategoryId": "20"
}
chart
string
The chart parameter identifies the chart that you want to retrieve. - mostPopular: Return the most popular videos for the specified content region and video category.
Possible values are: mostPopular
Example:
mostPopular
regionCode
string
The regionCode parameter instructs the API to select a video chart available in the specified region. The parameter value is an ISO 3166-1 alpha-2 country code. See https://1001fx.com/functions/listyoutubei18nregions.
Example:
DE
videoCategoryId
string
The videoCategoryId parameter identifies the video category for which the chart should be retrieved. By default, charts are not restricted to a particular category. The default value is 0.
Example:
DE
pageToken
string
The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
id
object
Filters videos based on the id filter. One of chart, id or myRating needs to be provided.
Example:
{
"videoIds": [
"kJQP7kiw5Fk",
"JGwWNGJdvx8"
]
}
videoIds
array
The videoIds parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the videos ID.
Example:
[
"kJQP7kiw5Fk",
"JGwWNGJdvx8"
]
myRating
object
Filters videos based on the myRating filter. One of chart, id or myRating needs to be provided.
Example:
{
"myRating": "like",
"maxResults": 2
}
myRating
string
Set this parameters value to like or dislike to instruct the API to only return videos liked or disliked by the authenticated user. - dislike: Returns only videos disliked by the authenticated user.. - like: Returns only video liked by the authenticated user.
Possible values are: dislike, like
Example:
like
maxResults
number
Specifies the maximum number of items that should be returned in the result set. Defaults to 5.
Minimum: 1
Maximum: 50
Example:
2
pageToken
string
The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
hl
string
The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by the i18nLanguages.list method. If localized resource details are available in that language, the resources snippet.localized object will contain the localized values. However, if localized details are not available, the snippet.localized object will contain resource details in the resourcess default language. See https://1001fx.com/functions/listyoutubei18nlanguages.
Example:
de
maxWidth
number
The maxWidth parameter specifies the maximum width of the embedded player returned in the player.embedHtml property. You can use this parameter to specify that instead of the default dimensions, the embed code should use a width appropriate for your application layout. If the maxHeight parameter is also provided, the player may be narrower than maxWidth in order to not violate the maximum height.
Minimum: 72
Maximum: 8192
Example:
1920
maxHeight
number
The maxHeight parameter specifies the maximum height of the embedded player returned in the player.embedHtml property. You can use this parameter to specify that instead of the default dimensions, the embed code should use a height appropriate for your application layout. If the maxWidth parameter is also provided, the player may be shorter than the maxHeight in order to not violate the maximum width.
Minimum: 72
Maximum: 8192
Example:
1080