# HTTP Request Sender (`almond_subcontra/http-request-sender`) Actor

Send GET, POST, PUT, PATCH, DELETE and other HTTP requests to any public API from Clay, n8n, Make or Zapier, and get the status, headers and body (JSON parsed) of each answer as one dataset row.

- **URL**: https://apify.com/almond_subcontra/http-request-sender.md
- **Developed by:** [XD](https://apify.com/almond_subcontra) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 http requests

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/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

## HTTP Request Sender

Send an HTTP request to any public API and get the answer back as a dataset row: status, response headers and body. JSON answers are parsed for you.

Made for no-code tools such as **Clay**, **n8n**, **Make** and **Zapier**: call an API from your workflow without writing code. Send one request per run, or a whole list.

### What it is for

- Calling an API from a Clay table, one row at a time
- Calling an API from n8n, Make or Zapier when the built-in HTTP step does not fit
- Sending a list of requests in one run, a few at a time
- Checking which links answer, and with which status

### Input

| Field | What it does |
|---|---|
| **URL** | The address for one request. |
| **Method** | GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS. Default GET. Also the default for items of **Requests**. |
| **Headers** | Request headers, for example an `Authorization` header with your API key. They also apply to every item of **Requests**; an item's own header with the same name wins (names are compared without case). |
| **Query parameters** | Added to the URL. Parameters already in the URL stay. |
| **Body** | Data for POST, PUT, PATCH or DELETE. It is sent as JSON with `Content-Type: application/json`. If you set your own `Content-Type` header, it is kept; with `application/x-www-form-urlencoded` the body is sent as a form. Ignored for GET and HEAD, with a warning in the log. |
| **Lookup key** | Any text. It is copied to the result row, so you can match the answer to your own row. |
| **Requests** | Many requests in one run. Each item is a URL, or an object with `url` and, if needed, `method`, `headers`, `params`, `data` and `lookupKey`. **Method** and **Headers** are the defaults for every item. If **URL** is also set, it is sent first. |
| **Timeout (seconds)** | How long to wait for an answer, per try. Default 30. |
| **Retry on failure** | On by default. See Good to know. |
| **Maximum retries** | 0 to 5. Default 2. |
| **Parse JSON answers** | On by default. A JSON answer goes to `json` instead of `body`. |
| **Maximum response size (bytes)** | Default 500,000. Longer answers are cut. |
| **Requests at once** | 1 to 20. Default 5. |
| **Callback URL** | Optional. Each row is also POSTed here as soon as it is ready. |

One request:

```json
{
  "url": "https://api.example.com/v1/people",
  "method": "POST",
  "headers": { "Authorization": "Bearer YOUR_API_KEY" },
  "data": { "email": "ann@example.com" },
  "lookupKey": "row-42"
}
```

A list of requests:

```json
{
  "method": "GET",
  "headers": { "Authorization": "Bearer YOUR_API_KEY" },
  "requests": [
    "https://api.example.com/v1/people/1",
    { "url": "https://api.example.com/v1/people", "params": { "email": "bob@example.com" }, "lookupKey": "row-43" },
    { "url": "https://api.example.com/v1/people", "method": "POST", "data": { "email": "cy@example.com" }, "lookupKey": "row-44" }
  ],
  "maxConcurrency": 5
}
```

Inside **Requests** items, `method` can be in any case, `headers` and `params` can also be JSON text, and `data` can be plain text, which is sent as it is.

### Output

One row per request sent. This example is shortened.

```json
{
  "index": 0,
  "lookupKey": "row-42",
  "method": "GET",
  "url": "https://api.apify.com/v2/store?limit=1&search=web",
  "finalUrl": "https://api.apify.com/v2/store?limit=1&search=web",
  "status": 200,
  "statusText": "OK",
  "ok": true,
  "headers": { "content-type": "application/json; charset=utf-8", "date": "Wed, 18 Nov 2026 10:12:31 GMT" },
  "contentType": "application/json; charset=utf-8",
  "json": { "data": { "total": 2114, "offset": 0, "limit": 1, "count": 1, "items": [{ "name": "web-scraper", "username": "apify", "title": "Web Scraper" }] } },
  "body": null,
  "binary": false,
  "truncated": false,
  "bodyBytes": 1874,
  "attempts": 1,
  "durationMs": 212,
  "error": null,
  "finishedAt": "2026-11-18T10:12:31.402Z"
}
```

- `index` is the place of the request in the input, from 0: **URL** first, then **Requests** in order.
- `url` is the request as sent, with **Query parameters** added. `finalUrl` is the address after redirects.
- `ok` is `true` for status 200 to 299.
- `headers` are the response headers, with lower-case names.
- `json` holds a parsed JSON answer. `body` holds any other text answer, JSON that could not be parsed, and a JSON answer of just `null`.
- `attempts` is 1 plus the retries used. `durationMs` is the time of the last try.
- When no answer came, `status`, `headers` and `finalUrl` are `null` and `error` says why, for example "Timed out after 30 s".
- When the answer started but its body did not finish in time, the row keeps `status` and `headers`, `body` holds the part that arrived, `truncated` is `true`, and `error` says "Body timed out after 30 s". This is not retried, because the server has answered.

### Price

The current price is on the **Pricing** tab of this page. There is no monthly fee.

When a per-result price applies, you can set a maximum charge per run in the run options. The Actor stops sending requests when it is reached.

### Good to know

- The input field names are the same as in the best-known HTTP request Actors on Apify Store (`url`, `method`, `headers`, `params`, `data`, `requests`, `lookupKey` and the rest). To switch, change only the Actor name.
- **Timeout** is in seconds. A value above 300 is read as milliseconds, so 30000 also means 30 seconds.
- GET, HEAD, OPTIONS, PUT and DELETE are retried after a network error, a timeout, or status 408, 425, 429, 500, 502, 503 or 504.
- POST and PATCH are retried only on status 429 and 503. After a network error, a timeout or a 500, the server may already have done the work, such as creating a record or taking a payment. Sending it again could do it twice.
- Between tries the wait doubles from 1 second (1, 2, 4 seconds and so on). If the server sends a `Retry-After` header, that wait is used instead. No wait is longer than 30 seconds.
- Answers longer than **Maximum response size** are cut. The row then has `truncated: true`, and the cut text stays in `body` without JSON parsing.
- Binary answers, such as images, PDFs and files, are not stored. `body` is `null` and `binary` is `true`; `bodyBytes` shows how much was read. Text, JSON, XML, JavaScript and form answers, and answers without a content type, are stored as text.
- Text is decoded with the charset named in the `Content-Type` header, or as UTF-8 when there is none or it is unknown.
- A row must stay under about 9 MB to be saved. Some text grows when it is saved as JSON, so a large answer can make a row too big. Then `body` and `json` are left out, `truncated` is `true`, and `error` says "Answer too large to store; lower Maximum response size". The row is still saved and charged, because the request was sent.
- With a **Callback URL**, each row is also POSTed there as JSON as soon as it is ready. If the callback fails, it is tried once more after 1 second. A callback that still fails only adds a warning to the log; the row stays in the dataset.
- Rows are saved as answers arrive, so they can be in any order. Sort by `index` to get the input order.
- A link whose host is `localhost`, a `.localhost`, `.local` or `.internal` name, or a private, shared, loopback or link-local IP address (such as 127.0.0.1, 10.x.x.x, 192.168.x.x, 100.64.x.x or 169.254.169.254) is refused. So is a link that does not start with http:// or https://.
- A link with a user name or password in it (`https://user:pass@...`) is refused. Put the login in an `Authorization` header instead.
- A request with a `Keep-Alive`, `Transfer-Encoding`, `Upgrade` or `Expect` header, or to a port that web browsers block (such as 6000), cannot be sent, so it is refused too.
- If a server redirects a request to such a blocked port, that server has already received the request. The row is saved and charged, with `error` "Redirected to a blocked port". It is not retried.
- Each refusal is a warning in the log, with the request's `index` and the reason.
- Requests go out from Apify's servers. There is no proxy option.
- Request headers and bodies are not saved in the dataset. The log shows the method, host and status of each request, or why it got no answer, but not the full link. Links are cut out of error messages.
- Each request sent is one charge, whatever the answer: a 404, a 500 and a request that got no answer all count. Refused requests are free.
- If Apify moves a run to another server, requests whose rows are already saved are not sent again. A request that was waiting for its answer at that moment is sent again.
- A run ends as failed only when no request could be sent: there was nothing to send, every input was refused, the spending limit was already reached, or the **Callback URL** was refused.

### Something wrong?

Open an issue on the **Issues** tab with the input you used. Leave out your API keys.

# Actor input Schema

## `url` (type: `string`):

The address to send one request to, starting with https:// or http://. To send many requests in one run, use Requests below.

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

GET reads data, POST sends data. Also the method for every item of Requests that does not set its own.

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

Request headers, for example {"Authorization": "Bearer YOUR_KEY"}. They also apply to every item of Requests; an item's own header with the same name wins. Headers are not saved in the results.

## `params` (type: `object`):

Added to the URL, for example {"page": 2}. Parameters already in the URL stay.

## `data` (type: `object`):

Data to send with POST, PUT, PATCH or DELETE, sent as JSON. With a Content-Type header of application/x-www-form-urlencoded it is sent as a form instead. Ignored for GET and HEAD.

## `lookupKey` (type: `string`):

Any text. It is copied to the result row, so you can match the answer to your own row, for example a Clay row id.

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

Many requests in one run. Each item is a URL, or an object with url and, if needed, method, headers, params, data and lookupKey. Method and Headers above are the defaults. If URL above is also set, it is sent first.

## `responseTimeout` (type: `integer`):

How long to wait for an answer, per try: 1 to 300 seconds. A value above 300 is read as milliseconds, so 30000 is 30 seconds.

## `retryOnFailure` (type: `boolean`):

Try again after a network error, a timeout or a temporary error status such as 429 or 503. POST and PATCH are only tried again on 429 and 503.

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

How many times to try again: 0 to 5.

## `parseJson` (type: `boolean`):

Put a JSON answer in the json field as data, instead of as text in the body field.

## `maxResponseBytes` (type: `integer`):

Longer answers are cut here and marked truncated: 1,000 to 5,000,000.

## `maxConcurrency` (type: `integer`):

How many requests to send at the same time: 1 to 20.

## `callbackUrl` (type: `string`):

Optional. Each result row is also POSTed here as JSON as soon as it is ready, for example to an n8n or Make webhook.

## Actor input object example

```json
{
  "url": "https://api.apify.com/v2/store?limit=1&search=web",
  "method": "GET",
  "responseTimeout": 30,
  "retryOnFailure": true,
  "maxRetries": 2,
  "parseJson": true,
  "maxResponseBytes": 500000,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One row per request sent: status, response headers, and the body as JSON or text.

# 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 = {
    "url": "https://api.apify.com/v2/store?limit=1&search=web"
};

// Run the Actor and wait for it to finish
const run = await client.actor("almond_subcontra/http-request-sender").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 = { "url": "https://api.apify.com/v2/store?limit=1&search=web" }

# Run the Actor and wait for it to finish
run = client.actor("almond_subcontra/http-request-sender").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 '{
  "url": "https://api.apify.com/v2/store?limit=1&search=web"
}' |
apify call almond_subcontra/http-request-sender --silent --output-dataset

```

## MCP server setup

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

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/qDMOmynmdYkdc8MXv/builds/SKcivpYibNAxftO1x/openapi.json
