actors

Estimate a run's cost, without running it

A dry run of the billing: validate the input exactly as a run would, ask the actor how many pages it can open for it, and price that on every pool the actor may use.

Nothing is created or reserved. The dashboard calls this as the customer edits the form so the reservation they are about to make is never a surprise; an API caller can use it to size a batch before spending on it.

post/v1/actors/{slug}/estimate

Request

  • Base URL: https://barchin.net/api
  • URL: https://barchin.net/api/v1/actors/{slug}/estimate
  • Auth: HTTP bearer

Path parameters

slugstring required

Request body

urlstring nullable

Example request

{
  "url": "https://torob.com/p/16080a39-171a-4b75-8b76-fcd95e26983e/"
}

Response

Successful Response

actor_slugstring required
base_creditsinteger required
page_budgetinteger required
js_enabledboolean required
auto_holdinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.