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.3.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 riveter-sdk 1.3.0
File Size Uploaded Provenance Actions
riveter_sdk-1.3.0.tar.gz 17.0 kB With provenance Details for riveter_sdk-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 35.8 kB

Release files / riveter_sdk-1.3.0.tar.gz

Download URL riveter_sdk-1.3.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7dd8b0a9a84b38382f2d579e2fffa11fe3916becf15bf081f6b7d9dd21cd1fb7
BLAKE2b-256 checksum
How to use checksums
4673c1df56bf15dd6bc5a74944f923cb15f47cd14aeeb166d34ab32cc1ce182a
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 17, 2026.

Transparency log

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

Download URL riveter_sdk-1.3.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c81e572b804f0f82c00cadaa1e02bcfae44faafb951d4c4a88ee78d26cec92b
BLAKE2b-256 checksum
How to use checksums
39d113656fd2702346e1068e04465cfa6aa060a487adbe0af98edf3948a41b68
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 17, 2026.

Transparency log

Security for riveter-sdk 1.3.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 riveter_sdk-1.3.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 17, 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