Go to example tasks

Product HTML to JSON (example)

Paste messy product HTML and get clean JSON back: name, price, currency and stock status, in exactly the fields you choose. Swap in your own HTML and schema.

Try for free
spruce_the_data: messy HTML and text to clean JSON
spruce_the_data: messy HTML and text to clean JSONsprucethedata/clean-json
Index
URL
Status
Data
+2 fields
Text
Number
Boolean
List
Object

Input

Texts to clean:<h1> Stellar Gooseneck Kettle 1.0L </h1><span class="price">$49.99</span> In stock
Output JSON Schema:{3 fields}

Output fields

Index
URL
Status
Data
Dropped fields
Error

How it works

Sign up on Apify or log in

The spruce_the_data: messy HTML and text to clean JSON Actor is ready to run with the inputs already set for "Product HTML to JSON (example)". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Product HTML to JSON (example)" task

The spruce_the_data: messy HTML and text to clean JSON Actor will start running based on the input automatically. You can also change all the input fields, like texts to clean and output json schema, to match your specific use case.

Receive the "Product HTML to JSON (example)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as index, URL, status, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Product HTML to JSON (example)" task via API.

Image

Integrate "Product HTML to JSON (example)" into your workflow

Connect "Product HTML to JSON (example)" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay