Question

HTTP 400: Bad Request (Time range exceeds maximum of 103334400000 ms)

  • 15 June 2023
  • 2 replies
  • 110 views

Hello,

Quick question about Behavioral Cohorts API
https://www.docs.developers.amplitude.com/analytics/apis/behavioral-cohorts-api/#get-one-cohort
About the one hinted in docs to be more precise …

In time of writing this question, certain error was encountered 

HTTP 400: Bad Request (Time range exceeds maximum of 103334400000 ms)

using endpoint

https://amplitude.com/api/5/cohorts/request/id


As it can be seen in the actual docs, there is no way to control time range or start/end date.
103334400000 ms equals roughly 3.2 years. Is it possible that first user for certain cohort is created way before 3.2 years?

Is this valid constraint (3.2 years)? If so, how to bypass it?

Best Regards,
Nikola


2 replies

Userlevel 7
Badge +10

Hey @postal_dude 

AFAIK, the max cohort computation range was 3 years.

Can you validate from the UI if this cohort is using the ”since” clause and exceeds 3 years as of querying date?

Things could have also changed since the launch of out-of-box templates, which seem to be restricted to only last 365 days and the absence of the “since” clause.

 

Hi Saish,

Thanks for the feedback!

Unfortunately I do not have access to UI … already the REST API only. But will try to get some feedback from persons who have … and update the thread.

Best Regards,
Nikola

Reply