AptlyStar

Amplitude

Track events and query analytics from Amplitude

使用方法

Integrate Amplitude into your workflow to track events, identify users and groups, search for users, query analytics, and retrieve revenue data.

ツール

amplitude_send_event

Track an event in Amplitude using the HTTP V2 API.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
userIdstringいいえUser ID (required if no device_id)
deviceIdstringいいえDevice ID (required if no user_id)
eventTypestringはいName of the event (e.g., "page_view", "purchase")
eventPropertiesstringいいえJSON object of custom event properties
userPropertiesstringいいえJSON object of user properties to set (supports $set, $setOnce, $add, $append, $unset)
timestringいいえEvent timestamp in milliseconds since epoch
sessionIdstringいいえSession start time in milliseconds since epoch
insertIdstringいいえUnique ID for deduplication (within 7-day window)
appVersionstringいいえApplication version string
platformstringいいえPlatform (e.g., "Web", "iOS", "Android")
countrystringいいえTwo-letter country code
languagestringいいえLanguage code (e.g., "en")
ipstringいいえIP address for geo-location
pricestringいいえPrice of the item purchased
quantitystringいいえQuantity of items purchased
revenuestringいいえRevenue amount
productIdstringいいえProduct identifier
revenueTypestringいいえRevenue type (e.g., "purchase", "refund")

出力

パラメータ型説明
codenumberResponse code (200 for success)
eventsIngestednumberNumber of events ingested
payloadSizeBytesnumberSize of the payload in bytes
serverUploadTimenumberServer upload timestamp

amplitude_identify_user

Set user properties in Amplitude using the Identify API. Supports $set, $setOnce, $add, $append, $unset operations.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
userIdstringいいえUser ID (required if no device_id)
deviceIdstringいいえDevice ID (required if no user_id)
userPropertiesstringはいJSON object of user properties. Use operations like $set, $setOnce, $add, $append, $unset.

出力

パラメータ型説明
codenumberHTTP response status code
messagestringResponse message

amplitude_group_identify

Set group-level properties in Amplitude. Supports $set, $setOnce, $add, $append, $unset operations.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
groupTypestringはいGroup classification (e.g., "company", "org_id")
groupValuestringはいSpecific group identifier (e.g., "Acme Corp")
groupPropertiesstringはいJSON object of group properties. Use operations like $set, $setOnce, $add, $append, $unset.

出力

パラメータ型説明
codenumberHTTP response status code
messagestringResponse message

Search for a user by User ID, Device ID, or Amplitude ID using the Dashboard REST API.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key
userstringはいUser ID, Device ID, or Amplitude ID to search for

出力

パラメータ型説明
matchesarrayList of matching users
↳ amplitudeIdnumberAmplitude internal user ID
↳ userIdstringExternal user ID
typestringMatch type (e.g., match_user_or_device_id)

amplitude_user_activity

Get the event stream for a specific user by their Amplitude ID.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key
amplitudeIdstringはいAmplitude internal user ID
offsetstringいいえOffset for pagination (default 0)
limitstringいいえMaximum number of events to return (default 1000, max 1000)
directionstringいいえSort direction: "latest" or "earliest" (default: latest)

出力

パラメータ型説明
eventsarrayList of user events
↳ eventTypestringType of event
↳ eventTimestringEvent timestamp
↳ eventPropertiesjsonCustom event properties
↳ userPropertiesjsonUser properties at event time
↳ sessionIdnumberSession ID
↳ platformstringPlatform
↳ countrystringCountry
↳ citystringCity
userDatajsonUser metadata
↳ userIdstringExternal user ID
↳ canonicalAmplitudeIdnumberCanonical Amplitude ID
↳ numEventsnumberTotal event count
↳ numSessionsnumberTotal session count
↳ platformstringPrimary platform
↳ countrystringCountry

amplitude_user_profile

Get a user profile including properties, cohort memberships, and computed properties.

入力

パラメータ型必須説明
secretKeystringはいAmplitude Secret Key
userIdstringいいえExternal user ID (required if no device_id)
deviceIdstringいいえDevice ID (required if no user_id)
getAmpPropsstringいいえInclude Amplitude user properties (true/false, default: false)
getCohortIdsstringいいえInclude cohort IDs the user belongs to (true/false, default: false)
getComputationsstringいいえInclude computed user properties (true/false, default: false)

出力

パラメータ型説明
userIdstringExternal user ID
deviceIdstringDevice ID
ampPropsjsonAmplitude user properties (library, first_used, last_used, custom properties)
cohortIdsarrayList of cohort IDs the user belongs to
computationsjsonComputed user properties

amplitude_event_segmentation

Query event analytics data with segmentation. Get event counts, uniques, averages, and more.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key
eventTypestringはいEvent type name to analyze
startstringはいStart date in YYYYMMDD format
endstringはいEnd date in YYYYMMDD format
metricstringいいえMetric type: uniques, totals, pct_dau, average, histogram, sums, value_avg, or formula (default: uniques)
intervalstringいいえTime interval: 1 (daily), 7 (weekly), or 30 (monthly)
groupBystringいいえProperty name to group by (prefix custom user properties with "gp:")
limitstringいいえMaximum number of group-by values (max 1000)

出力

パラメータ型説明
seriesjsonTime-series data arrays indexed by series
seriesLabelsarrayLabels for each data series
seriesCollapsedjsonCollapsed aggregate totals per series
xValuesarrayDate values for the x-axis

amplitude_get_active_users

Get active or new user counts over a date range from the Dashboard REST API.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key
startstringはいStart date in YYYYMMDD format
endstringはいEnd date in YYYYMMDD format
metricstringいいえMetric type: "active" or "new" (default: active)
intervalstringいいえTime interval: 1 (daily), 7 (weekly), or 30 (monthly)

出力

パラメータ型説明
seriesjsonArray of data series with user counts per time interval
seriesMetaarrayMetadata labels for each data series (e.g., segment names)
xValuesarrayDate values for the x-axis

amplitude_realtime_active_users

Get real-time active user counts at 5-minute granularity for the last 2 days.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key

出力

パラメータ型説明
seriesjsonArray of data series with active user counts at 5-minute intervals
seriesLabelsarrayLabels for each series (e.g., "Today", "Yesterday")
xValuesarrayTime values for the x-axis (e.g., "15:00", "15:05")

amplitude_list_events

List all event types in the Amplitude project with their weekly totals and unique counts.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key

出力

パラメータ型説明
eventsarrayList of event types in the project
↳ valuestringEvent type name
↳ displayNamestringEvent display name
↳ totalsnumberWeekly total count
↳ hiddenbooleanWhether the event is hidden
↳ deletedbooleanWhether the event is deleted

amplitude_get_revenue

Get revenue LTV data including ARPU, ARPPU, total revenue, and paying user counts.

入力

パラメータ型必須説明
apiKeystringはいAmplitude API Key
secretKeystringはいAmplitude Secret Key
startstringはいStart date in YYYYMMDD format
endstringはいEnd date in YYYYMMDD format
metricstringいいえMetric: 0 (ARPU), 1 (ARPPU), 2 (Total Revenue), 3 (Paying Users)
intervalstringいいえTime interval: 1 (daily), 7 (weekly), or 30 (monthly)

出力

パラメータ型説明
seriesjsonArray of revenue data series
seriesLabelsarrayLabels for each data series
xValuesarrayDate values for the x-axis

On this page