Quay lại
🔄 Tool 23 · cURL Converter
cURL Converter
Paste cURL command → convert sang fetch (JS), axios (Node), requests (Python), net/http (Go). Parse method, headers, body, json.
cURL command
const response = await fetch("https://api.alodev.vn/v1/leads", {
method: "POST",
headers: {
"Authorization": "Bearer xxx",
"Content-Type": "application/json"
},
body: "{\"name\":\"Trần Văn A\",\"email\":\"a@example.com\",\"budget\":\"30-60tr\"}"
});
const data = await response.json();Parsed structure
| Method | POST |
| URL | https://api.alodev.vn/v1/leads |
| Header | Authorization: Bearer xxx |
| Header | Content-Type: application/json |
| Body | {"name":"Trần Văn A","email":"a@example.com","budget":"30-60tr"} |