Skip to main content

riveter-sdk

Official Python SDK for the Riveter API — enrich data, build datasets, scrape pages, and run web searches.

Requires Python 3.9+. The import name is riveter.

Install

pip install riveter-sdk

Quickstart

from riveter import Riveter

# Reads RIVETER_API_KEY from the environment when api_key is not passed.
# Get a key at https://app.riveterhq.com/settings/api
riveter = Riveter(api_key="YOUR_API_KEY")

run = riveter.enrich(
    prompt="Research each company",
    attributes=["CEO", "Employee Count"],
    input={"Company": ["Apple", "Google"]},
)

result = riveter.runs.wait_for_result(run.id)
print(result.output)

The run lifecycle

Every async kickoff (enrich, datasets.build, extractions.run, ...) returns a run.

riveter.runs.get(run.id)                          # status + progress
riveter.runs.result(run.id, wait=50)              # output (long-polls up to 50s)
riveter.runs.wait_for_result(run.id, timeout=600) # poll until finished
riveter.runs.stop(run.id)                         # stop early

List runs with automatic pagination:

for run in riveter.runs.list(status="success").auto_paging_iter():
    print(run.id)

Datasets

A dataset is a kept table: input rows you add, output columns an enrichment fills.

dataset = riveter.datasets.create(
    name="Wineries",
    input_columns=["Winery URL"],
    rows=[{"Winery URL": "ridgewine.com"}, {"Winery URL": "bonnydoonvineyard.com"}],
)
riveter.datasets.update(dataset.id, output={"Owner": {"prompt": "The winery's current owner"}})
fill = riveter.enrich(dataset_id=dataset.id)
riveter.runs.wait_for_result(fill.id)
for row in riveter.datasets.list_rows(dataset.id).auto_paging_iter():
    print(row.input["Winery URL"], row.cells["Owner"].value)
csv = riveter.datasets.export(dataset.id)

datasets.create(prompt=..., count=...) generates the rows instead (paid; pass estimate_cost=True first). datasets.import_rows(id, csv) appends a CSV.

Surface

  • riveter.enrich(...), riveter.quick_search(...), riveter.search_agent(...), riveter.scrape(...), riveter.account()
  • riveter.runs — get, result, stop, list, summary, wait_for_result
  • riveter.enrichments — list, create, get, update, delete
  • riveter.datasets — list, create, get, update, delete, list_rows, add_rows, delete_rows, update_row, import_rows, build_rows, promote_column, export
  • riveter.tools — list
  • riveter.configured_datasets — build
  • riveter.extractions — create, get, run
  • riveter.monitors — create, list, get, update, runs

Responses are lightweight dataclasses; fields the SDK does not know yet stay reachable via .raw.

Errors and retries

API failures raise riveter.APIError with status, type (not_found, insufficient_credits, feature_not_enabled, ...; the known values are riveter.API_ERROR_TYPES), message, and optional details. Network failures raise APIConnectionError / APITimeoutError. 429s are retried automatically using the X-RateLimit-Reset header; 5xx and network failures are retried for GETs. Configure with max_retries and timeout.

Options

Riveter(
    api_key="...",                            # default: env RIVETER_API_KEY
    base_url="https://api.riveterhq.com/v1",  # default: env RIVETER_BASE_URL, then this
    timeout=60.0,                             # keep above 50 for `wait` long-polls
    max_retries=2,
)

Metadata

Release files for riveter-sdk 1.0.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 riveter-sdk 1.0.1
File Size Uploaded Provenance Actions
riveter_sdk-1.0.1.tar.gz 16.4 kB With provenance Details for riveter_sdk-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for riveter-sdk 1.0.1
File Interpreter ABI Platform Actions
riveter_sdk-1.0.1-py3-none-any.whl Python 3 none any Details for riveter_sdk-1.0.1-py3-none-any.whl

Total release size: 34.6 kB

Release files / riveter_sdk-1.0.1.tar.gz

Download URL riveter_sdk-1.0.1.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0cd0abbbf713cc2534d7aa32ca6d5cf6d06e467b5f51ec25cbfb66136c87524d
BLAKE2b-256 checksum
How to use checksums
c1497a11c446fb2ee3a624e28f34b79a7a2192c00c8680d1e8ded520fea205ae
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 Oct 27, 2026.

Transparency log

Release files / riveter_sdk-1.0.1-py3-none-any.whl

Download URL riveter_sdk-1.0.1-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
673ab23f419b15d8dd6768b8bf070e9a7ff13bcc86c1b34aabcb87f6abf9dc3a
BLAKE2b-256 checksum
How to use checksums
f9236eb8213b226d8ddf35a238d674630962c8ee2a8d97827bd964e1a1a9ca5a
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 Oct 27, 2026.

Transparency log

Security for riveter-sdk 1.0.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.

Select from 2 files

Attestation for riveter_sdk-1.0.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 Oct 27, 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