{"uid":"cap_tPJ_-4j3VXuEmOgJDxyjL","slug":"strale-curl-to-code-converter-eac785f7","name":"Strale curl-to-code Converter","description":"Convert a curl command to equivalent code in TypeScript, Python, Go, Rust, Java, or PHP.","url":"https://api.strale.io/x402/v2/curl-to-code","method":"GET","headers":{},"bodySchema":{"type":"object","required":["curl_command"],"properties":{"curl_command":{"type":"string"},"target_language":{"type":"string"}}},"responseSchema":{"code":{"type":"string"},"notes":{"type":"array"},"language":{"type":"string"},"dependencies_needed":{"type":"array"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.054","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.054/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lpaSfLjBPdADYlfQlrbWQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a curl command into equivalent code in a target programming language","exampleAgentPrompt":"Convert this curl command to Python for me: `curl -X GET 'https://api.example.com/users?page=1' -H 'Authorization: Bearer mytoken123'`","exampleUseCases":[{"title":"Curl to Python migration","prompt":"I have this curl command and need it as Python requests code: `curl -H 'Accept: application/json' -H 'Authorization: Bearer abc123' https://api.example.com/orders`"},{"title":"Quick SDK snippet for frontend","prompt":"Turn this curl into JavaScript fetch code so I can drop it into my frontend: `curl -X GET 'https://payments.example.com/v1/balance' -H 'x-api-key: sk_test_xyz'`"},{"title":"Onboarding doc code samples","prompt":"I'm writing API docs and need to show this curl as a Go example — can you convert it? `curl -X DELETE 'https://api.example.com/sessions/abc-123' -H 'Authorization: Bearer token99'`"}],"resultDescription":"Returns a code snippet in the requested target language that replicates the HTTP request described by the input curl command, along with a cryptographic audit record for traceability.","failureModes":["Missing or malformed curl_command parameter returns a validation error","Unsupported HTTP method (only GET, HEAD, DELETE allowed) returns a 422 error","Unparseable curl syntax causes conversion failure","Unrecognized target_language may return a generic or empty snippet","Network timeout or upstream service error returns a 5xx"],"whenToPreferThis":"Choose this endpoint when you need a quick, auditable conversion of a curl command to code in a specific language without setting up a local tool. Especially useful for AI agents generating onboarding docs, developer tutorials, or scaffolding code snippets where provenance and audit trail matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:14:45.110Z","isFirstParty":false}