Fix API rate limiting

In Progress
Sat Nov 16 2024

Resolve issues with the API rate-limiting mechanism. Ensure it works correctly to prevent overuse while avoiding false throttling.