moz-api-wrapper
Moz Link API wrapper written in javascript for node applications (can also run in the browser). Fetch link data and other metrics from various endpoints, including Url Metrics, Top Page Metrics, and others. The Link API is a paid plan, they offer a limited free version to the API as well.
Installation
npm install --save moz-api-wrapper
Motivation
Sending requests directly to the api is tedious with the various bit masks that needs to be calculated for filtering as well as signing the request for authentication. We also didn't find any currently maintained projects available. This seemed like a good opportunity to build a simple to use interface.
Usage / Examples
var Moz = // initialize and configure clientconst moz = accessId: ACCESS_ID secretKey: SECRET_KEY; // fetch url metrics for moz.com// return promisemozurlMetrics
Compatibility
Depedencies
Resources
License
This library is licensed under MIT. See LICENSE.