EdgeWorkers imposes constraints on the number of activated EdgeWorker scripts per account you can deploy. See Limitations for details. The API does not provide a mechanism to calculate how many remaining scripts you can deploy. Instead, once you reach a limit of 15,000, the API responds with a 422 error.