Skip to main content

Floppydata Python SDK

Typed client for the Floppydata Client API v2: Web Data (search and page fetching), rotating and static proxies, Cloud Browser sessions, and account balances and usage.

pip install floppydata

Requires Python 3.10 or newer. Sync and async clients, Pydantic response models, and full type hints (checked with mypy and Pyright).

Quick start

Create a Client API key at https://app.floppydata.com/api-keys.

from floppydata import FloppyData

fd = FloppyData(api_key="...")  # or set FLOPPYDATA_API_KEY

balances = fd.account.get_account_balances()
print(balances.web_data.requests.remaining)

page = fd.web_data.fetch_web_data(url="https://example.com", difficulty="auto")
print(len(page.html))

Keep the key on the server: anyone holding it can spend your balance.

Methods are grouped by product: fd.web_data, fd.rotating_proxy, fd.static_proxy, fd.proxy, fd.account and fd.cloud_browser. Every method and its parameters are listed in reference.md. Parameters are keyword arguments in snake_case; nested objects are plain dicts:

session = fd.cloud_browser.create_browser_session(
    proxy={"type": "residential", "location": {"country_code": "US"}},
    persist={"ttl_seconds": 3600},
)

Async

import asyncio
from floppydata import AsyncFloppyData

async def main() -> None:
    fd = AsyncFloppyData()
    proxies = await fd.static_proxy.list_static_proxies()
    print(len(proxies.items))

asyncio.run(main())

Errors

Non-2xx responses raise a subclass of floppydata.core.ApiError, one per documented status, with the parsed error body:

from floppydata import PaymentRequiredError, BadGatewayError
from floppydata.core import ApiError

try:
    fd.web_data.fetch_web_data(url="https://example.com")
except PaymentRequiredError as error:
    print(error.body.error.code)  # "insufficient_balance"
except BadGatewayError as error:
    print(error.body.error.details.service_status)
except ApiError as error:
    print(error.status_code, error.body)  # body is text if it was not JSON
Status Exception
400 BadRequestError
401 UnauthorizedError
402 PaymentRequiredError
403 ForbiddenError
404 NotFoundError
409 ConflictError
500 InternalServerError
502 BadGatewayError

error.body.error.code is one of the documented ApiErrorCode values.

Retries and timeouts

Requests are not retried by default: the API has no idempotency keys, so a retried create_browser_session or create_rotating_proxy_subuser could create a duplicate. Opt in when that is acceptable:

fd = FloppyData(max_retries=2, timeout=30)
fd.account.get_account_balances(request_options={"max_retries": 3})

Cloud Browser

create_browser_session returns a connect_url for Playwright or Puppeteer:

from playwright.sync_api import sync_playwright

session = fd.cloud_browser.create_browser_session(persist={"ttl_seconds": 3600})
with sync_playwright() as p:
    browser = p.chromium.connect_over_cdp(session.connect_url)
    ...
fd.cloud_browser.stop_browser_session(session.id)

Pass settings={"id": ...} from an earlier persistent session to restore its fingerprint, proxy IP, cookies and storage. To browse through one of your static IPs, pass proxy={"type": "static", "ip": ...} with an ip from fd.static_proxy.list_static_proxies().

Configuration

FloppyData(
    api_key="...",                          # default: FLOPPYDATA_API_KEY
    base_url="https://api.floppydata.net",  # default
    timeout=60,                             # seconds, default 60
    max_retries=0,                          # default 0
    httpx_client=httpx.Client(...),         # e.g. for a proxy or custom transport
)

Examples

examples/ has runnable end-to-end flows for each product:

File Flow
web_data.py Check balance, search, fetch top results, report usage
rotating_proxy.py Create a subuser, pick a location, build and verify a connection, read usage and request history
static_proxy.py List static IPs and health-check each one concurrently (async client)
account.py Balances and usage across products
cloud_browser.py Persistent session with Playwright, live view, reuse saved state, clean up
error_handling.py Typed errors, settings_in_use recovery
uv sync
FLOPPYDATA_API_KEY=... uv run python examples/account.py

web_data.py, rotating_proxy.py, cloud_browser.py and error_handling.py spend Web Data requests, proxy traffic or browser time.

Versioning

The SDK follows semantic versioning, independently of the API version. While it is 0.x, minor versions may contain breaking changes. See CHANGELOG.md.

License

MIT

Metadata

Release files for floppydata 0.1.2

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

Source distribution (sdist)

Source distribution for floppydata 0.1.2
File Size Uploaded Provenance Actions
floppydata-0.1.2.tar.gz 172.3 kB With provenance Details for floppydata-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 380.6 kB

Release files / floppydata-0.1.2.tar.gz

Download URL floppydata-0.1.2.tar.gz
Size 172.3 kB
Tags Source
SHA-256 checksum
How to use checksums
17aec60c2383e9c63efc0385d94bb3e0ba2cfcdceccfdf4199ca63e438d51f20
BLAKE2b-256 checksum
How to use checksums
9075d7683ecdbccf16a85dedb4e19296b6851f6c5d483d51d282754d5600e73e
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 Oct 12, 2026.

Transparency log

Release files / floppydata-0.1.2-py3-none-any.whl

Download URL floppydata-0.1.2-py3-none-any.whl
Size 208.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a7f64f502f279db1cbed6c656857f9c282dfda1162bf6d9a8f3db8ca3146de2
BLAKE2b-256 checksum
How to use checksums
b497d401de81d1415d75ee5ca5e8a4196369d803094a2e98341b627a0e47160a
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 Oct 12, 2026.

Transparency log

Security for floppydata 0.1.2

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 floppydata-0.1.2.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 Oct 12, 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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

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