curl -H "Authorization: Bearer <token>" -d '{
"text": [INPUT TEXT],
"schema": {
"product": {
"type": "object",
"properties": {
"title": { "type": "string" },
"brand": { "type": "string" },
"price": {
"type": "number",
},
"currency_code": {
"type": "string"
},
"color": {
"type": "string",
}
}
}
}
}' https://api.isomeric.ai/generate
{
"product": {
"brand": "Aura",
"color": "Gravel with White Mat",
"currency_code": "USD",
"price": "179.00",
"title": "Carver Mat"
}
}
Use this endpoint to design your own prompt for transforming website text into structured JSON.
curl -H "Authorization: Bearer <token>" -d '{
"text": [INPUT TEXT],
"schema": {
"product": {
"type": "object",
"properties": {
"title": { "type": "string" },
"brand": { "type": "string" },
"price": {
"type": "number",
},
"currency_code": {
"type": "string"
},
"color": {
"type": "string",
}
}
}
}
}' https://api.isomeric.ai/generate
{
"product": {
"brand": "Aura",
"color": "Gravel with White Mat",
"currency_code": "USD",
"price": "179.00",
"title": "Carver Mat"
}
}
Show Toggle object
json
you specified in the schema
key of your request unless you set mode
to stream
.
curl -H "Authorization: Bearer <token>" -d '{
"text": [INPUT TEXT],
"schema": {
"product": {
"type": "object",
"properties": {
"title": { "type": "string" },
"brand": { "type": "string" },
"price": {
"type": "number",
},
"currency_code": {
"type": "string"
},
"color": {
"type": "string",
}
}
}
}
}' https://api.isomeric.ai/generate
{
"product": {
"brand": "Aura",
"color": "Gravel with White Mat",
"currency_code": "USD",
"price": "179.00",
"title": "Carver Mat"
}
}