1.5.8 • Published 8 months ago

@adobe/spacecat-shared-ahrefs-client v1.5.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

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

1.5.8

8 months ago

1.5.7

8 months ago

1.5.6

8 months ago

1.5.5

9 months ago

1.5.4

9 months ago

1.5.3

9 months ago

1.5.2

10 months ago

1.2.6

1 year ago

1.2.5

1 year ago

1.5.1

10 months ago

1.2.4

1 year ago

1.5.0

10 months ago

1.4.1

11 months ago

1.3.2

12 months ago

1.2.3

1 year ago

1.4.0

11 months ago

1.3.1

12 months ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago