Show / Hide Table of Contents

Class SearchResource.ListRequest

Retrieves a list of search resources

Inheritance
object
ClientServiceRequest
ClientServiceRequest<SearchListResponse>
YouTubeBaseServiceRequest<SearchListResponse>
SearchResource.ListRequest
Implements
IClientServiceRequest<SearchListResponse>
IClientServiceRequest
Inherited Members
YouTubeBaseServiceRequest<SearchListResponse>.Xgafv
YouTubeBaseServiceRequest<SearchListResponse>.AccessToken
YouTubeBaseServiceRequest<SearchListResponse>.Alt
YouTubeBaseServiceRequest<SearchListResponse>.Callback
YouTubeBaseServiceRequest<SearchListResponse>.Fields
YouTubeBaseServiceRequest<SearchListResponse>.Key
YouTubeBaseServiceRequest<SearchListResponse>.OauthToken
YouTubeBaseServiceRequest<SearchListResponse>.PrettyPrint
YouTubeBaseServiceRequest<SearchListResponse>.QuotaUser
YouTubeBaseServiceRequest<SearchListResponse>.UploadType
YouTubeBaseServiceRequest<SearchListResponse>.UploadProtocol
ClientServiceRequest<SearchListResponse>.Execute()
ClientServiceRequest<SearchListResponse>.ExecuteAsStream()
ClientServiceRequest<SearchListResponse>.ExecuteAsync()
ClientServiceRequest<SearchListResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<SearchListResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<SearchListResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<SearchListResponse>.CreateRequest(bool?)
ClientServiceRequest<SearchListResponse>.GenerateRequestUri()
ClientServiceRequest<SearchListResponse>.GetBody()
ClientServiceRequest<SearchListResponse>.GetDefaultETagAction(string)
ClientServiceRequest<SearchListResponse>.ETagAction
ClientServiceRequest<SearchListResponse>.ModifyRequest
ClientServiceRequest<SearchListResponse>.ValidateParameters
ClientServiceRequest<SearchListResponse>.ApiVersion
ClientServiceRequest<SearchListResponse>.RequestParameters
ClientServiceRequest<SearchListResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class SearchResource.ListRequest : YouTubeBaseServiceRequest<SearchListResponse>, IClientServiceRequest<SearchListResponse>, IClientServiceRequest

Constructors

ListRequest(IClientService, Repeatable<string>)

Constructs a new List request.

Declaration
public ListRequest(IClientService service, Repeatable<string> part)
Parameters
Type Name Description
IClientService service
Repeatable<string> part

Properties

ChannelId

Filter on resources belonging to this channelId.

Declaration
[RequestParameter("channelId", RequestParameterType.Query)]
public virtual string ChannelId { get; set; }
Property Value
Type Description
string

ChannelType

Add a filter on the channel search.

