API ReferenceAnalytics
Get Method Breakdown
Return the distribution of authentication methods used across login or signup events.
Endpoint
GET /v1/analytics:getMethodBreakdownBase URL: https://<Domain id="api"/>
Authentication: Bearer token with analytics:read scope.
Returns the share of logins (or signups) attributable to each authentication method: password, passkey, social.google, social.github, magic_link, sms_otp, saml, etc.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_time | RFC 3339 timestamp | Yes | Start of the range |
end_time | RFC 3339 timestamp | Yes | End of the range |
event_type | string | Yes | "login" or "signup" |
organization_id | string | No | Scope to a single org |
Example
q := url.Values{}
q.Set("start_time", "2026-04-10T00:00:00Z")
q.Set("end_time", "2026-04-17T00:00:00Z")
import httpx, os
httpx.get(
"https://api-id.avnology.net/v1/analytics:getMethodBreakdown",
params={
"start_time": "2026-04-10T00:00:00Z",
"end_time": "2026-04-17T00:00:00Z",
"event_type":
curl -G "https://api-id.avnology.net/v1/analytics:getMethodBreakdown" \
-H "Authorization: Bearer $AVNOLOGY_API_KEY" \
--data-urlencode "start_time=2026-04-10T00:00:00Z" \
--data-urlencode "end_time=2026-04-17T00:00:00Z" \
--data-urlencode "event_type=login"q := url.Values{}
q.Set("start_time", "2026-04-10T00:00:00Z")
q.Set("end_time", "2026-04-17T00:00:00Z")
import httpx, os
httpx.get(
"https://api-id.avnology.net/v1/analytics:getMethodBreakdown",
params={
"start_time": "2026-04-10T00:00:00Z",
"end_time": "2026-04-17T00:00:00Z",
"event_type":
curl -G "https://api-id.avnology.net/v1/analytics:getMethodBreakdown" \
-H "Authorization: Bearer $AVNOLOGY_API_KEY" \
--data-urlencode "start_time=2026-04-10T00:00:00Z" \
--data-urlencode "end_time=2026-04-17T00:00:00Z" \
--data-urlencode "event_type=login"q := url.Values{}
q.Set("start_time", "2026-04-10T00:00:00Z")
q.Set("end_time", "2026-04-17T00:00:00Z")
import httpx, os
httpx.get(
"https://api-id.avnology.net/v1/analytics:getMethodBreakdown",
params={
"start_time": "2026-04-10T00:00:00Z",
"end_time": "2026-04-17T00:00:00Z",
"event_type":
curl -G "https://api-id.avnology.net/v1/analytics:getMethodBreakdown" \
-H "Authorization: Bearer $AVNOLOGY_API_KEY" \
--data-urlencode "start_time=2026-04-10T00:00:00Z" \
--data-urlencode "end_time=2026-04-17T00:00:00Z" \
--data-urlencode "event_type=login"q := url.Values{}
q.Set("start_time", "2026-04-10T00:00:00Z")
q.Set("end_time", "2026-04-17T00:00:00Z")
import httpx, os
httpx.get(
"https://api-id.avnology.net/v1/analytics:getMethodBreakdown",
params={
"start_time": "2026-04-10T00:00:00Z",
"end_time": "2026-04-17T00:00:00Z",
"event_type":
Response (200 OK)
{
"methods": [
{ "method": "password", "count": 7812, "share": 0.626 },
{ "method": "passkey", "count": 2451, "share": 0.196 },
{ "method": "social.google", "count": 1204