A Saner Method for Keeping Under API Rate Limits

Written by v34sey | Published 2023/06/15
Tech Story Tags: php-development | rest-api | code-snippets | web-development | webdev | php | optimization | tips | web-monetization

TLDRA CRON task that makes many requests to a third-party API has a rate limit of 2 requests per second. To avoid hitting the rate limit, pause the script for an adequate amount of time. With a few adjustments, you can simply have the script wait a much more precise time.via the TL;DR App

no story

Written by v34sey | From stacking tents for the airforce to working as a full stack developer.
Published by HackerNoon on 2023/06/15