Hosted tool

Render page

Waiting on a key

Read text from a rendered web page.

web.renderversion 1

Price

0.01

credits per call

Availability

Waiting on a key

Waiting on its upstream credential.

Access

Waiting on a key

Category Web Tools

Input

{
  "additionalProperties": false,
  "properties": {
    "url": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "type": "object"
}

Result

object<{url:string,text:string}>

Default fields: url text

Limits

Synchronous deadline15 s
Maximum result65,536 bytes
Result pages1
Maximum upstream read1,048,576 bytes

Example call

Provisional: the invoke contract ships with the execution lane

curl https://haidercode.ai/v1/tools/web.render/invoke \
  -H "Authorization: Bearer <HK_KEY>" \
  -H "Content-Type: application/json" \
  -H 'Idempotency-Key: render-1' \
  -d '{"arguments":{"url":"…"},"max_credits":"0.05"}'

Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.

webpages

Back to the list