Curl To Code
curl_to_codeConvert a curl command (copied from browser dev tools, API docs or a terminal) into ready-to-run code: Python requests, JavaScript fetch, Node axios, Go net/http, PHP curl, Rust reqwest, HTTPie and PowerShell. Handles quoting ($'…', "…", line continuations), -X / -H / -d / --data-raw / --data-binary / --data-urlencode / --json / -F multipart / -u basic auth / -b cookies / -A / -e / -G / -I / -L / -k / --max-time / -x proxy / --oauth2-bearer and combined short flags. Also returns the parsed request (method, URL, headers, body) and warnings for options that cannot be expressed. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/curl-to-code
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "curl_to_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The curl command | |
| targets | No | Languages to generate ("all" for every target) |