http-api-proxy

A reverse proxy designed for use with rate limited APIs.

node-api-proxy

A reverse proxy designed for use with rate limited APIs.

npm install http-api-proxy

To start a proxy:

http-api-proxy <hostname>[:<port>] --interval=<interval> --port=<port>

This starts an HTTP server on port <port>. All requests to that server are delegated to <hostname>:<port>, but ensuring that at least <interval> millseconds elapse between each request.

Suppose you want to access a particular API at most once per second:

http-api-proxy example.com --interval=1000 --port=8080