Cohort Download

GET https://amplitude.com/api/5/cohorts/request/:requestId/file

For small cohorts, the response body contains cohort data.

For large cohorts, the data must be downloaded. If the cohort is large, the response redirects with a 302 response code to a pre-signed Amazon S3 download URL. The download URL is valid for one minute, and should be accessed immediately.

The API request link (https://amplitude.com/api/5/cohorts/request/:requestId/file) is valid for seven days. During the seven days, you can make the same request repeatedly to get a new S3 download link. Each S3 link is valid only for one minute.

Most clients used to send API requests automatically download the data from the S3 link. If your API client doesn't automatically download the cohort from the S3 link, you have one minute access it manually.

RESPONSES

status: OK

"\"amplitude_id\",\"user_id\"\n\"356896327775\",\"\"\n\"356893815359\",\"\"\n"