Setting end_date error when calling visit api

Discussions

Ask a Question
Back to All

Setting end_date error when calling visit api

{"meta":{"request":{"granularity":"Weekly","main_domain_only":false,"mtd":false,"show_verified":true,"state":null,"format":"json","domain":"google.com","start_date":"2021-10-01","end_date":null,"country":"world"},"status":"Error","error_code":101,"error_message":"Dates not in range. You did not specify end date. Dates must be between 2021-08 and 2023-08. Issue a GET request to the 'describe' endpoint on the API you're using to list its per-country supported date ranges. (e.g. for descrption of [...]/total-traffic-and-engagement/visits?[...] call [...]/total-traffic-and-engagement/describe)"}}

Response is saying that end_date must be 2023-08.

Please let me know how to fix this.

Best regards.