Declaration
[RequestParameter("channelType", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.ChannelTypeEnum? ChannelType { get; set; }
Property Value
Type Description
SearchResource.ListRequest.ChannelTypeEnum?

EventType

Filter on the livestream status of the videos.

Declaration
[RequestParameter("eventType", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.EventTypeEnum? EventType { get; set; }
Property Value
Type Description
SearchResource.ListRequest.EventTypeEnum?

ForContentOwner

Search owned by a content owner.

Declaration
[RequestParameter("forContentOwner", RequestParameterType.Query)]
public virtual bool? ForContentOwner { get; set; }
Property Value
Type Description
bool?

ForDeveloper

Restrict the search to only retrieve videos uploaded using the project id of the authenticated user.

Declaration
[RequestParameter("forDeveloper", RequestParameterType.Query)]
public virtual bool? ForDeveloper { get; set; }
Property Value
Type Description
bool?

ForMine

Search for the private videos of the authenticated user.

Declaration
[RequestParameter("forMine", RequestParameterType.Query)]
public virtual bool? ForMine { get; set; }
Property Value
Type Description
bool?

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<SearchListResponse>.HttpMethod

Location

Filter on location of the video

Declaration
[RequestParameter("location", RequestParameterType.Query)]
public virtual string Location { get; set; }
Property Value
Type Description
string

LocationRadius

Filter on distance from the location (specified above).

Declaration
[RequestParameter("locationRadius", RequestParameterType.Query)]
public virtual string LocationRadius { get; set; }
Property Value
Type Description
string

MaxResults

The maxResults parameter specifies the maximum number of items that should be returned in the result set.

Declaration
[RequestParameter("maxResults", RequestParameterType.Query)]
public virtual long? MaxResults { get; set; }
Property Value
Type Description
long?

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<SearchListResponse>.MethodName

OnBehalfOfContentOwner

Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Declaration
[RequestParameter("onBehalfOfContentOwner", RequestParameterType.Query)]
public virtual string OnBehalfOfContentOwner { get; set; }
Property Value
Type Description
string

Order

Sort order of the results.

Declaration
[RequestParameter("order", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.OrderEnum? Order { get; set; }
Property Value
Type Description
SearchResource.ListRequest.OrderEnum?

PageToken

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.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
string

Part

The part parameter specifies a comma-separated list of one or more search resource properties that the API response will include. Set the parameter value to snippet.

Declaration
[RequestParameter("part", RequestParameterType.Query)]
public virtual Repeatable<string> Part { get; }
Property Value
Type Description
Repeatable<string>

PublishedAfter

object representation of PublishedAfterRaw.

Declaration
[Obsolete("This property is obsolete and may behave unexpectedly; please use PublishedAfterDateTimeOffset instead.")]
public virtual object PublishedAfter { get; set; }
Property Value
Type Description
object

PublishedAfterDateTimeOffset

Declaration
public virtual DateTimeOffset? PublishedAfterDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

PublishedAfterRaw

String representation of PublishedAfterDateTimeOffset, formatted for inclusion in the HTTP request.

Declaration
[RequestParameter("publishedAfter", RequestParameterType.Query)]
public virtual string PublishedAfterRaw { get; }
Property Value
Type Description
string

PublishedBefore

object representation of PublishedBeforeRaw.

Declaration
[Obsolete("This property is obsolete and may behave unexpectedly; please use PublishedBeforeDateTimeOffset instead.")]
public virtual object PublishedBefore { get; set; }
Property Value
Type Description
object

PublishedBeforeDateTimeOffset

Declaration
public virtual DateTimeOffset? PublishedBeforeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

PublishedBeforeRaw

String representation of PublishedBeforeDateTimeOffset, formatted for inclusion in the HTTP request.

Declaration
[RequestParameter("publishedBefore", RequestParameterType.Query)]
public virtual string PublishedBeforeRaw { get; }
Property Value
Type Description
string

Q

Textual search terms to match.

Declaration
[RequestParameter("q", RequestParameterType.Query)]
public virtual string Q { get; set; }
Property Value
Type Description
string

RegionCode

Display the content as seen by viewers in this country.

Declaration
[RequestParameter("regionCode", RequestParameterType.Query)]
public virtual string RegionCode { get; set; }
Property Value
Type Description
string

RelevanceLanguage

Return results relevant to this language.

Declaration
[RequestParameter("relevanceLanguage", RequestParameterType.Query)]
public virtual string RelevanceLanguage { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<SearchListResponse>.RestPath

SafeSearch

Indicates whether the search results should include restricted content as well as standard content.

Declaration
[RequestParameter("safeSearch", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.SafeSearchEnum? SafeSearch { get; set; }
Property Value
Type Description
SearchResource.ListRequest.SafeSearchEnum?

TopicId

Restrict results to a particular topic.

Declaration
[RequestParameter("topicId", RequestParameterType.Query)]
public virtual string TopicId { get; set; }
Property Value
Type Description
string

Type

Restrict results to a particular set of resource types from One Platform.

Declaration
[RequestParameter("type", RequestParameterType.Query)]
public virtual Repeatable<string> Type { get; set; }
Property Value
Type Description
Repeatable<string>

VideoCaption

Filter on the presence of captions on the videos.

Declaration
[RequestParameter("videoCaption", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoCaptionEnum? VideoCaption { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoCaptionEnum?

VideoCategoryId

Filter on videos in a specific category.

Declaration
[RequestParameter("videoCategoryId", RequestParameterType.Query)]
public virtual string VideoCategoryId { get; set; }
Property Value
Type Description
string

VideoDefinition

Filter on the definition of the videos.

Declaration
[RequestParameter("videoDefinition", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoDefinitionEnum? VideoDefinition { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoDefinitionEnum?

VideoDimension

Filter on 3d videos.

Declaration
[RequestParameter("videoDimension", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoDimensionEnum? VideoDimension { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoDimensionEnum?

VideoDuration

Filter on the duration of the videos.

Declaration
[RequestParameter("videoDuration", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoDurationEnum? VideoDuration { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoDurationEnum?

VideoEmbeddable

Filter on embeddable videos.

Declaration
[RequestParameter("videoEmbeddable", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoEmbeddableEnum? VideoEmbeddable { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoEmbeddableEnum?

VideoLicense

Filter on the license of the videos.

Declaration
[RequestParameter("videoLicense", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoLicenseEnum? VideoLicense { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoLicenseEnum?

VideoPaidProductPlacement

Declaration
[RequestParameter("videoPaidProductPlacement", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoPaidProductPlacementEnum? VideoPaidProductPlacement { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoPaidProductPlacementEnum?

VideoSyndicated

Filter on syndicated videos.

Declaration
[RequestParameter("videoSyndicated", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoSyndicatedEnum? VideoSyndicated { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoSyndicatedEnum?

VideoType

Filter on videos of a specific type.

Declaration
[RequestParameter("videoType", RequestParameterType.Query)]
public virtual SearchResource.ListRequest.VideoTypeEnum? VideoType { get; set; }
Property Value
Type Description
SearchResource.ListRequest.VideoTypeEnum?

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
YouTubeBaseServiceRequest<SearchListResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX