# JSON POST Request Builder

**Use case:** 

Generate cURL, fetch, axios, and Python code for JSON POST requests with headers, body formatting, and bearer auth placeholders.

## Input

```json
{
  "requests": [
    {
      "url": "https://httpbin.org/post",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json"
      },
      "body": "{\"name\": \"Jane Doe\", \"email\": \"jane@example.com\"}",
      "bodyType": "json",
      "auth": {
        "type": "bearer",
        "token": "YOUR_TOKEN_HERE"
      },
      "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.