Convert any data to JSON
Working with unstructured data is a nightmare. Our API helps you extract information from any source, like html, and convert it to JSON.
- Web scraping
- Data extraction
- Email processing
How to Use Our API
await fetch("https://jsonanything.com/api/json", {
method: "POST",
body: JSON.stringify({
text: "Introducing the new Smartphone X with 5G connectivity, AI-powered camera, and all-day battery life. Get yours now for $799.99. Limited stock available!",
schema: {
product: {
type: "string",
description: "Name of the product"
},
features: {
type: "array",
items: { type: "string" },
description: "List of product features"
},
price: {
type: "number",
description: "Price of the product"
},
inStock: {
type: "boolean",
description: "Whether the product is in stock"
}
}
})
})
Structured Output
{
"data": {
"product": "Smartphone X",
"features": [
"5G connectivity",
"AI-powered camera",
"All-day battery life"
],
"price": 799.99,
"inStock": true
}
}