@researchgate/emailonacid-proxy

Self-hosted proxy for throttling EoA API requests to 60 per 5 minutes (applicable for all of their plans).

Usage no npm install needed!

<script type="module">
  import researchgateEmailonacidProxy from 'https://cdn.skypack.dev/@researchgate/emailonacid-proxy';
</script>

README

emailonacid-proxy

Self-hosted proxy for throttling EoA API requests to 60 per 5 minutes (applicable for all of their plans).

Quick Start

  1. Install the emailonacid-proxy:
# yarn
yarn add @researchgate/emailonacid-proxy

# npm
npm add --save @researchgate/emailonacid-proxy
  1. Run the proxy:
# yarn
yarn emailonacid-proxy

# npx
npx emailonacid-proxy
  1. Point EoA client to a new url via baseApiUrl:
const createClient = require('@researchgate/emailonacid-client');

const client = createClient({
  baseApiUrl: '<your proxy address>',
});

Usage

Usage: emailonacid-proxy [options]

Options:
  -p, --port <port>                  Port number (default: 8080)
  -r, --requests-per-interval <rpi>  Max requests to make per given interval (default: 60)
  -i, --interval <interval>          Time interval to track requests in milliseconds (default: 300000)
  -d, --destination [url]            Proxy destination (default: "https://api.emailonacid.com/v5")
  -h, --help                         output usage information