Transform
Transform
POST
https://api.hyperdata.so/transform
Initiates a transformation of raw data into clean data.
Request Body
Request Headers
curl --request POST \
--url https://api.hyperdata.so/transform \
--header 'Authorization: Bearer YOUR_KEY_HERE' \
--header 'x-api-key: YOUR_TRANSFORM_KEY' \
--header 'Content-Type: application/json' \
--data "{\"raw_data\": \"${raw_data}\"}"
import requests
url = "https://api.hyperdata.network/transform"
payload = {
"raw_data": raw_data,
}
headers = {
"Authorization": f"Bearer {auth_key}",
"x-api-key": transformation_key
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
import axios from 'axios';
const options = {
method: 'POST',
url: 'https://api.hyperdata.network/transform',
headers: {'Authorization': 'Bearer YOUR_KEY_HERE', 'x-api-key': transformation_key, 'Content-Type': 'application/json'},
data: {raw_data: raw_data}
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
{
'process_uuid': '236cf603-636d-4be2-ad52-d807e56b35ca',
'status': 'completed'
}
{
'type': 'https://httpproblems.com/http-status/401',
'title': 'Unauthorized',
'status': 401,
'detail': 'Authorization Failed',
'instance': '/transform',
'trace': {}
}
{
'process_uuid': '236cf603-636d-4be2-ad52-d807e56b35ca',
'status': 'error',
'message':'Error log here...'
}
Last updated