SANDBASE TOOLS
cURL to Python, JavaScript and Node.js
Paste a cURL command copied from API docs or browser dev tools and get the same request as ready-to-run code.
RUNS IN YOUR BROWSERNOTHING UPLOADEDNO WATERMARK
import requests
headers = {
"Authorization": "Bearer $SANDBASE_API_KEY",
}
payload = {
"model": "anthropic/claude-sonnet-5.5",
"messages": [
{
"role": "user",
"content": "Hello",
},
],
}
response = requests.request("POST", "https://api.sandbase.ai/v1/chat/completions", headers=headers, json=payload)
print(response.status_code)
print(response.text)How to use it
- Step 1
- Paste a cURL command. Line breaks with a trailing backslash are fine.
- Step 2
- Pick Python, JavaScript fetch or Node.js.
- Step 3
- Copy the code.
Frequently asked questions
- Which cURL options are supported?
- The URL, -X/--request, -H/--header, -d/--data, --data-raw, --data-binary, --json, -u/--user, -G/--get, -F/--form text fields and --compressed. Other flags are ignored and listed under the code.
- Does it send the request?
- No. It only rewrites the command. Nothing is sent and nothing leaves your browser.
- Can I convert SandBase API calls?
- Yes. Every model and API page on SandBase has a cURL example you can paste here.
Build with SandBase APIs
When the job outgrows a browser tool: models and APIs on one key, billed per call.
- Firecrawl Web SearchFirecrawl · $0.015/call
- Baidu SearchBaidu · $0.01/call
- Bing SearchBing · $0.01/call
- Google SearchGoogle · $0.01/call
- Naver SearchNaver · $0.01/call
- Yahoo SearchYahoo · $0.01/call
- Yandex SearchYandex · $0.01/call
- Firecrawl Page ScraperFirecrawl · $0.0075/call
- Cloudsway Web SearchCloudsway · $0.005/call
- Scholar Web SearchScholar · $0.0036/call
- Brave Web SearchBrave · $0.005/call
- DataForSEO Google Dataset Search ResultsDataForSEO · From $0.002/call
- DataForSEO YouTube Search ResultsDataForSEO · From $0.002/call
- Exa SearchExa · $0.0105/call
- Querit Web SearchQuerit · From $0.0048/call
- Similarweb SERP Players - AggregatedSimilarweb · From $0.15/call
- Similarweb SERP Players - Clicks over timeSimilarweb · From $0.075/call
- Tavily SearchTavily · $0.012/call
- AAA Search News ArticlesAAA · $0.01/call
- AccuWeather Search LocationsAccuWeather · $0.01/call
- Baidu News SearchBaidu · $0.015/call
- Bing Images SearchBing · $0.015/call
- Bing Reverse Image SearchBing · $0.01/call
- Bing Videos SearchBing · $0.015/call
- Brave Image SearchBrave · $0.005/call
- Brave Place SearchBrave · $0.005/call
- Brave News SearchBrave · $0.005/call
- Brave Video SearchBrave · $0.005/call
- Brave Rich SearchBrave · $0.005/call
- DuckDuckGo News SearchDuckDuckGo · $0.015/call
- DuckDuckGo SearchDuckDuckGo · $0.015/call
- Naver Blog SearchNaver · From $0.032/call
- WeChat SearchWeChat Search · $0.01/call
- Weibo Advanced SearchWeibo · $0.001/call
- Yahoo Images SearchYahoo · $0.015/call
- Yahoo Videos SearchYahoo · $0.015/call
More tools
Free11.3K runs
Free · Developer tools
JSON Formatter & Validator
Format, minify and validate JSON, with the line and column of the first syntax error.
Free9.3K runs
Free · Developer tools
JSON to CSV Converter
Turn a JSON array into a CSV file or spreadsheet, with nested fields flattened into columns.
Free8.6K runs
Free · Developer tools
Base64 Encoder & Decoder
Encode text or files to Base64 and decode Base64 back to text, with UTF-8 and URL-safe options.
