Node.js / TypeScript

RankParse in Node.js.

Official TypeScript SDK. Zero runtime dependencies — uses native fetch. Dual ESM and CommonJS. Fully typed responses. Works in Node.js 18+, Bun, Deno, and Edge runtimes.

Installation

npm install rankparse

Requires Node.js 18+. No runtime dependencies.

Quick start

Import the client, pass your API key, and start calling endpoints.

import { RankParse } from 'rankparse';

const client = new RankParse({ apiKey: process.env.RANKPARSE_API_KEY! });

// Domain authority
const result = await client.domainAuthority('stripe.com');
console.log(result.data.score);          // 91
console.log(result.credits_remaining);  // 9999

// Backlinks
const backlinks = await client.backlinks('stripe.com', { limit: 10 });
for (const link of backlinks.data) {
  console.log(link.from_url, '→', link.anchor_text);
}

// Batch — up to 50 requests in one call
const results = await client.batch([
  { endpoint: 'domain-authority', domain: 'stripe.com' },
  { endpoint: 'domain-authority', domain: 'github.com' },
  { endpoint: 'backlinks', domain: 'vercel.com', limit: 5 },
]);

What's included

FeatureDetails
All 25+ endpointsLink graph, domain intelligence, page & site, batch, dashboard
TypeScript typesEvery response shape is typed — no any
ESM + CommonJSWorks with import and require()
Error classesAuthError, InsufficientCreditsError, RateLimitError, NotFoundError
Timeout controlConfigurable per-client, default 30s
Zero dependenciesUses native fetch available in Node 18+

Full SDK reference

See the Node.js SDK docs for the complete method reference, error handling guide, pagination, and batch examples. Source on GitHub.

SEO data in Node.js.

100 free credits. No credit card. First request in 5 minutes.

Get API key — free