To JSON

/api/v1/ai/ToJSON – Convert HTML to a Structured JSON Object

Description: Convert an HTML document into a structured JSON object.

Method: POST

Parameters:

  • html: (string) – The HTML document to convert.

  • responseFormat: (string) – The format of the response, typically json.

Request Example:

curl -X POST https://production.cloudbrowser.ai/api/v1/ai/ToJSON \
-H "Content-Type: application/json" \
-d '{
  "html": "<html>...</html>",
  "responseFormat": "json"
}'

Last updated