# HTTP Request Code Generator

**Use case:** 

Convert an HTTP API request into ready-to-use cURL, JavaScript fetch, axios, and Python requests snippets.

## Input

```json
{
  "requests": [
    {
      "url": "https://api.github.com/repos/apify/apify-sdk-js",
      "method": "GET",
      "headers": {
        "Accept": "application/vnd.github+json"
      },
      "outputFormats": [
        "curl",
        "fetch",
        "axios",
        "python"
      ]
    }
  ],
  "includeComments": true,
  "prettyPrint": true
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "text"
  },
  "method": {
    "label": "Method",
    "format": "text"
  },
  "curl": {
    "label": "cURL",
    "format": "text"
  },
  "fetch": {
    "label": "fetch (JS)",
    "format": "text"
  },
  "axios": {
    "label": "axios",
    "format": "text"
  },
  "python": {
    "label": "Python requests",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [HTTP Request Builder](https://apify.com/automation-lab/http-request-builder) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/http-request-builder) to learn more, explore other use cases, and run it yourself.