Class PagespeedapiResource.RunpagespeedRequest
Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.
Inheritance
Inherited Members
Namespace: Google.Apis.PagespeedInsights.v5
Assembly: Google.Apis.PagespeedInsights.v5.dll
Syntax
public class PagespeedapiResource.RunpagespeedRequest : PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>, IClientServiceRequest<PagespeedApiPagespeedResponseV5>, IClientServiceRequest
Constructors
RunpagespeedRequest(IClientService, string)
Constructs a new Runpagespeed request.
Declaration
public RunpagespeedRequest(IClientService service, string url)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | url |
Properties
CaptchaToken
The captcha token passed when filling out a captcha.
Declaration
[RequestParameter("captchaToken", RequestParameterType.Query)]
public virtual string CaptchaToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Category
A Lighthouse category to run; if none are given, only Performance category will be run
Declaration
[RequestParameter("category", RequestParameterType.Query)]
public virtual PagespeedapiResource.RunpagespeedRequest.CategoryEnum? Category { get; set; }
Property Value
| Type | Description |
|---|---|
| PagespeedapiResource.RunpagespeedRequest.CategoryEnum? |
Remarks
Use this property to set a single value for the parameter, or CategoryList to set multiple values. Do not set both properties.
CategoryList
A Lighthouse category to run; if none are given, only Performance category will be run
Declaration
[RequestParameter("category", RequestParameterType.Query)]
public virtual Repeatable<PagespeedapiResource.RunpagespeedRequest.CategoryEnum> CategoryList { get; set; }
Property Value
| Type | Description |
|---|---|
| Repeatable<PagespeedapiResource.RunpagespeedRequest.CategoryEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and Category.
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Locale
The locale used to localize formatted results
Declaration
[RequestParameter("locale", RequestParameterType.Query)]
public virtual string Locale { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Strategy
The analysis strategy (desktop or mobile) to use, and desktop is the default
Declaration
[RequestParameter("strategy", RequestParameterType.Query)]
public virtual PagespeedapiResource.RunpagespeedRequest.StrategyEnum? Strategy { get; set; }
Property Value
| Type | Description |
|---|---|
| PagespeedapiResource.RunpagespeedRequest.StrategyEnum? |
Url
Required. The URL to fetch and analyze
Declaration
[RequestParameter("url", RequestParameterType.Query)]
public virtual string Url { get; }
Property Value
| Type | Description |
|---|---|
| string |
UtmCampaign
Campaign name for analytics.
Declaration
[RequestParameter("utm_campaign", RequestParameterType.Query)]
public virtual string UtmCampaign { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UtmSource
Campaign source for analytics.
Declaration
[RequestParameter("utm_source", RequestParameterType.Query)]
public virtual string UtmSource { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
InitParameters()
Initializes Runpagespeed parameter list.
Declaration
protected override void InitParameters()