Skip to main content

rankparse

Official Python SDK for the RankParse SEO API.

RankParse gives you cheap, programmatic access to 25+ SEO signals — backlinks, domain authority, tech stack, page metadata, and more — powered by pre-processed Common Crawl data.

Install

pip install rankparse

Requires Python 3.9+ and installs httpx automatically.

Quick start

Sync:

from rankparse import RankParseClient

client = RankParseClient(api_key="rp_...")

result = client.domain_authority("github.com")
print(result["data"])
# {"domain": "github.com", "score": 94, "backlinks": 12400000, ...}

Async:

import asyncio
from rankparse import AsyncRankParseClient

async def main():
    client = AsyncRankParseClient(api_key="rp_...")
    result = await client.domain_authority("github.com")
    print(result["data"])

asyncio.run(main())

Context managers (recommended for connection cleanup):

with RankParseClient(api_key="rp_...") as client:
    da = client.domain_authority("example.com")
    bl = client.backlinks("example.com", limit=50)
async with AsyncRankParseClient(api_key="rp_...") as client:
    da = await client.domain_authority("example.com")

Error handling

from rankparse import RankParseClient
from rankparse.errors import (
    AuthError,
    InsufficientCreditsError,
    NotFoundError,
    RateLimitError,
    APIError,
    RankParseError,
)

client = RankParseClient(api_key="rp_...")

try:
    result = client.backlinks("example.com")
except AuthError:
    print("Invalid API key")
except InsufficientCreditsError:
    print("Out of credits — buy more at rankparse.com/dashboard")
except RateLimitError:
    print("Rate limited — slow down")
except NotFoundError:
    print("Resource not found")
except APIError as e:
    print(f"API error {e.status}: {e}")
except RankParseError as e:
    print(f"Unexpected error: {e}")

All exceptions expose .status (HTTP status code) and .code (API error code string).

Response envelope

Every response is a dict with this shape:

{
  "data": [...],
  "credits_used": 2,
  "credits_remaining": 998,
  "domain": "example.com",
  "total": 1234,
  "limit": 100,
  "offset": 0
}

Fields domain, url, total, limit, and offset are only present when relevant.

All methods

Method Description Key params Credits
backlinks(domain) Inbound links to this domain limit, offset, sort, from_domain, link_type 2
referring_domains(domain) Unique domains linking to this domain limit, offset 2
outbound_links(domain) Links pointing out from this domain limit 2
anchor_text(domain) Anchor text distribution for inbound links limit 2
link_velocity(domain) Rate of link acquisition over time — 0 (v1 stub)
new_links(domain) Recently acquired links — 0 (v1 stub)
lost_links(domain) Recently lost links — 0 (v1 stub)
link_intersect(domain_a, domain_b) Domains linking to both targets limit 5

Domain intelligence

Method Description Key params Credits
domain_authority(domain) DA score, backlink count, RDAP info, Tranco rank — 1
domain_rank(domain) Popularity rank — 2
domain_overlap(domains) Shared linking domains across a list limit 5
similar_domains(domain) Domains with similar link profiles limit 5
competitor_gap(domain, vs) Links pointing to competitor but not you limit 5
link_audit(domain) Toxic/spammy link signals — 2
site_explorer(domain) Full domain overview limit 10

Page / site

Method Description Key params Credits
page_seo(url) On-page SEO signals — 2
page_performance(url) Google PageSpeed Insights + Core Web Vitals strategy 3
tech_stack(domain) Technologies detected on the page — 2
site_platform(domain) The platform the site runs on (WordPress, Wix, Shopify, ...) plus commerce add-ons, from one live fetch — 1
site_health(domain) Crawl errors, redirect chains, status codes — 2
sitemap(domain) Sitemap URLs — 2
crawl_history(domain) Crawl timestamps and HTTP status history limit, offset 2
schema_markup(url) Structured data / JSON-LD — 0 (v1 stub)
internal_links(url) Internal link graph for a page limit, offset 0 (v1 stub)
top_pages(domain) Most-linked pages on a domain limit 2

Batch

Method Description Credits
batch(domains) Backlink lookup for up to 50 domains in one request 2 per domain
result = client.batch(["github.com", "stripe.com"])

Dashboard (no credits)

Method Description
me() Your profile and credit balance
credits() Current credit balance
keys() List your API keys (returns a plain list)
create_key(name) Create a new API key (returns raw key once)
revoke_key(key_id) Revoke an API key
usage(limit, offset) Paginated usage logs
checkout(pack_id) Create a Stripe checkout session for credit top-up

Configuration

client = RankParseClient(
    api_key="rp_...",
    base_url="https://api.rankparse.com/v1",  # default
    timeout=30.0,  # seconds, default 30
)

License

MIT

Metadata

Release files for rankparse 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rankparse 0.2.0
File Size Uploaded Provenance Actions
rankparse-0.2.0.tar.gz 7.6 kB With provenance Details for rankparse-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rankparse 0.2.0
File Interpreter ABI Platform Actions
rankparse-0.2.0-py3-none-any.whl Python 3 none any Details for rankparse-0.2.0-py3-none-any.whl

Total release size: 15.3 kB

Release files / rankparse-0.2.0.tar.gz

Download URL rankparse-0.2.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9db879e5afb9cfd50f835a00b63cf2e27c2925f08eba72b331ffc7e5c11812d1
BLAKE2b-256 checksum
How to use checksums
157d1288a7e84fb2ffbc47bf253d5c95cf3a67942883ecf1270c4388a195ba47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / rankparse-0.2.0-py3-none-any.whl

Download URL rankparse-0.2.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
428ff0c0e9ecb287462b25c60f19f4c9a5ff3219250205a8fb0f649e15360ec2
BLAKE2b-256 checksum
How to use checksums
ec59126f89dcd8b5699c40127315965ffcf37cfb54d6842709f06a0f73fe2eba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for rankparse 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rankparse-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page