# Send Bulk POST Requests to an API with Retries

**Use case:** 

Send several POST requests with a JSON body and get one result row per request. Failures such as 429 or 503 are retried with backoff and a Retry-After header is honored. This example posts two records to a test API. Replace the URL, body and secret headers with your own.

## Input

```json
{
  "requests": [
    {
      "id": "create-1",
      "url": "https://jsonplaceholder.typicode.com/posts",
      "method": "POST",
      "json": {
        "title": "first",
        "body": "hello",
        "userId": 1
      }
    },
    {
      "id": "create-2",
      "url": "https://jsonplaceholder.typicode.com/posts",
      "method": "POST",
      "json": {
        "title": "second",
        "body": "world",
        "userId": 1
      }
    }
  ],
  "method": "GET",
  "includeResponseHeaders": false,
  "retries": 3,
  "backoffSecs": 1,
  "retryStatusCodes": [
    429,
    500,
    502,
    503,
    504
  ],
  "retryUnsafeMethods": false,
  "followRedirects": true,
  "maxRedirects": 5,
  "maxRequests": 1000,
  "maxBodyBytes": 1000000,
  "timeoutSecs": 30,
  "concurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "statusCode": {
    "label": "Status",
    "format": "integer"
  },
  "contentType": {
    "label": "Content type",
    "format": "string"
  },
  "bodyType": {
    "label": "Body type",
    "format": "string"
  },
  "bodySize": {
    "label": "Bytes",
    "format": "integer"
  },
  "body": {
    "label": "Body",
    "format": "object"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The HTTP Request Runner: Bulk API Calls, Retries, Proxies Actor is ready to run with the inputs already set for "Send Bulk POST Requests to an API with Retries". [Sign up or log in](https://console.apify.com/create-task-from-example/cYSuQFUjOMogJGpTu) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Send Bulk POST Requests to an API with Retries" task

The HTTP Request Runner: Bulk API Calls, Retries, Proxies Actor will start running based on the input automatically. You can also change all the input fields, like requests, default method for urls, and more, to match your specific use case.

### 3. Receive the "Send Bulk POST Requests to an API with Retries" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, status, content type, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Send Bulk POST Requests to an API with Retries" task via API](https://apify.com/data-done-right/http-request-runner.md).

## About this Actor

This example demonstrates how to use [HTTP Request Runner: Bulk API Calls, Retries, Proxies](https://apify.com/data-done-right/http-request-runner.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data-done-right/http-request-runner.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/data-done-right/http-request-runner.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
