Skip to main content

pageview_counts

Creates, updates, deletes, gets or lists a pageview_counts resource.

Overview

Namepageview_counts
TypeResource
Idvercel.web_analytics.pageview_counts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ai_gateway_model_idstring (wire: aiGatewayModelId)
asn_idstring (wire: asnId)
deployment_idstring (wire: deploymentId)
entry_idstring (wire: entryId)
entry_item_idstring (wire: entryItemId)
environment_idstring (wire: environmentId)
generation_idstring (wire: generationId)
key_idstring (wire: keyId)
message_idstring (wire: messageId)
microfrontends_default_app_deployment_idstring (wire: microfrontendsDefaultAppDeploymentId)
microfrontends_default_app_project_idstring (wire: microfrontendsDefaultAppProjectId)
network_idstring (wire: networkId)
privatelink_endpoint_idstring (wire: privatelinkEndpointId)
project_idstring (wire: projectId)
quota_entity_idstring (wire: quotaEntityId)
reporting_project_idstring (wire: reportingProjectId)
request_idstring (wire: requestId)
sandbox_session_idstring (wire: sandboxSessionId)
sdk_key_idstring (wire: sdkKeyId)
session_idstring (wire: sessionId)
step_run_idstring (wire: stepRunId)
store_idstring (wire: storeId)
visitor_idstring (wire: visitorId)
waf_rule_idstring (wire: wafRuleId)
workflow_run_idstring (wire: workflowRunId)
app_namestring (wire: appName)
asn_namestring (wire: asnName)
attribution_event_namestring (wire: attributionEventName)
bot_namestring (wire: botName)
browser_namestring (wire: browserName)
entry_namestring (wire: entryName)
event_namestring (wire: eventName)
flag_client_namestring (wire: flagClientName)
key_namestring (wire: keyName)
metric_namestring (wire: metricName)
os_namestring (wire: osName)
privatelink_dns_namestring (wire: privatelinkDnsName)
project_namestring (wire: projectName)
queue_namestring (wire: queueName)
reporting_project_namestring (wire: reportingProjectName)
repository_namestring (wire: repositoryName)
sandbox_namestring (wire: sandboxName)
server_action_namestring (wire: serverActionName)
store_namestring (wire: storeName)
tag_namestring (wire: tagName)
workflow_namestring (wire: workflowName)
workflow_step_namestring (wire: workflowStepName)
ai_modelstring (wire: aiModel)
ai_model_typestring (wire: aiModelType)
ai_providerstring (wire: aiProvider)
attributesstring
attribution_targetstring (wire: attributionTarget)
auth_methodstring (wire: authMethod)
billable_regionstring (wire: billableRegion)
blob_operation_levelstring (wire: blobOperationLevel)
blob_operation_typestring (wire: blobOperationType)
bot_categorystring (wire: botCategory)
bot_category_legacystring (wire: botCategoryLegacy)
bot_check_resultstring (wire: botCheckResult)
bot_verifiedstring (wire: botVerified)
cache_apistring (wire: cacheApi)
cache_creation_1h_input_tokens_currencystring (wire: cacheCreation1hInputTokensCurrency)
cache_creation_input_tokens_currencystring (wire: cacheCreationInputTokensCurrency)
cache_hit_levelstring (wire: cacheHitLevel)
cache_hit_statestring (wire: cacheHitState)
cache_hostnamestring (wire: cacheHostname)
cache_operationstring (wire: cacheOperation)
cache_pathstring (wire: cachePath)
cache_reasonstring (wire: cacheReason)
cache_resultstring (wire: cacheResult)
cache_tagsstring (wire: cacheTags)
cached_input_tokens_currencystring (wire: cachedInputTokensCurrency)
causestring
client_ipstring (wire: clientIp)
client_ip_countrystring (wire: clientIpCountry)
client_ja_4_digeststring (wire: clientJa4Digest)
client_user_agentstring (wire: clientUserAgent)
coding_agentstring (wire: codingAgent)
commit_shastring (wire: commitSha)
consumer_groupstring (wire: consumerGroup)
content_capture_inputsstring (wire: contentCaptureInputs)
content_capture_outputsstring (wire: contentCaptureOutputs)
content_capture_statusstring (wire: contentCaptureStatus)
content_typestring (wire: contentType)
cost_currencystring (wire: costCurrency)
countrystring
data_cache_regionstring (wire: dataCacheRegion)
deep_analysis_checkstring (wire: deepAnalysisCheck)
device_typestring (wire: deviceType)
directionstring
edge_network_regionstring (wire: edgeNetworkRegion)
edge_typestring (wire: edgeType)
entry_revalidate_secondsstring (wire: entryRevalidateSeconds)
environmentstring
error_codestring (wire: errorCode)
error_messagestring (wire: errorMessage)
event_datastring (wire: eventData)
event_typestring (wire: eventType)
external_rewrite_target_hoststring (wire: externalRewriteTargetHost)
external_rewrite_target_pathstring (wire: externalRewriteTargetPath)
fetch_indexstring (wire: fetchIndex)
fetch_typestring (wire: fetchType)
flag_evaluation_reasonstring (wire: flagEvaluationReason)
flag_keystring (wire: flagKey)
flag_variantstring (wire: flagVariant)
flagsstring
function_dispatcherstring (wire: functionDispatcher)
function_regionstring (wire: functionRegion)
function_start_typestring (wire: functionStartType)
gateway_cost_currencystring (wire: gatewayCostCurrency)
hipaa_requestedstring (wire: hipaaRequested)
http_acceptstring (wire: httpAccept)
http_statusstring (wire: httpStatus)
image_sourcestring (wire: imageSource)
image_transformation_regionstring (wire: imageTransformationRegion)
inference_endpoint_slugstring (wire: inferenceEndpointSlug)
inference_geo_regionstring (wire: inferenceGeoRegion)
inference_provider_regionstring (wire: inferenceProviderRegion)
inference_scopestring (wire: inferenceScope)
is_additional_requeststring (wire: isAdditionalRequest)
is_byokstring (wire: isByok)
is_prefetch_requeststring (wire: isPrefetchRequest)
is_private_modelstring (wire: isPrivateModel)
is_request_zdrstring (wire: isRequestZdr)
is_streamingstring (wire: isStreaming)
isr_actionstring (wire: isrAction)
isr_cache_regionstring (wire: isrCacheRegion)
market_cost_currencystring (wire: marketCostCurrency)
microfrontends_matched_pathstring (wire: microfrontendsMatchedPath)
microfrontends_response_reasonstring (wire: microfrontendsResponseReason)
middleware_actionstring (wire: middlewareAction)
middleware_action_targetstring (wire: middlewareActionTarget)
moderation_appliedstring (wire: moderationApplied)
network_tenancystring (wire: networkTenancy)
notification_urlstring (wire: notificationUrl)
optimized_format_mime_typestring (wire: optimizedFormatMimeType)
optimized_qualitystring (wire: optimizedQuality)
optimized_width_pixelsstring (wire: optimizedWidthPixels)
origin_hostnamestring (wire: originHostname)
origin_pathstring (wire: originPath)
origin_routestring (wire: originRoute)
pageviewsnumber
path_typestring (wire: pathType)
path_type_variantstring (wire: pathTypeVariant)
pii_redaction_appliedstring (wire: piiRedactionApplied)
ppr_statestring (wire: pprState)
privatelink_ip_addressstring (wire: privatelinkIpAddress)
providerstring
provider_attempt_canonical_slugstring (wire: providerAttemptCanonicalSlug)
provider_attempt_credential_typestring (wire: providerAttemptCredentialType)
provider_attempt_dev_safety_identifierstring (wire: providerAttemptDevSafetyIdentifier)
provider_attempt_errorstring (wire: providerAttemptError)
provider_attempt_is_finalstring (wire: providerAttemptIsFinal)
provider_attempt_model_indexstring (wire: providerAttemptModelIndex)
provider_attempt_numberstring (wire: providerAttemptNumber)
provider_attempt_regionstring (wire: providerAttemptRegion)
provider_attempt_safety_identifierstring (wire: providerAttemptSafetyIdentifier)
provider_attempt_status_codestring (wire: providerAttemptStatusCode)
provider_attempt_successstring (wire: providerAttemptSuccess)
provider_attempt_timeoutstring (wire: providerAttemptTimeout)
provider_attempt_total_in_requeststring (wire: providerAttemptTotalInRequest)
pull_request_numberstring (wire: pullRequestNumber)
pull_request_statestring (wire: pullRequestState)
queue_regionstring (wire: queueRegion)
quota_entity_typestring (wire: quotaEntityType)
quota_requestedstring (wire: quotaRequested)
reasonstring
redirect_locationstring (wire: redirectLocation)
referrer_hostnamestring (wire: referrerHostname)
referrer_urlstring (wire: referrerUrl)
regionstring
repository_ownerstring (wire: repositoryOwner)
request_apistring (wire: requestApi)
request_extensionstring (wire: requestExtension)
request_hostnamestring (wire: requestHostname)
request_methodstring (wire: requestMethod)
request_pathstring (wire: requestPath)
request_resolved_ipstring (wire: requestResolvedIp)
requested_inference_regionstring (wire: requestedInferenceRegion)
review_conclusionstring (wire: reviewConclusion)
review_statusstring (wire: reviewStatus)
rewrite_destination_hostnamestring (wire: rewriteDestinationHostname)
routestring
rule_categorystring (wire: ruleCategory)
runtimestring
sdk_key_environmentstring (wire: sdkKeyEnvironment)
served_speedstring (wire: servedSpeed)
servicestring
skew_protectionstring (wire: skewProtection)
sourcestring
source_imagestring (wire: sourceImage)
source_image_hashstring (wire: sourceImageHash)
source_image_hostnamestring (wire: sourceImageHostname)
source_image_pathnamestring (wire: sourceImagePathname)
spec_versionstring (wire: specVersion)
spend_attributionstring (wire: spendAttribution)
spend_report_date_partstring (wire: spendReportDatePart)
spend_report_group_bystring (wire: spendReportGroupBy)
surcharge_cost_currencystring (wire: surchargeCostCurrency)
tool_call_error_typestring (wire: toolCallErrorType)
tool_call_providerstring (wire: toolCallProvider)
tool_call_status_codestring (wire: toolCallStatusCode)
tool_call_successstring (wire: toolCallSuccess)
tool_call_typestring (wire: toolCallType)
traffic_sourcestring (wire: trafficSource)
transcript_inputsstring (wire: transcriptInputs)
transcript_outputsstring (wire: transcriptOutputs)
transcript_statusstring (wire: transcriptStatus)
triggering_tagstring (wire: triggeringTag)
utm_campaignstring (wire: utmCampaign)
utm_contentstring (wire: utmContent)
utm_mediumstring (wire: utmMedium)
utm_sourcestring (wire: utmSource)
utm_termstring (wire: utmTerm)
vdc_operation_originstring (wire: vdcOperationOrigin)
video_aspect_ratiostring (wire: videoAspectRatio)
video_resolutionstring (wire: videoResolution)
virtual_model_kindstring (wire: virtualModelKind)
virtual_model_slugstring (wire: virtualModelSlug)
visitorsnumber
waf_actionstring (wire: wafAction)
workflow_event_typestring (wire: workflowEventType)
workflow_statusstring (wire: workflowStatus)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idsince, until, filter, team_id, slugCounts the number of page views on a project (production only), since Web Analytics was enabled. Results can be filtered on supported dimensions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
project_idstringThe project identifier or the project name (wire: projectId)
filterstringOData-compliant filter. Encode the value when sending it in a URL. Allows filtering on one or multiple dimensions. Supported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm. JSON dimensions filtered by key: flags/<name>, for example flags/beta_banner eq 'true'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'. Supported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.
sinceTimestamp in milliseconds, or a valid Date string. Selects data from (including) this date and time. Will be adjusted according to the desired time granularity.
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)
untilTimestamp in milliseconds, or a valid Date string. Selects data until (including) this date. Will be adjusted according to the desired time granularity.

