curl --request POST \
--url https://api.example.com/api/parseInstructions \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>"
}
'{
"success": true,
"data": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}Extract structured cooking instructions from raw HTML or text using AI
curl --request POST \
--url https://api.example.com/api/parseInstructions \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>"
}
'{
"success": true,
"data": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}/api/parseInstructions endpoint extracts structured cooking instruction steps from raw HTML or text content. It uses AI to parse instructions while preserving all important details like temperatures, times, and techniques.
This endpoint is useful when you have recipe HTML content but need to extract just the cooking instructions in a clean, structured format.
true for successful responsesShow Parsed Data Structure
[
"Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.",
"In a medium bowl, whisk together flour, baking powder, and salt.",
"Beat eggs one at a time, mixing well after each addition."
]
false for error responsescurl -X POST https://your-domain.com/api/parseInstructions \
-H "Content-Type: application/json" \
-d '{
"text": "<h2>Instructions</h2><ol><li>Preheat oven to 350°F.</li><li>Mix flour and sugar.</li><li>Bake for 30 minutes.</li></ol>"
}'
{
"success": true,
"data": "[\"Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.\",\"In a medium bowl, whisk together 2 1/2 cups all-purpose flour, 1 teaspoon baking powder, 1/2 teaspoon baking soda, and 1/4 teaspoon salt. Set aside.\",\"In a large bowl, using an electric mixer on medium speed, cream together 3/4 cup unsalted butter and 1 3/4 cups granulated sugar until light and fluffy, about 3-4 minutes.\",\"Beat in 3 large eggs, one at a time, mixing well after each addition. Stir in 1 1/2 teaspoons vanilla extract.\",\"Bake for 28-32 minutes, or until a toothpick inserted in the center comes out clean.\"]"
}
data field contains:
[
"Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.",
"In a medium bowl, whisk together 2 1/2 cups all-purpose flour, 1 teaspoon baking powder, 1/2 teaspoon baking soda, and 1/4 teaspoon salt. Set aside.",
"In a large bowl, using an electric mixer on medium speed, cream together 3/4 cup unsalted butter and 1 3/4 cups granulated sugar until light and fluffy, about 3-4 minutes.",
"Beat in 3 large eggs, one at a time, mixing well after each addition. Stir in 1 1/2 teaspoons vanilla extract.",
"Bake for 28-32 minutes, or until a toothpick inserted in the center comes out clean."
]
{
"success": false,
"error": {
"code": "ERR_NO_RECIPE_FOUND",
"message": "Text input is empty"
}
}