Data Transform
Detect JSON types API
Reports the JSON type of a value, plus per-key types for objects or distinct element types for arrays (distinguishing integer vs number). Answers 'What are the types of each field?', 'Is this number an integer or a float?'.
Price$0.01per request
MethodPOST
Route/v1/data-transform/detect-types
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformtypesdetectschemajsoninspectwrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/detect-typesExample request
{
"value": {
"id": 1,
"name": "x",
"ratio": 1.5,
"active": true
}
}Example response
{
"type": "object",
"keyTypes": {
"id": "integer",
"name": "string",
"ratio": "number",
"active": "boolean"
}
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "object",
"examples": [
{
"id": 1,
"name": "x",
"ratio": 1.5,
"active": true
}
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}