Home / Cost tools / cURL converter / JSON
cURL to JSON converter
Paste a cURL command and get the request as plain JSON: method, address, query, headers and body. It converts in your browser; nothing you paste is sent anywhere.
Converted in your browser. Nothing you paste is stored or sent, so a command with your API key in it stays on your machine.
{
"method": "GET",
"url": "https://api.scraper.example/v1/scrape?url=https%3A%2F%2Fshop.example.com%2Fproducts%3Fpage%3D2&render_js=true&country=us",
"query": {
"url": "https://shop.example.com/products?page=2",
"render_js": "true",
"country": "us"
},
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
} Running the code
The request as plain JSON: method, URL, query parameters, headers and body, for storing a request, putting it in a test fixture or handing it to another tool.
What the JSON leaves out
Nothing is sent. Basic authentication is kept as plain username and password fields rather than encoded, so remove them before you share the file.
What calls like this one cost
The example is a scraping API call with JavaScript rendering on and a country chosen. 100,000 of them a month cost from $49.00 on ScrapeBadger, and the same pages without rendering from $19.00 on BrowserCloud, the cheapest complete bills across 27 web scraping APIs this site prices from their own pages. What rendering adds on each API