What can you do with it?
The Amplitude API allows you to analyze user behavior and track analytics data. You can monitor real-time active users, calculate revenue lifetime values, perform event segmentation analysis, create funnel conversion reports, and track individual user activity to gain comprehensive insights into your application’s usage patterns.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (get, analyze, track)entity
- The entity type (realtime, revenue, events, funnels, user)start
- Start date in YYYYMMDD formatend
- End date in YYYYMMDD format
interval
- Time interval (5 minutes, daily, weekly, monthly)metric
- Metric type (ARPU, ARPPU, Total Revenue, Paying Users)segment
- Segment definitionsgroup_by
- Property to group byuser_id
- User identifier for user activitylimit
- Number of results to returnoffset
- Pagination offset
Tools
Get Real-time Active Users
Monitor active user numbers with 5-minute granularity for the last two days. Parameters:interval
(optional) - Interval in minutes (default: 5)
Get Revenue Lifetime Value
Calculate the lifetime value of new users with detailed revenue metrics. Parameters:start
(required) - First date in YYYYMMDD formatend
(required) - Last date in YYYYMMDD formatmetric
(optional) - Metric type: 0=ARPU, 1=ARPPU, 2=Total Revenue, 3=Paying Users (default: 0)interval
(optional) - Interval: 1=daily, 7=weekly, 30=monthly (default: 1)segment
(optional) - Segment definitions (JSON array)group_by
(optional) - Property to group by
Get Event Segmentation
Analyze segmentation data for specific events with filtering and grouping. Parameters:event
(required) - Event definition (JSON object)start
(required) - Start date in YYYYMMDD formatend
(required) - End date in YYYYMMDD formatmetric
(optional) - Metric type for analysisinterval
(optional) - Interval (1, 7, or 30)segment
(optional) - Segment definitionsgroup_by
(optional) - Group by properties
Get Funnel Analysis
Analyze funnel conversion data across multiple events. Parameters:events
(required) - Array of event definitions (JSON)start
(required) - Start date in YYYYMMDD formatend
(required) - End date in YYYYMMDD formatconversion_window
(optional) - Conversion window in daysconversion_type
(optional) - Conversion window typesegment
(optional) - Segment definitionsgroup_by
(optional) - Group by properties
Get User Activity
Retrieve activity data for a specific user including all events and properties. Parameters:user
(required) - User identifieroffset
(optional) - Pagination offsetlimit
(optional) - Number of results (max 1000)