APILegacy
Legacy API. These endpoints keep working. New integrations should use the current API.
Runs

run_data

GET/run_data

Legacy. Use GET /runs/{id}/result for new work.

Retrieve the processed data from a completed run.

Quick Example

  curl -X GET "https://api.riveterhq.com/v1/run_data?run_key=YOUR_RUN_KEY" \
  -H "Authorization: Bearer YOUR_API_KEY"

The run key comes from the endpoint that started the run — e.g. /run_enrichment or /run_extraction. The shape of formatted_data depends on the run type — see the response schema variants.

Query parameters

run_keystringrequired

The run key (UUID) of the run to retrieve data for

Responses

200Run data retrieved successfully
One of
  • EnrichmentDataResponse model →
    request_statusstringrequired

    Status of the request

    One of success error
    messagestringrequired

    Human-readable message

    run_keystringrequired

    Unique identifier for this run

    formatted_dataone ofrequired

    Columnar results. May be null while the run is still processing (large runs); poll /run_status and read the data once the run is success or stopped.

    Attributes
    One of
    • EnrichmentFormattedData model →
      valuestring | object | array | number | booleanrequirednullable

      Cell result. Plain columns return text; columns configured with format "json" return the parsed JSON value (object or array). Cells not yet processed mid-run can be null.

    • null

    Legacy nested status object on /run_data (clients read status.status). Its key set varies by run type — prefer the top-level run_status object (RunStatusObject), which has a fixed shape everywhere.

    Attributes
    statusstringrequired

    Current status of the run

    One of pending enqueued processing success stopped
    credits_usednumberrequired

    Number of credits consumed by this run

    total_cells_expectedintegerrequired

    Total number of cells that need to be processed (rows × columns)

    completed_cellsintegerrequired

    Number of cells successfully completed

    not_found_cellsintegernullable

    Number of cells with 'not found' results. Null while a run over 5,000 rows is still in progress; final once the run finishes.

    chunks_processedintegernullable

    Number of input chunks finished so far; null until processing starts.

    project_namestringrequired

    Name of the enrichment (also available as enrichment_name)

    project_uuidstring uuidrequired

    UUID of the enrichment (also available as enrichment_uuid)

    enrichment_namestring

    Name of the enrichment

    enrichment_uuidstring uuid

    UUID of the enrichment

    error_messagestringnullable

    Error message if an error occurred

    riveter_app_linkstringrequired

    Direct link to view this run in the Riveter application

    run_statusRunStatusObjectrequired

    Stable nested status object. The SAME key set is returned for every run type (enrichment, big run, list build, extraction, scrape, search) and on every surface — /run_status, /run_data, /monitor_recent_run_data, run kickoff responses, and webhook payloads. Keys a run type can't provide are null rather than omitted.

    Attributes
    run_keystringrequired
    run_typestringrequired

    e.g. external_api, dataset_build, extraction_plan_run, scrape_only, search_only

    statusstringrequired
    One of pending enqueued processing success stopped
    error_messagestringrequirednullable
    credits_usednumberrequired

    Credits consumed, including fractional credits

    total_cells_expectedintegerrequirednullable
    completed_cellsintegerrequirednullable
    not_found_cellsintegerrequirednullable
    enrichment_uuidstring uuidrequirednullable
    enrichment_namestringrequirednullable
    riveter_app_linkstringrequirednullable
    started_atstring date-timerequirednullable
    finished_atstring date-timerequirednullable
    completion_estimateobjectrequired
    Attributes
    percent_completestringnullable

    e.g. "42.5%"

    estimated_seconds_remainingnumbernullable
    elapsed_secondsnumbernullable
  • ExtractionRunDataResponse model →
    request_statusstringrequired
    One of success error
    messagestring
    run_keystringrequired
    formatted_dataarray of objectrequirednullable

    Array of record objects matching the plan's output_record_json_schema. Records can contain nested objects and arrays. null until the run is terminal and has produced records.

    statusobjectrequired

    Run status details — same fields as ExtractionRunStatusResponse, minus request_status/message/run_key

    run_statusRunStatusObjectrequired

    Stable nested status object. The SAME key set is returned for every run type (enrichment, big run, list build, extraction, scrape, search) and on every surface — /run_status, /run_data, /monitor_recent_run_data, run kickoff responses, and webhook payloads. Keys a run type can't provide are null rather than omitted.

    Attributes
    run_keystringrequired
    run_typestringrequired

    e.g. external_api, dataset_build, extraction_plan_run, scrape_only, search_only

    statusstringrequired
    One of pending enqueued processing success stopped
    error_messagestringrequirednullable
    credits_usednumberrequired

    Credits consumed, including fractional credits

    total_cells_expectedintegerrequirednullable
    completed_cellsintegerrequirednullable
    not_found_cellsintegerrequirednullable
    enrichment_uuidstring uuidrequirednullable
    enrichment_namestringrequirednullable
    riveter_app_linkstringrequirednullable
    started_atstring date-timerequirednullable
    finished_atstring date-timerequirednullable
    completion_estimateobjectrequired
    Attributes
    percent_completestringnullable

    e.g. "42.5%"

    estimated_seconds_remainingnumbernullable
    elapsed_secondsnumbernullable
400Bad request - invalid input or missing required parameters
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
401Unauthorized - invalid or missing API key
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
403Forbidden - API access not enabled for account
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
404Resource not found
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
422Unprocessable entity - validation failed
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable