Skip to main content

quanticdata — Python SDK for the QuanticData API

Scrape any page to clean Markdown, run structured Google/Bing/DuckDuckGo searches, crawl and map whole sites, run 74 ready-made Collectors (Amazon, Google Maps, LinkedIn jobs, app stores…), build datasets from a plain-language prompt — everything through QuanticData' residential proxy network with real-browser TLS fingerprints. Pay per successful call; blocked pages cost nothing.

pip install quanticdata

Quickstart

from quanticdata import QuanticData

client = QuanticData()  # reads QUANTICDATA_API_KEY from the environment

page = client.scrape("https://example.com")
print(page["title"], page["engine"])
print(page["content"])          # the page as clean Markdown

Get a free API key at quanticdata.io — every account includes free monthly usage, no card required. Set it once:

export QUANTICDATA_API_KEY=qd_live_your_key_here

What's in the box

Every REST endpoint, one method each — responses come back with the API envelope already unwrapped:

# Structured search — 3 engines, 17 verticals, SerpApi-compatible JSON
serp = client.search("best espresso machine", country="us", num=20)
for r in serp["organic"]:
    print(r["rank"], r["title"], r["link"])

# SERP → citation-ready Markdown context for an AI prompt
ctx = client.search_and_read("latest EU AI act status", top_n=3)

# Map a site's URLs in seconds (sitemaps + homepage links)
urls = client.map("https://stripe.com", search="/blog")

# Async crawl — wait=True polls until it settles and returns the pages
job = client.crawl("https://docs.python.org", limit=30, depth=2, wait=True)

# Batch-scrape known URLs
job = client.batch(["https://a.example", "https://b.example"], wait=True)

# CSS/AI extraction on one page
data = client.scrape(
    "https://books.toscrape.com",
    extract={"titles": {"selector": "h3 a", "attr": "title", "all": True}},
)

# Learn selectors once with an LLM, then scrape the same layout for free
parser = client.generate_parser(
    "https://news.ycombinator.com",
    fields={"titles": "every story title, as a list"},
)

# 74 ready-made Collectors — semantic input instead of URLs
places = client.run_collector(
    "google_maps_places", keyword="dentist", location="Austin, TX", max_results=20
)

# Dataset from a prompt (validated rows, budget-capped)
ds = client.create_dataset(
    "coffee roasters in Portland with email and phone",
    limits={"max_rows": 50, "max_cost_usd": 2},
    wait=True,
)

# Proxy endpoints of every type — residential, mobile, datacenter, ISP, IPv6
plans = client.list_proxies(active=True)
proxies = client.generate_proxies(plans["proxies"][0]["orderId"], country="us", quantity=5)

Web Unlocker

unlock() replays any HTTP request — method, headers, body — through a residential exit with a real browser TLS fingerprint, retries on a fresh IP when the target blocks it, and escalates a blocked GET to a real browser. You get the raw response back: status, headers, body, finalUrl.

r = client.unlock("https://www.example-shop.com/item/42", country="us")
if r["blocked"]:
    print(r["blockClass"], r.get("vendor"), r.get("blockReason"))  # e.g. "waf", "cloudflare"
else:
    print(r["status"], r["body"][:200])

# Force a real browser render and wait for the price to appear
page = client.unlock(
    "https://www.example-shop.com/item/42",
    render="html", wait_for_selector=".price", wait_ms=1500,
)

A still-blocked page is never returned as a silent 200: it comes flagged with blocked: true (pass fail_on_block=True to get an error instead). Interactive captchas are not solved — they arrive with blockClass: "captcha". Billed per GB of the tier's prepaid unlocker balance (usage in the response).

Errors and retries

Failures raise QuanticDataError with .status, .message and .payload. Connection errors and HTTP 429 are retried with backoff; billable calls are never re-sent after a response was received, so nothing gets double-billed behind your back.

from quanticdata import QuanticData, QuanticDataError

try:
    QuanticData(api_key="qd_live_wrong").scrape("https://example.com")
except QuanticDataError as err:
    print(err.status, err.message)

Also available

MIT licensed.

Metadata

Release files for quanticdata 0.2.1

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

Source distribution (sdist)

Source distribution for quanticdata 0.2.1
File Size Uploaded Provenance Actions
quanticdata-0.2.1.tar.gz 11.3 kB Without provenance Details for quanticdata-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 23.4 kB

Release files / quanticdata-0.2.1.tar.gz

Download URL quanticdata-0.2.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b4f5798c1ac613a351abfe3b04c6af083d81a6d7743167b8ffe6d8fd8de46d78
BLAKE2b-256 checksum
How to use checksums
11a783c890e0fca8f636a05c9d4cf610d7699a627bf51a9a7fbd8377434423f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / quanticdata-0.2.1-py3-none-any.whl

Download URL quanticdata-0.2.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11c5e0cf5747b15c7212f4b6fce1471d3a22c7b35b928ed9534479a5a4c6d4ef
BLAKE2b-256 checksum
How to use checksums
e763de71a513e12c11733492dd6551d11945f7807e6c87ec10bcd3d1d04b5f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for quanticdata 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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