SELECT examples

Counts the number of page views on a project (production only), since Web Analytics was enabled. Results can be filtered on supported dimensions.

SELECT
ai_gateway_model_id,
asn_id,
deployment_id,
entry_id,
entry_item_id,
environment_id,
generation_id,
key_id,
message_id,
microfrontends_default_app_deployment_id,
microfrontends_default_app_project_id,
network_id,
privatelink_endpoint_id,
project_id,
quota_entity_id,
reporting_project_id,
request_id,
sandbox_session_id,
sdk_key_id,
session_id,
step_run_id,
store_id,
visitor_id,
waf_rule_id,
workflow_run_id,
app_name,
asn_name,
attribution_event_name,
bot_name,
browser_name,
entry_name,
event_name,
flag_client_name,
key_name,
metric_name,
os_name,
privatelink_dns_name,
project_name,
queue_name,
reporting_project_name,
repository_name,
sandbox_name,
server_action_name,
store_name,
tag_name,
workflow_name,
workflow_step_name,
ai_model,
ai_model_type,
ai_provider,
attributes,
attribution_target,
auth_method,
billable_region,
blob_operation_level,
blob_operation_type,
bot_category,
bot_category_legacy,
bot_check_result,
bot_verified,
cache_api,
cache_creation_1h_input_tokens_currency,
cache_creation_input_tokens_currency,
cache_hit_level,
cache_hit_state,
cache_hostname,
cache_operation,
cache_path,
cache_reason,
cache_result,
cache_tags,
cached_input_tokens_currency,
cause,
client_ip,
client_ip_country,
client_ja_4_digest,
client_user_agent,
coding_agent,
commit_sha,
consumer_group,
content_capture_inputs,
content_capture_outputs,
content_capture_status,
content_type,
cost_currency,
country,
data_cache_region,
deep_analysis_check,
device_type,
direction,
edge_network_region,
edge_type,
entry_revalidate_seconds,
environment,
error_code,
error_message,
event_data,
event_type,
external_rewrite_target_host,
external_rewrite_target_path,
fetch_index,
fetch_type,
flag_evaluation_reason,
flag_key,
flag_variant,
flags,
function_dispatcher,
function_region,
function_start_type,
gateway_cost_currency,
hipaa_requested,
http_accept,
http_status,
image_source,
image_transformation_region,
inference_endpoint_slug,
inference_geo_region,
inference_provider_region,
inference_scope,
is_additional_request,
is_byok,
is_prefetch_request,
is_private_model,
is_request_zdr,
is_streaming,
isr_action,
isr_cache_region,
market_cost_currency,
microfrontends_matched_path,
microfrontends_response_reason,
middleware_action,
middleware_action_target,
moderation_applied,
network_tenancy,
notification_url,
optimized_format_mime_type,
optimized_quality,
optimized_width_pixels,
origin_hostname,
origin_path,
origin_route,
pageviews,
path_type,
path_type_variant,
pii_redaction_applied,
ppr_state,
privatelink_ip_address,
provider,
provider_attempt_canonical_slug,
provider_attempt_credential_type,
provider_attempt_dev_safety_identifier,
provider_attempt_error,
provider_attempt_is_final,
provider_attempt_model_index,
provider_attempt_number,
provider_attempt_region,
provider_attempt_safety_identifier,
provider_attempt_status_code,
provider_attempt_success,
provider_attempt_timeout,
provider_attempt_total_in_request,
pull_request_number,
pull_request_state,
queue_region,
quota_entity_type,
quota_requested,
reason,
redirect_location,
referrer_hostname,
referrer_url,
region,
repository_owner,
request_api,
request_extension,
request_hostname,
request_method,
request_path,
request_resolved_ip,
requested_inference_region,
review_conclusion,
review_status,
rewrite_destination_hostname,
route,
rule_category,
runtime,
sdk_key_environment,
served_speed,
service,
skew_protection,
source,
source_image,
source_image_hash,
source_image_hostname,
source_image_pathname,
spec_version,
spend_attribution,
spend_report_date_part,
spend_report_group_by,
surcharge_cost_currency,
tool_call_error_type,
tool_call_provider,
tool_call_status_code,
tool_call_success,
tool_call_type,
traffic_source,
transcript_inputs,
transcript_outputs,
transcript_status,
triggering_tag,
utm_campaign,
utm_content,
utm_medium,
utm_source,
utm_term,
vdc_operation_origin,
video_aspect_ratio,
video_resolution,
virtual_model_kind,
virtual_model_slug,
visitors,
waf_action,
workflow_event_type,
workflow_status
FROM vercel.web_analytics.pageview_counts
WHERE project_id = '{{ project_id }}' -- required
AND since = '{{ since }}'
AND until = '{{ until }}'
AND filter = '{{ filter }}'
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;