# Bulk HTTP Requests - Any Method, JSON Parsed, $0.50 per 1,000 (`dariandanciu/bulk-http-requests`) Actor

Send thousands of HTTP requests from one list: any method, headers and body, redirects, timeouts and retries. Returns status, headers, timing and the body, with JSON parsed. Any HTTP answer counts as a result; connection failures are free.

- **URL**: https://apify.com/dariandanciu/bulk-http-requests.md
- **Developed by:** [Darian Danciu](https://apify.com/dariandanciu) (community)
- **Categories:** Developer tools, Automation, Integrations
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 responses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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 Requests

**Send thousands of HTTP requests from one list.** Any method, headers and body, with retries, redirects and timeouts. You get the status, headers, timing and body for each one, with JSON already parsed.

### Why use it

- **$0.50 per 1,000 responses**, and less on paid plans.
- **Any HTTP answer is a result.** A 404 is data. Connection failures and timeouts are free.
- **Works on a schedule or inside a chain:** check endpoints, call webhooks, or post rows to an API without writing an Actor.
- **Polite by default:** at most 5 requests at once per host, and no proxies, so requests are never hidden.

### Input

| Field | Example |
|---|---|
| URLs | `https://api.github.com/zen` |
| Method, Headers, Body | Applied to every URL |
| Requests (advanced) | `[{ "url": "https://api.example.com/items", "method": "POST", "body": { "name": "a" } }]` |
| Timeout, Retries | 30 seconds, 2 retries |
| Follow redirects, Include body, Max body size | Your choice, up to 5 MB |

Requests in the advanced list can carry a `label`, which comes back on the row.

### Output

```json
{
  "url": "https://api.example.com/items",
  "finalUrl": "https://api.example.com/items",
  "method": "GET",
  "status": 200,
  "ok": true,
  "redirected": false,
  "contentType": "application/json",
  "sizeBytes": 512,
  "truncated": false,
  "timeMs": 143,
  "attempts": 1,
  "headers": { "server": "nginx" },
  "body": "{...}",
  "json": { "items": [] }
}
```

### Good to know

- Requests that get a 429 or 5xx are retried, and the last answer is returned as a row.
- Binary responses return their size and headers but no body.
- Private and internal addresses are refused.
- There is no proxy option.
- Headers you add, including any tokens, are sent to the URLs you list. Treat the run's input as you would any secret.
- Use this only for APIs and sites you're allowed to call. Load testing, denial of service, login or password attempts, spam, and anything that breaks a site's terms or the law are not allowed, and are the user's responsibility.

### Related Actors

More developer utilities by the same developer, with the same pay-per-result pricing:

| Actor | What it gets |
|---|---|
| [Dataset Dedupe, Merge and Filter](https://apify.com/dariandanciu/dataset-dedupe-merge-filter) | Clean up the output of any Actor |
| [Bulk LLM Runner](https://apify.com/dariandanciu/bulk-llm-runner) | Run a prompt over every row with your own API key |
| [Bulk File Downloader](https://apify.com/dariandanciu/bulk-file-downloader) | Save file links to storage, with hashes |
| [Video Frame Extractor](https://apify.com/dariandanciu/video-frame-grabber) | Frames from direct video links at $1 per 1,000 |
| [Audio & Video Transcriber](https://apify.com/dariandanciu/audio-video-transcriber) | Files and podcast feeds to text, with subtitles |
| [Bulk OCR](https://apify.com/dariandanciu/bulk-ocr-text-extractor) | Images and scanned PDFs to text, one row per page |
| [PDF Text Extractor](https://apify.com/dariandanciu/pdf-text-extractor-bulk) | PDF links to clean text for RAG and AI agents |
| [Bulk SEO Audit](https://apify.com/dariandanciu/bulk-seo-audit) | A score and ranked issue list for every page |
| [Article Extractor](https://apify.com/dariandanciu/article-extractor-markdown) | Clean text and Markdown from any article URL |

# Actor input Schema

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

One URL per line. They all use the settings below.

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

Requests that need their own settings, as JSON: \[{"url", "method", "headers", "body"}]. A body that is an object is sent as JSON.

## `method` (type: `string`):

For the URLs above.

## `headers` (type: `object`):

Sent with every request.

## `body` (type: `string`):

For the URLs above. Sent as written.

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

For each attempt.

## `retries` (type: `integer`):

Extra attempts after a connection failure, or a 429 or 5xx answer.

## `followRedirects` (type: `boolean`):

Off returns the 3xx answer itself.

## `includeBody` (type: `boolean`):

Off returns status, headers and timing only.

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

Longer bodies are cut, and the row says so.

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

Across all hosts. Each host gets 5 at most.

## Actor input object example

```json
{
  "urls": [
    "https://api.github.com/zen",
    "https://example.com/"
  ],
  "method": "GET",
  "timeoutSecs": 30,
  "retries": 2,
  "followRedirects": true,
  "includeBody": true,
  "maxBodyKb": 1024,
  "concurrency": 10
}
```

# Actor output Schema

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

The output rows.

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

Counts, and anything that failed.

# 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 = {
    "urls": [
        "https://api.github.com/zen",
        "https://example.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dariandanciu/bulk-http-requests").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 = { "urls": [
        "https://api.github.com/zen",
        "https://example.com/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dariandanciu/bulk-http-requests").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 '{
  "urls": [
    "https://api.github.com/zen",
    "https://example.com/"
  ]
}' |
apify call dariandanciu/bulk-http-requests --silent --output-dataset

```

## MCP server setup

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

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/edSq38LaZ8fWWoanh/builds/yt2bfrbg9BnkyqeOX/openapi.json
