# Bulk HTTP Request API – any method, JSON out – $1/1k (`henrycrawl/http-request-api`) Actor

Send many HTTP requests (GET, POST, PUT, PATCH, DELETE) with headers, query params and JSON body in one run. Get status code, timing, key headers and parsed JSON back. Optional Apify Proxy. Works with AI agents via Apify MCP. $1 per 1,000 requests; network errors are free.

- **URL**: https://apify.com/henrycrawl/http-request-api.md
- **Developed by:** [Henry Crawl](https://apify.com/henrycrawl) (community)
- **Categories:** Developer tools, Automation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 requests with response

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Bulk HTTP Request API

Send many HTTP requests in one Apify run: any method, headers, query parameters and JSON or raw body. You get back one compact JSON row per request with the status code, timing, the useful response headers and the parsed JSON body (or text). It is useful for AI agents that need to call several APIs at once, for scheduled API checks, and for bulk data pulls from REST APIs.

- **$1 per 1,000 requests** that get an HTTP response, with no start fee.
- **Free when nothing comes back:** network errors, timeouts, DNS failures, invalid requests and blocked targets cost nothing. A response with any status code (200, 404, 503...) counts as a result.
- Runs up to 20 requests in parallel (at most 5 per host) and follows redirects (up to 5). Safe retries: GET/HEAD/OPTIONS/PUT/DELETE are retried on timeouts and HTTP 429/502/503/504; POST/PATCH are only retried when the connection never opened or on 429, so nothing is sent twice by accident. It can also use Apify Proxy (datacenter or residential, by country).
- In our test on 1 Dec 2026, 60 GET requests to 9 public API hosts took 7 s.

### Input

```json
{
  "requests": [
    {
      "name": "create item",
      "method": "POST",
      "url": "https://httpbin.org/post",
      "headers": {
        "X-Api-Key": "YOUR_KEY"
      },
      "json": {
        "task": "demo",
        "items": [
          1,
          2,
          3
        ]
      }
    },
    {
      "url": "https://api.github.com/repos/apify/crawlee",
      "headers": {
        "Accept": "application/vnd.github+json"
      }
    },
    "https://registry.npmjs.org/express/latest"
  ],
  "concurrency": 5,
  "maxResults": 1000
}
```

| Field | Default | Notes |
|---|---|---|
| `requests` | — | List of requests. Each one is a URL string or an object with `url`, `method` (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS), `headers`, `params` (query), `json` (JSON body) or `body` (raw text), and `name` (your label, copied to the output). |
| `urls` | — | Shortcut for plain GET requests, one URL per line. |
| `defaultHeaders` | — | Headers sent with every request, e.g. an `Authorization` header. A header set on one request wins. |
| `timeoutSecs` | 30 | Per request, 1-120 s. |
| `maxRetries` | 1 | 0-3 retries with 2-8 s back-off (see the safe-retry rule above). |
| `retryNonIdempotent` | false | Also retry POST/PATCH on timeouts and 5xx. Only for APIs where a duplicate is harmless. |
| `maxBodyKb` | 500 | Longer bodies are cut (`truncated: true`) and returned as text, 1-2000 KB. Reading stops at the limit. |
| `concurrency` | 5 | Parallel requests, 1-20 (at most 5 at once per host). |
| `forwardHeadersOnRedirect` | false | Off: your headers are not sent when a response redirects to another host. |
| `includeHeaders` | false | On: all response headers. Off: only content-type, location, etag, cache-control, rate-limit and similar. |
| `useApifyProxy`, `proxyGroup`, `proxyCountry` | off | Route through Apify Proxy. Apify bills proxy traffic to your account. |
| `maxResults` | 1000 | Stops after this many charged requests. |

If `requests`/`urls` are missing or empty you get a free `NO_INPUT` row. Only an input with no fields at all (or only the default options) runs the 11-request demo, charged as usual.

### Output (real row, Open-Meteo)

```json
{
  "index": 5,
  "name": "Open-Meteo weather",
  "method": "GET",
  "url": "https://api.open-meteo.com/v1/forecast",
  "finalUrl": "https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&current=temperature_2m",
  "statusCode": 200,
  "ok": true,
  "contentType": "application/json; charset=utf-8",
  "elapsedMs": 463,
  "attempts": 1,
  "redirects": null,
  "bodyBytes": 324,
  "truncated": false,
  "json": {
    "latitude": 52.512604,
    "longitude": 13.419517,
    "generationtime_ms": 0.06306171417236328,
    "utc_offset_seconds": 0,
    "timezone": "GMT",
    "timezone_abbreviation": "GMT",
    "elevation": 38,
    "current_units": {
      "time": "iso8601",
      "interval": "seconds",
      "temperature_2m": "\u00b0C"
    },
    "current": {
      "time": "2026-12-01T01:45",
      "interval": 900,
      "temperature_2m": 1.9
    }
  },
  "headers": {
    "date": "Tue, 01 Dec 2026 01:55:45 GMT",
    "content-type": "application/json; charset=utf-8",
    "x-ratelimit-limit": "600.0",
    "x-ratelimit-remaining": "599.0",
    "x-ratelimit-reset": "1796090205",
    "content-encoding": "deflate"
  },
  "type": "result",
  "status": "OK",
  "scrapedAt": "2026-12-01T01:55:45.272010+00:00"
}
```

`json` holds the parsed body when the response is JSON; otherwise `text` holds the body (binary bodies such as images or PDFs are not returned, only `bodyBytes` and `contentType`). Rows come back in completion order; use `index` (position in your input) or `name` to match them.

**Error rows (free):** `BAD_REQUEST`, `DNS_ERROR`, `BLOCKED_TARGET`, `TIMEOUT`, `NETWORK_ERROR`, `OUTPUT_TOO_LARGE`, `INTERNAL_ERROR`, `NO_INPUT`, each with an `error` message.

### Use with AI agents (MCP)

Add this actor as a tool through the Apify MCP server:

`https://mcp.apify.com/?tools=henrycrawl/http-request-api`

Your agent can then batch its API calls into one tool call and read the parsed JSON. It also works from the Apify API, n8n, Make and Zapier.

### Safety and limits

- Only public internet addresses: every host (also after each redirect) is resolved and checked first, and the connection goes to that checked IP, so private, loopback, link-local, carrier-grade NAT and cloud-metadata addresses are refused. With Apify Proxy on, the proxy resolves the name, so only the name's public DNS is checked.
- Your headers are dropped when a response redirects to a different host (unless `forwardHeadersOnRedirect` is on).
- Request headers and bodies are not written to the output, but URLs are (`url`, `finalUrl`, `redirects`), so put API keys in headers rather than in query parameters. Everything you send is also part of this run's input, stored in your Apify account.
- Acceptable use: call APIs and sites you are allowed to use, within their terms and rate limits. No scanning, spam, credential stuffing or load testing of systems you do not own. Requests identify themselves with the User-Agent `HenryCrawl-HTTP-Request/1.0` unless you set your own.

Questions or a feature you need? Open an issue on this actor's page and we usually reply within 24 hours.

# Actor input Schema

## `requests` (type: `array`):

List of requests. Each item is a URL string or an object: {"url": "https://...", "method": "GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS", "headers": {...}, "params": {query parameters}, "json": {JSON body} or "body": "raw text body", "name": "your label"}. Only public internet addresses are allowed.

## `urls` (type: `array`):

Optional shortcut: plain GET requests, one URL per line. Added after `requests`.

## `defaultHeaders` (type: `object`):

Headers added to every request, e.g. {"Authorization": "Bearer ..."}. A header set on a single request wins. Values are sent as-is and are not stored in the output.

## `timeoutSecs` (type: `integer`):

Seconds to wait for each response (1-120).

## `maxRetries` (type: `integer`):

Retries (0-3, 2-8 s back-off). GET/HEAD/OPTIONS/PUT/DELETE are retried on timeouts, network errors and HTTP 429/502/503/504. POST/PATCH are only retried when the connection never opened or on HTTP 429, so a request the server may have processed is not sent twice (see retryNonIdempotent).

## `retryNonIdempotent` (type: `boolean`):

Only turn on for APIs where sending the same POST/PATCH twice is harmless (idempotency keys). Off by default to avoid duplicate orders, payments or messages.

## `maxBodyKb` (type: `integer`):

Response bodies longer than this are cut (truncated=true) and returned as text (1-2000 KB). Reading stops at the limit.

## `concurrency` (type: `integer`):

How many requests run at the same time (1-20); at most 5 at once go to the same host. Keep it low for APIs with rate limits.

## `forwardHeadersOnRedirect` (type: `boolean`):

Off (default): when a response redirects to a different host, your headers (Authorization, API keys, cookies) are NOT sent there. Turn on only if you trust every redirect target.

## `includeHeaders` (type: `boolean`):

Off: only useful headers (content-type, location, rate-limit, etag, cache-control...). On: every response header.

## `useApifyProxy` (type: `boolean`):

Send requests through Apify Proxy (proxy traffic is billed to your Apify account by Apify). Off = direct from Apify servers.

## `proxyGroup` (type: `string`):

Apify Proxy group when Use Apify Proxy is on.

## `proxyCountry` (type: `string`):

Two-letter country code for the proxy exit IP (e.g. US, DE), when Use Apify Proxy is on.

## `maxResults` (type: `integer`):

Stop after this many requests got a response (each one is a charged result). Error rows are free.

## Actor input object example

```json
{
  "requests": [
    {
      "name": "httpbin echo",
      "url": "https://httpbin.org/get",
      "params": {
        "hello": "world"
      }
    },
    {
      "name": "httpbin POST JSON",
      "method": "POST",
      "url": "https://httpbin.org/post",
      "json": {
        "task": "demo",
        "items": [
          1,
          2,
          3
        ]
      }
    },
    {
      "name": "JSONPlaceholder post",
      "url": "https://jsonplaceholder.typicode.com/posts/1"
    },
    {
      "name": "GitHub repo",
      "url": "https://api.github.com/repos/apify/crawlee",
      "headers": {
        "Accept": "application/vnd.github+json"
      }
    },
    {
      "name": "npm package",
      "url": "https://registry.npmjs.org/express/latest"
    },
    {
      "name": "Open-Meteo weather",
      "url": "https://api.open-meteo.com/v1/forecast",
      "params": {
        "latitude": 52.52,
        "longitude": 13.41,
        "current": "temperature_2m"
      }
    },
    {
      "name": "Cat fact",
      "url": "https://catfact.ninja/fact"
    },
    {
      "name": "Dog image",
      "url": "https://dog.ceo/api/breeds/image/random"
    },
    {
      "name": "US ZIP code",
      "url": "https://api.zippopotam.us/us/90210"
    },
    {
      "name": "CoinGecko ping",
      "url": "https://api.coingecko.com/api/v3/ping"
    },
    {
      "name": "Frankfurter FX",
      "url": "https://api.frankfurter.app/latest",
      "params": {
        "from": "USD",
        "to": "EUR"
      }
    }
  ],
  "timeoutSecs": 30,
  "maxRetries": 1,
  "retryNonIdempotent": false,
  "maxBodyKb": 500,
  "concurrency": 5,
  "forwardHeadersOnRedirect": false,
  "includeHeaders": false,
  "useApifyProxy": false,
  "maxResults": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, plus free error rows (type = error).

## `summary` (type: `string`):

Counts for this run (SUMMARY record).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        {
            "name": "httpbin echo",
            "url": "https://httpbin.org/get",
            "params": {
                "hello": "world"
            }
        },
        {
            "name": "httpbin POST JSON",
            "method": "POST",
            "url": "https://httpbin.org/post",
            "json": {
                "task": "demo",
                "items": [
                    1,
                    2,
                    3
                ]
            }
        },
        {
            "name": "JSONPlaceholder post",
            "url": "https://jsonplaceholder.typicode.com/posts/1"
        },
        {
            "name": "GitHub repo",
            "url": "https://api.github.com/repos/apify/crawlee",
            "headers": {
                "Accept": "application/vnd.github+json"
            }
        },
        {
            "name": "npm package",
            "url": "https://registry.npmjs.org/express/latest"
        },
        {
            "name": "Open-Meteo weather",
            "url": "https://api.open-meteo.com/v1/forecast",
            "params": {
                "latitude": 52.52,
                "longitude": 13.41,
                "current": "temperature_2m"
            }
        },
        {
            "name": "Cat fact",
            "url": "https://catfact.ninja/fact"
        },
        {
            "name": "Dog image",
            "url": "https://dog.ceo/api/breeds/image/random"
        },
        {
            "name": "US ZIP code",
            "url": "https://api.zippopotam.us/us/90210"
        },
        {
            "name": "CoinGecko ping",
            "url": "https://api.coingecko.com/api/v3/ping"
        },
        {
            "name": "Frankfurter FX",
            "url": "https://api.frankfurter.app/latest",
            "params": {
                "from": "USD",
                "to": "EUR"
            }
        }
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("henrycrawl/http-request-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "requests": [
        {
            "name": "httpbin echo",
            "url": "https://httpbin.org/get",
            "params": { "hello": "world" },
        },
        {
            "name": "httpbin POST JSON",
            "method": "POST",
            "url": "https://httpbin.org/post",
            "json": {
                "task": "demo",
                "items": [
                    1,
                    2,
                    3,
                ],
            },
        },
        {
            "name": "JSONPlaceholder post",
            "url": "https://jsonplaceholder.typicode.com/posts/1",
        },
        {
            "name": "GitHub repo",
            "url": "https://api.github.com/repos/apify/crawlee",
            "headers": { "Accept": "application/vnd.github+json" },
        },
        {
            "name": "npm package",
            "url": "https://registry.npmjs.org/express/latest",
        },
        {
            "name": "Open-Meteo weather",
            "url": "https://api.open-meteo.com/v1/forecast",
            "params": {
                "latitude": 52.52,
                "longitude": 13.41,
                "current": "temperature_2m",
            },
        },
        {
            "name": "Cat fact",
            "url": "https://catfact.ninja/fact",
        },
        {
            "name": "Dog image",
            "url": "https://dog.ceo/api/breeds/image/random",
        },
        {
            "name": "US ZIP code",
            "url": "https://api.zippopotam.us/us/90210",
        },
        {
            "name": "CoinGecko ping",
            "url": "https://api.coingecko.com/api/v3/ping",
        },
        {
            "name": "Frankfurter FX",
            "url": "https://api.frankfurter.app/latest",
            "params": {
                "from": "USD",
                "to": "EUR",
            },
        },
    ],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("henrycrawl/http-request-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    {
      "name": "httpbin echo",
      "url": "https://httpbin.org/get",
      "params": {
        "hello": "world"
      }
    },
    {
      "name": "httpbin POST JSON",
      "method": "POST",
      "url": "https://httpbin.org/post",
      "json": {
        "task": "demo",
        "items": [
          1,
          2,
          3
        ]
      }
    },
    {
      "name": "JSONPlaceholder post",
      "url": "https://jsonplaceholder.typicode.com/posts/1"
    },
    {
      "name": "GitHub repo",
      "url": "https://api.github.com/repos/apify/crawlee",
      "headers": {
        "Accept": "application/vnd.github+json"
      }
    },
    {
      "name": "npm package",
      "url": "https://registry.npmjs.org/express/latest"
    },
    {
      "name": "Open-Meteo weather",
      "url": "https://api.open-meteo.com/v1/forecast",
      "params": {
        "latitude": 52.52,
        "longitude": 13.41,
        "current": "temperature_2m"
      }
    },
    {
      "name": "Cat fact",
      "url": "https://catfact.ninja/fact"
    },
    {
      "name": "Dog image",
      "url": "https://dog.ceo/api/breeds/image/random"
    },
    {
      "name": "US ZIP code",
      "url": "https://api.zippopotam.us/us/90210"
    },
    {
      "name": "CoinGecko ping",
      "url": "https://api.coingecko.com/api/v3/ping"
    },
    {
      "name": "Frankfurter FX",
      "url": "https://api.frankfurter.app/latest",
      "params": {
        "from": "USD",
        "to": "EUR"
      }
    }
  ],
  "maxResults": 50
}' |
apify call henrycrawl/http-request-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,henrycrawl/http-request-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KdBBahD2GC0eXnBmA/builds/lszgt9CMEIHN1aehL/openapi.json
