API question (request velocity)

Hello,

Is it possible to enable firewall rules when the number of requests an hour passes a certain amount via the API?

You can enable and disable a firewall rule via the API, but the logic for how you do that would have to be constructed by you.

Is there an API for the requests in the last 24 hours? Maybe last hour? I’ve heard of the zone analytics API but have heard the RESTful endpoints are being removed.

This is a rather peculiar request. What is it you’re trying to prevent?