User composition
GET https://amplitude.com/api/2/composition?start=&end=&p=
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
start | null | First date included in data series, formatted YYYYMMDD (e.g. "20141001") | |
end | null | Last date included in data series, formatted YYYYMMDD (e.g. "20141004") | |
p | null | Required. The property to get the composition of. For built-in Amplitude properties, valid values are version, country, city, region, DMA, language, platform, os, device, start_version, and paying. For custom-defined user properties, the key should be formatted as gp:name. | |
RESPONSES
status: OK
{"data":{"xValues":["(none)","123"],"series":[[22,3]],"seriesLabels":["gp:event"]},"timeComputed":1643750221276,"wasCached":false,"cacheFreshness":"FRESH","novaRuntime":274,"novaRequestDuration":282,"novaCost":14,"throttleTime":1,"minSampleRate":1,"transformationIds":[],"backend":"novaV2","realtimeDataMissing":false,"timedOutRealtimeData":false,"partialMergedAndNewUserInformation":false,"prunedResult":false,"hitChunkGroupByLimit":false,"subcluster":6,"millisSinceComputed":4,"queryIds":["8JePWrS8qL"]}