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

Scrape

POST/scrape

Scrape a webpage and return the text content. This endpoint allows you to extract text content from any public webpage.

Quick Example

  curl -X POST https://api.riveterhq.com/v1/scrape \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Credit Costs

  • With proxy: 0.30 credits
  • Without proxy: 0.10 credits
  • From cache: 0.01 credits

Proxy Usage

Scraping is not guaranteed to succeed without a proxy. Some websites may block requests or require specific geographic locations. Using a proxy may be necessary to guarantee results.

To use a proxy, include the proxy_country_code parameter with a two-character country code (e.g., 'us', 'gb', 'de').

Caching

By default, recently scraped pages are cached to save credits. If you hit a recently cached webpage, the scrape only costs 0.01 credits. To always fetch fresh content, set skip_cache to true.

Response

The response includes:

  • text: The extracted text content from the webpage
  • url: The URL that was scraped
  • base_url_for_links: The base URL for resolving relative links
  • status_code: The HTTP status code returned by the server (e.g., 200, 404, 500)
  • possibly_blocked: (optional) Boolean flag if the page may be blocked by anti-scraping measures
  • credit_used: The number of credits consumed
  • riveter_app_link: Direct link to view this scrape in the Riveter application

Request bodyrequired

urlstring urirequired

The URL to scrape

proxy_country_codestring

Optional two-character country code for proxy (e.g., 'us', 'gb', 'de')

Pattern ^[a-z]{2}$
skip_cacheboolean

Set to true to bypass cache and always fetch fresh content

Default false

Responses

200Webpage scraped successfully
request_statusstringrequired

Status of the request

One of success error
messagestringrequired

Human-readable message

run_keystringrequired

Unique identifier for this scrape run

dataobjectrequired
Attributes
urlstring urirequired

The URL that was scraped

textstringrequired

The extracted text content from the webpage

base_url_for_linksstring urirequired

The base URL for resolving relative links

status_codeinteger

The HTTP status code returned by the server (e.g., 200, 404, 500)

Example 200
possibly_blockedboolean

Optional flag indicating if the page may be blocked by anti-scraping measures (captcha, access denied, etc.)

credit_usednumberrequired

Number of credits consumed (0.01 for cache hit, 0.10 without proxy, 0.30 with proxy)

riveter_app_linkstring urirequired

Direct link to view this scrape in the Riveter application

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
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