# API Docs Code Snippet Generator

**Use case:** 

Convert a batch of cURL examples into Python, Node.js, Java, C#, and Ruby snippets for API docs.

## Input

```json
{
  "curlCommands": [
    "curl -X PATCH https://api.example.com/v2/orders/ord_123 -H 'Content-Type: application/json' -H 'X-API-Key: demo' -d '{\"status\":\"shipped\"}'",
    "curl https://api.example.com/v2/orders/ord_123/events -H 'X-API-Key: demo'"
  ],
  "languages": [
    "python",
    "node-fetch",
    "java",
    "csharp",
    "ruby"
  ]
}
```

## Output

```json
{
  "curlCommand": {
    "label": "cURL Command",
    "format": "text"
  },
  "conversions": {
    "label": "Conversions",
    "format": "object"
  },
  "errors": {
    "label": "Errors",
    "format": "object"
  },
  "success": {
    "label": "Success",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [cURL to Code Converter](https://apify.com/automation-lab/curl-to-code-converter) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/curl-to-code-converter) to learn more, explore other use cases, and run it yourself.