---
title: "HTTP to cURL (x402)"
method: GET
path: "/x402/v2/http-to-curl"
tags: ["x402"]
---

# HTTP to cURL (x402)

`GET /x402/v2/http-to-curl`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/http-to-curl`
- Auth: none required

Convert HTTP request parameters to curl command + equivalent fetch/axios code. Supports auth, headers, body. Algorithmic.

## Query parameters

- `url` string, required
- `auth` object
- `body` unknown
- `method` string
- `headers` object

## Response `200`

Success

- object
  - `curl_command` string
  - `equivalent_axios` string
  - `equivalent_fetch` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
