@adobe/spacecat-shared-ahrefs-client
TypeScript icon, indicating that this package has built-in type declarations

1.5.12 • Public • Published

Spacecat Shared - Ahrefs Client

A JavaScript client for the Ahrefs API v3, part of the SpaceCat Shared library. It allows you to query the Ahrefs API for top pages, backlinks, organic traffic data, and more.

Installation

Install the package using npm:

npm install @adobe/spacecat-shared-ahrefs-client

Usage

Constructor

import AhrefsAPIClient, { fetch } from '@adobe/spacecat-shared-ahrefs-client';

const config = {
  apiKey: '<API_KEY>',
  apiBaseUrl: '<API_BASE_URL>',
};

const client = new AhrefsAPIClient(config, fetch);

Creating and instance from Helix UniversalContext

const context = {}; // Your AWS Lambda context object
const client = AhrefsAPIClient.createFrom(context);

Testing

To run tests:

npm run test

Linting

Lint your code:

npm run lint

Cleaning

To remove node_modules and package-lock.json:

npm run clean

Additional Information

Readme

Keywords

none

Package Sidebar

Install

npm i @adobe/spacecat-shared-ahrefs-client

Weekly Downloads

223

Version

1.5.12

License

Apache-2.0

Unpacked Size

44 kB

Total Files

8

Last publish

Collaborators

  • mhaack
  • amol-anand
  • doten
  • stopp-adobe
  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe