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
Link graph
| 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_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.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rankparse-0.1.1.tar.gz | 7.1 kB | With provenance | Details for rankparse-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rankparse-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rankparse-0.1.1-py3-none-any.whl |
Total release size: 14.5 kB
Release files / rankparse-0.1.1.tar.gz
| Download URL | rankparse-0.1.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c5719f4ad4f75726a475cb774ecf87b12911dd4284188ec5a233542a32dd92d
|
|
BLAKE2b-256 checksum How to use checksums |
7b9b1e3178e6a8eb0c26a2f1b8c7c0125f8eb3bd0f61c21d66554559e7294eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 3, 2026.
Transparency logRelease files / rankparse-0.1.1-py3-none-any.whl
| Download URL | rankparse-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ab67a0eb1ccc16b763675b5134caf6f0266ce5d7ec76004a336dd8d533edba4
|
|
BLAKE2b-256 checksum How to use checksums |
e9fc18835643ab0d8735c7d0ce51adf37dc42042ddb29c1aae7e9eb3ddd0a252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 3, 2026.
Transparency logSecurity for rankparse 0.1.1
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.
Attestation for rankparse-0.1.1.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 Aug 3, 2026.
Transparency logA 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.