Hi all,

Is there any way to perform multiple blocks in one call, rather than calling users/:id/blocking multiple times in succession?

My use case involves allowing users to block other users en masse, and at the moment its primary bottleneck is the speed at which it can go through API requests to perform blocks as they can only be done one at a time.

Atm I’ve got ~10k users and doing over 1 million blocks a day, so naturally having to do them 1 at a time instead of in batches of ~20-40 or so (per the user rate limits) is causing a lot of problems.

While I could try and work on getting the requests done asynchronously (via one of the async libraries like Peony), I get the distinct feeling that making so many requests constantly could also be seen as excessive traffic or such like.

3 Likes