cURL to Dart converter
Turn your cURL command into Dart code. Paste, convert, and get back to building.
Your cURL command
Try an example
import 'package:http/http.dart' as http;
final response = await http.get(
Uri.parse("https://example.com/products?page=1"),
headers: {
"Accept": "text/html",
"User-Agent": "MyApp/1.0"
},
);
print(response.body);No requests are sent to the target website ·⌘ / CtrlEnterto convert
Python example from the docs. Add your API key and set your target URL.
import requests
import json
API_KEY = ""
host = "api.scrapeless.com"
url = f"https://{host}/api/v2/unlocker/request"
payload = json.dumps({
"actor": "unlocker.webunlocker",
"input": {
"url": "https://httpbin.io/get",
"redirect": False,
"method": "GET"
},
"proxy": {"country": "ANY"}
})
headers = {
"Content-Type": "application/json",
"x-api-token": f'{API_KEY}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)Python · Web Unlocker
One request. Three simple steps.
Move from your terminal or browser DevTools to the language you actually work in.
Copy your cURL command
Use a terminal command, or select “Copy as cURL (bash)” from your browser’s Network tab.
Choose your language
Convert to Python, Node.js, Go and more. Review the method, headers, cookies and body in the result.
Copy the code. Make it yours.
Install the indicated library and run it in your project. Explore the Scrapeless documentation when you are ready to scale.
Speak your language
29 programming languages. Plus Axios and Fetch for Node.js.

cURL to Python
Python · requests

cURL to JavaScript
Fetch API · browser

cURL to TypeScript
Fetch API · typed

cURL to Go
net/http · Go 1.22

cURL to Rust
reqwest · async

cURL to Java
HttpClient · Java 11+

cURL to C#
HttpClient · .NET 8

cURL to PHP
cURL extension

cURL to Ruby
net/http · Ruby 3

cURL to Kotlin
OkHttp · JVM

cURL to Swift
URLSession · iOS

cURL to Dart
package:http

cURL to C
libcurl

cURL to Clojure
clj-http

cURL to Elixir
Req

cURL to R
httr2

cURL to Haskell
http-client

cURL to Julia
HTTP.jl

cURL to Lua
LuaSocket

cURL to Objective-C
NSURLSession

cURL to Perl
LWP::UserAgent

cURL to PowerShell
Invoke-RestMethod

cURL to Scala
sttp client

cURL to Shell
curl · normalized

cURL to ClojureScript
fetch · browser

cURL to Node.js Fetch
Node.js · native fetch

cURL to Node.js Axios
Node.js · Axios

cURL to Crystal
HTTP::Client

cURL to Groovy
HttpURLConnection

cURL to OCaml
Cohttp

cURL to MATLAB
webwrite
More Language coming soon.
GOOD TO KNOWA few answers.
Then back to code.
Questions about conversion,
privacy, or running your request?
Explore documentation
A few answers. Then back to code.
Questions about conversion, privacy, or running your request?
Explore documentationIs this cURL converter free?
Does my cURL command leave my browser?
Which cURL options can I convert?
Why does my converted request return 403?
Does the converter send my request?
How do I start using Scrapeless?
From your first request to your next million
Built Something? Keep It Running.