PingZen Analytics API
The analytics API from PingZen — 7 operation(s) for analytics.
The analytics API from PingZen — 7 operation(s) for analytics.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pingzen-dev:pingzen-dev-analytics-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PingZen Analytics API
description: Service availability monitoring platform. Monitor your websites, APIs, and services with multi-protocol support.
version: 1.0.0
tags:
- name: Analytics
paths:
/api/v1/analytics/visit:
post:
tags:
- Analytics
summary: Track anonymous page visit
description: Track a page visit from any visitor (authenticated or anonymous). No authentication required. Uses localStorage UUID for uniqueness. One row per visitor per day (upsert pattern). Bots and HTTP tools, judged by the User-Agent header, get the same 204 and are not stored.
operationId: track_visit_api_v1_analytics_visit_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VisitRequest'
required: true
responses:
'204':
description: Visit tracked, or dropped as a bot
'422':
description: Invalid visitor_id format (must be UUID)
/api/v1/analytics/attribution:
post:
tags:
- Analytics
summary: Link the browser's first touch to the signed-in user
description: Called by the SPA once per user per browser after a sign-in. Stored only for an account created within the last 24 hours that has no attribution yet; the response is 204 either way.
operationId: claim_attribution_api_v1_analytics_attribution_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AttributionClaimRequest'
required: true
responses:
'204':
description: Accepted (stored or skipped)
'401':
description: Not authenticated
'422':
description: Invalid visitor_id or an over-long field
security:
- HTTPBearer: []
/api/v1/analytics/stats:
get:
tags:
- Analytics
summary: Get user activity statistics
description: Returns DAU, WAU, MAU, active sessions, and stickiness ratio.
operationId: get_stats_api_v1_analytics_stats_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserActivityStatsResponse'
security:
- HTTPBearer: []
/api/v1/analytics/retention:
get:
tags:
- Analytics
summary: Get retention statistics
description: Returns D1, D7, D30 retention rates with cohort sizes.
operationId: get_retention_api_v1_analytics_retention_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RetentionStatsResponse'
security:
- HTTPBearer: []
/api/v1/analytics/churn:
get:
tags:
- Analytics
summary: Get churn statistics
description: Returns churn rate and counts for users inactive after 30 days.
operationId: get_churn_api_v1_analytics_churn_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ChurnStatsResponse'
security:
- HTTPBearer: []
/api/v1/analytics/funnel:
get:
tags:
- Analytics
summary: Get funnel statistics
description: Returns funnel stage counts and conversion rates.
operationId: get_funnel_api_v1_analytics_funnel_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/FunnelStatsResponse'
security:
- HTTPBearer: []
/api/v1/analytics/full:
get:
tags:
- Analytics
summary: Get full analytics snapshot
description: Returns all analytics metrics in a single response.
operationId: get_full_analytics_api_v1_analytics_full_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/FullAnalyticsResponse'
security:
- HTTPBearer: []
components:
schemas:
FunnelStatsResponse:
properties:
stages:
$ref: '#/components/schemas/FunnelStages'
description: Stage counts
conversions:
$ref: '#/components/schemas/FunnelConversions'
description: Conversion rates between stages
type: object
required:
- stages
- conversions
title: FunnelStatsResponse
description: Response schema for funnel statistics.
RetentionPeriod:
properties:
rate:
type: number
title: Rate
description: Retention rate as percentage
cohort_size:
type: integer
title: Cohort Size
description: Size of the cohort
type: object
required:
- rate
- cohort_size
title: RetentionPeriod
description: Retention data for a specific period.
VisitRequest:
properties:
visitor_id:
type: string
maxLength: 36
minLength: 36
title: Visitor Id
description: UUID from browser localStorage
examples:
- 550e8400-e29b-41d4-a716-446655440000
page_path:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Page Path
description: Optional page path being visited
examples:
- /
- /pricing
- /dashboard
referrer_path:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Referrer Path
description: Previous page path in SPA navigation (for journey tracking)
examples:
- /
- /features
- /pricing
external_referrer:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: External Referrer
description: External referrer URL (document.referrer), excluding self-referrals
examples:
- https://google.com/search?q=uptime+monitoring
- https://t.me/
utm_source:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Source
description: UTM source parameter from URL
examples:
- yandex
- google
- telegram
utm_medium:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Medium
description: UTM medium parameter from URL
examples:
- cpc
- organic
- social
utm_campaign:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Campaign
description: UTM campaign parameter
utm_content:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Content
description: UTM content parameter
utm_term:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Term
description: UTM term parameter
type: object
required:
- visitor_id
title: VisitRequest
description: Request schema for tracking anonymous page visits.
FullAnalyticsResponse:
properties:
stats:
$ref: '#/components/schemas/UserActivityStatsResponse'
description: User activity statistics
retention:
$ref: '#/components/schemas/RetentionStatsResponse'
description: Retention statistics
churn:
$ref: '#/components/schemas/ChurnStatsResponse'
description: Churn statistics
funnel:
$ref: '#/components/schemas/FunnelStatsResponse'
description: Funnel statistics
generated_at:
type: string
format: date-time
title: Generated At
description: Timestamp when analytics were generated
type: object
required:
- stats
- retention
- churn
- funnel
- generated_at
title: FullAnalyticsResponse
description: Response schema for complete analytics snapshot.
UserActivityStatsResponse:
properties:
daily_active_users:
type: integer
title: Daily Active Users
description: Users active today (DAU)
weekly_active_users:
type: integer
title: Weekly Active Users
description: Users active in last 7 days (WAU)
monthly_active_users:
type: integer
title: Monthly Active Users
description: Users active in last 30 days (MAU)
active_sessions:
type: integer
title: Active Sessions
description: Users active in last 15 minutes
stickiness_ratio:
type: number
title: Stickiness Ratio
description: DAU/MAU ratio as percentage
type: object
required:
- daily_active_users
- weekly_active_users
- monthly_active_users
- active_sessions
- stickiness_ratio
title: UserActivityStatsResponse
description: Response schema for user activity statistics.
FunnelConversions:
properties:
registered_to_first_monitor:
type: number
title: Registered To First Monitor
description: Conversion rate from registered to first monitor (%)
first_monitor_to_active:
type: number
title: First Monitor To Active
description: Conversion rate from first monitor to active (%)
active_to_paid:
type: number
title: Active To Paid
description: Conversion rate from active to paid (%)
type: object
required:
- registered_to_first_monitor
- first_monitor_to_active
- active_to_paid
title: FunnelConversions
description: Funnel conversion rates.
RetentionStatsResponse:
properties:
d1:
$ref: '#/components/schemas/RetentionPeriod'
description: Day 1 retention
d7:
$ref: '#/components/schemas/RetentionPeriod'
description: Day 7 retention
d30:
$ref: '#/components/schemas/RetentionPeriod'
description: Day 30 retention
type: object
required:
- d1
- d7
- d30
title: RetentionStatsResponse
description: Response schema for retention statistics.
AttributionFirstTouch:
properties:
utm_source:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Source
utm_medium:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Medium
utm_campaign:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Campaign
utm_content:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Content
utm_term:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Utm Term
external_referrer:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: External Referrer
description: Origin and path of the external referrer
landing_path:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Landing Path
description: Path only
captured_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Captured At
description: When the browser stored it
type: object
title: AttributionFirstTouch
description: The browser's first touch, as the SPA stored it before any OAuth redirect.
FunnelStages:
properties:
registered:
type: integer
title: Registered
description: Total registered users
first_monitor:
type: integer
title: First Monitor
description: Users with at least one monitor
active_7d:
type: integer
title: Active 7D
description: Users active in last 7 days
paid:
type: integer
title: Paid
description: Users on paid plans
type: object
required:
- registered
- first_monitor
- active_7d
- paid
title: FunnelStages
description: Funnel stage counts.
AttributionClaimRequest:
properties:
visitor_id:
type: string
maxLength: 36
minLength: 36
title: Visitor Id
description: UUID v4 from browser localStorage
examples:
- 550e8400-e29b-41d4-a716-446655440000
first_touch:
anyOf:
- $ref: '#/components/schemas/AttributionFirstTouch'
- type: 'null'
type: object
required:
- visitor_id
title: AttributionClaimRequest
description: Request schema for linking the browser's first touch to the signed-in user.
ChurnStatsResponse:
properties:
churn_rate:
type: number
title: Churn Rate
description: Churn rate as percentage
churned_count:
type: integer
title: Churned Count
description: Number of churned users
baseline_count:
type: integer
title: Baseline Count
description: Total users in baseline period
type: object
required:
- churn_rate
- churned_count
- baseline_count
title: ChurnStatsResponse
description: Response schema for churn statistics.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key