Zone Analytics Api

Greetings,
I am trying to get my website’s analytics that I have on my cloudflare dashboard by using api calls but in the API Documentation it says is deprecated. I’ve tried to use graphql queries but in the end of it I got an error.

The curl I’ve tried

curl -X POST \
  -H "Authorization: Bearer mytokn \
  -d '{
    "query": "query {
      requests(zoneId: \"myzoneid\") {
        count
      }
    }"
  }' \
  https://api.cloudflare.com/graphql/v1

and then the error is;

{"success":false,"errors":[{"code":7000,"message":"No route for that URI"}]}

Thanks.