Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Large scale API usage issues

New post

Comments

6 comments

  • Kourtney

    Hello, 

     

    Thanks so much for using our platform and developer forum! 

     

    1. Is it possible to increase the calls per second rate to a much higher rate? 

    We do not make exceptions to these limits and they cannot be increased. One distinction I'd like to make though is that it is 10 calls per second per user and 4 uploads per second per user. Therefore, if you're worried about hitting rate limits we recommend spreading out the calls over multiple users. 

     

    2. Is it possible to increase the calls per month rate to a much higher rate?

    It would be best to have a conversation about this with your account executive or our sales team

     

    Best, 

    Kourtney 

    0
    Comment actions Permalink
  • Constant9

    regarding the "per user limit" : we are using a JWT authentication method. Does this mean that generating multiple JWTs for the application, will allow theoretically higher access rate if each box connection will be done with another token?

    Moreover, does the overall monthly limit of 100k calls is per ''user/JWT/app'' or per account ?

    Thanks

    0
    Comment actions Permalink
  • Kourtney

    Hello, 

     

    Theoretically yes you could say that. The overall monthly limit is measured on a per enterprise basis, so if you have multiple applications, those will all contribute to this count.

     

    Best, 

    Kourtney 

    0
    Comment actions Permalink
  • Constant9

    So, as the total number of API calls is capped by by some finite number (i.e. 100k) is API calls batching a valid solution to reduce the `registered` calls?

    0
    Comment actions Permalink
  • IsdYann

    Hi,

     

    is there a way to see the number of API requests already made during the month on a per user basis in the Box portal?

     

    Thanks

    0
    Comment actions Permalink
  • Constant9

    you can add a request interceptor.

    It executes before API call is sent. There you can implement the logic.

    Here is a very basic example:

     

    api.setRequestInterceptor(new RequestInterceptor {
    private static AtomicInteger requestsCounter = new AtomicInteger(0);
    @Override
    public BoxAPIResponse onRequest(BoxAPIRequest request) {
    System.out.println("Box api ["+request.getUrl()+"] calls count=" + requestsCounter.incrementAndGet());
    return null;
    }
    }
    );

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.