# Send a batch of HTTP API requests and save the answers

**Use case:** 

List HTTP requests (any method, headers and body) and get each status code, headers, timing and response body in a dataset. Handy for API checks, webhooks and no-code workflows. This example sends a GET, a JSON POST and an API call.

## Input

```json
{
  "requests": [
    {
      "url": "https://httpbin.org/get",
      "label": "simple GET"
    },
    {
      "url": "https://httpbin.org/post",
      "method": "POST",
      "body": {
        "hello": "world"
      },
      "label": "JSON POST"
    },
    {
      "url": "https://api.github.com/repos/apify/crawlee",
      "headers": {
        "Accept": "application/vnd.github+json"
      },
      "label": "public API"
    }
  ],
  "maxResponseMb": 2,
  "timeoutSeconds": 30,
  "followRedirects": true,
  "parseJson": true
}
```

## Output

```json
{
  "requestIndex": {
    "label": "#",
    "format": "number"
  },
  "label": {
    "label": "Label"
  },
  "method": {
    "label": "Method"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "statusCode": {
    "label": "Status",
    "format": "number"
  },
  "ok": {
    "label": "OK",
    "format": "boolean"
  },
  "elapsedMs": {
    "label": "Time (ms)",
    "format": "number"
  },
  "contentType": {
    "label": "Content type"
  },
  "bodyBytes": {
    "label": "Bytes",
    "format": "number"
  },
  "truncated": {
    "label": "Truncated",
    "format": "boolean"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

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

The HTTP Request Runner (bulk API calls, GET, POST, JSON) Actor is ready to run with the inputs already set for "Send a batch of HTTP API requests and save the answers". [Sign up or log in](https://console.apify.com/create-task-from-example/hbId0TKnuvbGjHwPE) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Send a batch of HTTP API requests and save the answers" task

The HTTP Request Runner (bulk API calls, GET, POST, JSON) Actor will start running based on the input automatically. You can also change all the input fields, like requests, max response size (mb), and more, to match your specific use case.

### 3. Receive the "Send a batch of HTTP API requests and save the answers" 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 #, label, method, 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 a batch of HTTP API requests and save the answers" task via API](https://apify.com/psypherz/http-request-runner.md).

## FAQ

### Which HTTP methods does the bulk HTTP request task support?

The bulk HTTP request task supports GET, POST, PUT, PATCH, DELETE and HEAD, with custom headers and JSON or text bodies.

## About this Actor

This example demonstrates how to use [HTTP Request Runner (bulk API calls, GET, POST, JSON)](https://apify.com/psypherz/http-request-runner.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/psypherz/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/psypherz/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`).
