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

web_search

POST/web_search

Run one or many web searches in a single request. Each search is a { query, date_start?, date_end? } object. This is a convenience wrapper around a tool-only web_search enrichment — you don't need to create an enrichment first.

Handles a single search or up to 100,000 searches per request (larger batches fan out across the big-run pipeline).

Optionally filter each search to a date range with date_start / date_end (format YYYY-MM-DD). Dates are optional and may be set per-search — searches without dates are unfiltered. If only date_start is given, date_end defaults to today.

This is async: poll /run_status with the returned run_key, then fetch results with /run_data. Or pass a webhook_url to receive results when the run completes. Results come back under the search_results column alongside the query (and dates).

Quick Example (inline)

  curl -X POST https://api.riveterhq.com/v1/web_search \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "searches": [
      { "query": "OpenAI GPT-4o mini", "date_start": "2024-07-01", "date_end": "2024-07-31" },
      { "query": "Anthropic Claude 3.5 Sonnet" }
    ]
  }'

Quick Example (from a file)

For larger batches, put the body in a file and pass it with curl's @ syntax:

queries.json:

{
  "searches": [
    { "query": "OpenAI GPT-4o mini", "date_start": "2024-07-01", "date_end": "2024-07-31" },
    { "query": "Anthropic Claude 3.5 Sonnet", "date_start": "2024-06-01", "date_end": "2024-06-30" },
    { "query": "Google Gemini 2.0" }
  ],
  "webhook_url": "https://your-server.com/webhook"
}
  curl -X POST https://api.riveterhq.com/v1/web_search \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d @queries.json

Credit Costs

  • 0.04 credits per search.

Query parameters

run_keystring

Custom identifier for this run (optional, will be generated if not provided)

Request bodyrequired

searchesarray of objectrequired

One or more searches to run (up to 100,000).

Attributes
querystringrequired

The search query (required).

date_startstring

Optional start date filter, format YYYY-MM-DD.

date_endstring

Optional end date filter, format YYYY-MM-DD. Defaults to today if date_start is set.

webhook_urlstring uri

Optional URL to POST results to when the run completes.

Responses

200Search run initiated successfully
request_statusstringrequired

Status of the request

One of success error
messagestringrequired

Human-readable message

run_keystringrequired

Unique identifier for this run

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_cellsintegerrequirednullable

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. Present on every enrichment run; 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_namestringrequired

Name of the enrichment

enrichment_uuidstring uuidrequired

UUID of the enrichment

error_messagestringnullable

Error message if an error occurred

stopped_reasonstring

Why the run has status stopped. Only present on stopped runs. user_request: stopped through the API or the app. credit_limit: the account ran out of credits. error: the run failed (internal error, or every enrichment cell failed); error_message has the detail.

One of user_request credit_limit error
riveter_app_linkstringrequired

Direct link to view this run in the Riveter application

completion_estimateobject

Progress estimate. estimated_time_of_completion is only present mid-run; the fixed three-key shape lives in run_status.completion_estimate.

Attributes
total_rowsinteger

Input rows in the run

total_cells_expectedinteger
completed_cellsintegernullable
fully_completed_rowsintegernullable

Rows whose every enrichment cell has a value; null on a stopped run once its rows are merged

percent_completestring
estimated_seconds_remainingnumbernullable
estimated_time_of_completionstring date-timenullable
elapsed_secondsnumber
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
webhook_urlstring

Present only when the run was started with a webhook_url

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
409Conflict - resource already exists or conflicting state
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