HTTP Request Runner: Single or Bulk API Calls
Pricing
from $0.48 / 1,000 http responses
HTTP Request Runner: Single or Bulk API Calls
Send one HTTP request or a batch of 1,000 to any public API: GET, POST, PUT, PATCH, DELETE with headers, query params and JSON body. Clay-style single-request input, lookupKey, callback URL, retries and a server mode. $0.80 per 1,000 responses.
Pricing
from $0.48 / 1,000 http responses
Rating
0.0
(0)
Developer
Automation Lab
Maintained by CommunityActor stats
0
Bookmarked
197
Total users
58
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Flexible HTTP Request Runner
Send one HTTP request or thousands to any public API: GET, POST, PUT, PATCH,
DELETE, HEAD or OPTIONS with custom headers, query parameters and a JSON body.
Paste one url for a single call (the Clay, n8n, Make and Zapier pattern), a
list of URLs, or a batch of full request objects, and get one structured record
per request. $0.80 per 1,000 responses on the Starter plan, with no charge
for requests that get no response.
Each record includes request identity, final URL, status, response headers, parsed or encoded body, timing, retry count, redirects, and a normalized error when no response arrives.
The Actor is designed for recurring public API polling, integration smoke tests, release checks, and no-code automation. It supports GET, HEAD, POST, PUT, PATCH, DELETE, and OPTIONS requests without requiring a custom deployment.
What can Flexible HTTP Request Runner do?
- Send a single request from top-level
url,method,headers,paramsanddatafields, with no array to build: ideal for Clay and other no-code tools. - Call a plain
urlslist with shared method, headers and query parameters. - Execute up to 1,000 public HTTP or HTTPS requests in one run.
- Echo your
lookupKeyon each row so results join back to your source rows. - POST every result row to your own
callbackUrlas soon as it is saved. - Answer single requests instantly as a Server Actor (see Server API).
- Add custom HTTP request headers and query parameters.
- Send JSON or text request bodies with write methods.
- Run requests concurrently while preserving their original output order.
- Retry network errors and selected transient HTTP status codes.
- Follow redirects and report the final URL and redirect count.
- Parse JSON responses automatically.
- Preserve text responses and base64-encode binary responses.
- Limit the body stored for each response and mark truncation explicitly.
- Return structured DNS, timeout, network, redirect, and security failures.
- Redact common secret headers, sensitive query values, and
Set-Cookieoutput. - Block private, local, reserved, documentation, and link-local destinations.
Who is this HTTP request Actor for?
Automation engineers can schedule a batch of endpoint checks and send the dataset to Make, Zapier, n8n, a webhook, or a data warehouse.
API developers can preserve reproducible status, header, body, and timing records during integration testing.
Data teams can poll public JSON endpoints on a schedule and consume a stable dataset rather than writing a one-off request script.
Operations teams can check multiple public services and distinguish HTTP errors from DNS, timeout, network, and blocked-destination failures.
This Actor is not a browser, login automation tool, private-network agent, or a replacement for an endpoint-specific scraper that understands pagination and business entities.
Why use it instead of a one-off script?
A command-line request is useful for a single check. Recurring automation also needs scheduling, storage, consistent records, retries, concurrency, secret-safe output, failure classification, and integrations. This Actor packages those behaviors behind one input schema and writes results to the default Apify dataset.
Unlike a generic browser, the Actor uses lightweight HTTP connections. It does not download page assets or render JavaScript. Unlike an endpoint-specific scraper, it does not reinterpret the response: users receive the actual status, headers, and body representation needed by downstream workflows.
Getting started
- Open the Actor input page.
- For one call, fill URL, Method, Headers, Query parameters and Body. For many calls, use URL list or Batch of requests.
- Give each request a unique
idor alookupKeyso downstream records remain easy to join. - Keep the default retry and concurrency settings for the first run.
- Start the Actor.
- Open Request results in the run dataset.
- Schedule the Task or connect the dataset to another tool when the output is correct for your endpoint.
The prefilled input makes real GET requests to the public GitHub and npm APIs, so a first run produces useful JSON records without editing.
Input parameters
| Field | Type | Default | Description |
|---|---|---|---|
url | string | empty | One request. With method, headers, params, data and lookupKey, this is the whole input for a single call. |
method | string | GET, or POST with a body | Method of url and urls, and the default for requests entries without their own. |
headers | object | empty | Headers sent with every request; an entry's own header of the same name wins. |
params | object | empty | Query parameters added to every request; an entry's own value wins. |
data | object | empty | JSON body of the url request. |
lookupKey | string | empty | Identifier echoed on the url request's row. |
urls | string array | empty | URLs called with the shared method, headers and parameters. |
requests | array | empty | Full request objects. url, urls and requests together hold 1 to 1,000 requests. |
callbackUrl | string | empty | Public webhook that receives each saved row as a JSON POST. |
timeoutSecs | integer | 30 | Timeout for each attempt, from 1 to 120 seconds. |
maxConcurrency | integer | 5 | Simultaneous requests, from 1 to 25. |
maxRetries | integer | 2 | Retries after network errors or configured statuses, from 0 to 5. |
retryOnStatusCodes | integer array | 408, 425, 429, 500, 502, 503, 504 | Responses that trigger backoff and retry. |
followRedirects | boolean | true | Whether to follow supported HTTP redirects. |
maxRedirects | integer | 5 | Redirect limit per request, from 0 to 10. |
maxResponseBytes | integer | 1000000 | Maximum body bytes retained per record, from 1,000 to 5,000,000. |
Each request supports:
| Request field | Type | Description |
|---|---|---|
id | string | Optional unique identity; defaults to request-1, request-2, and so on. |
label | string | Optional human-readable label. |
lookupKey | string | Optional identifier echoed on the output row. |
url | string | Required absolute public HTTP or HTTPS URL. |
method | string | GET, HEAD, POST, PUT, PATCH, DELETE, or OPTIONS. |
headers | object | Custom single-line request headers. |
query (or params) | object | Query values; arrays create repeated query parameters. |
body (or data) | JSON or string | Optional body for methods other than GET and HEAD. |
Host, Content-Length, Connection, Transfer-Encoding, and
Proxy-Authorization cannot be overridden. The Actor sets transport-critical
values itself.
HTTP request example
A single API call, as Clay or n8n would send it:
{"url": "https://httpbin.org/anything","method": "POST","headers": { "Authorization": "Bearer YOUR_API_KEY" },"params": { "source": "crm" },"data": { "email": "jane@example.com" },"lookupKey": "crm-row-42"}
A list of URLs with shared headers:
{"urls": ["https://registry.npmjs.org/apify/latest","https://registry.npmjs.org/crawlee/latest"],"headers": { "accept": "application/json" }}
A batch of full request objects:
{"requests": [{"id": "npm-apify-latest","label": "Latest Apify npm package","url": "https://registry.npmjs.org/apify/latest","method": "GET"}],"maxConcurrency": 1,"maxRetries": 2,"maxResponseBytes": 500000}
A request with query parameters and headers looks like this:
{"id": "github-rate-limit","url": "https://api.github.com/rate_limit","method": "GET","query": {"workflow": "scheduled-monitor"},"headers": {"accept": "application/vnd.github+json"}}
Output data
One dataset row is written for every input request, including requests that do not receive an HTTP response.
| Output field | Meaning |
|---|---|
requestId, label, lookupKey, requestIndex | Identity, your join key and original position. |
requestedUrl, finalUrl, method | Requested and final transport identity. |
requestHeaders | User-supplied headers with secrets redacted. |
statusCode, statusText, ok | Final HTTP response status. |
responseHeaders | Response headers with Set-Cookie redacted. |
body, bodyEncoding | Parsed JSON, text, or base64 binary representation. |
bodyBytes, bodyTruncated | Body size and storage-limit status. |
durationMs, attempts, retryCount, redirectCount | Timing, total HTTP attempts, retries, and redirect hops. |
errorType, errorMessage | Failure details when no response arrives. |
fetchedAt | UTC completion timestamp. |
Example from a real npm registry request, shortened for readability:
{"requestId": "npm-apify-latest","label": "Latest Apify npm package","requestIndex": 0,"requestedUrl": "https://registry.npmjs.org/apify/latest","finalUrl": "https://registry.npmjs.org/apify/latest","method": "GET","requestHeaders": {},"statusCode": 200,"statusText": "OK","ok": true,"responseHeaders": {"content-type": "application/json"},"body": {"name": "apify","version": "3.7.2"},"bodyEncoding": "json","bodyTruncated": false,"attempts": 1,"retryCount": 0,"redirectCount": 0,"fetchedAt": "2026-08-15T12:00:00.000Z"}
The live package version can change. The example illustrates the output shape, not a guaranteed current version.
How retries and redirects work
Network errors and status codes in retryOnStatusCodes use bounded exponential
backoff with jitter. For retryable responses, numeric and HTTP-date
Retry-After values are honored with a maximum 10-second wait. A valid server
response remains available after the retry budget is exhausted, including its
final status and body. retryCount reports retries only, while attempts also
includes redirect hops.
Redirects are followed manually. Every redirect destination is resolved and checked before connection. Authentication, cookies, proxy authorization, and API-key headers are removed when a redirect crosses to a different origin.
For 303, and for 301 or 302 after POST, the next request uses GET. 307
and 308 preserve the method and body.
Safe public-endpoint access
The Actor intentionally accepts only public HTTP and HTTPS destinations. It rejects localhost, loopback, private networks, link-local services, multicast, reserved ranges, and documentation-only ranges. DNS is checked before the socket connects, and the approved public IP is pinned for that connection. Redirects receive the same checks.
This boundary prevents using the Actor to access Apify container metadata, cloud metadata services, private corporate endpoints, or other internal resources. There is no option to disable it.
Common authentication headers can still be sent to a public endpoint. Their
values are replaced with [REDACTED] in output. Sensitive query parameter names
such as token, key, secret, auth, password, and signature are also
redacted in URL output.
How much does it cost to run HTTP requests?
The Actor uses pay-per-event pricing:
- one
startevent for each run; - one
itemevent for each request that receives an HTTP response.
The start fee is charged with the first saved row, so a run rejected for bad input costs nothing. Requests are only sent while their response still fits the run's spending limit (Maximum charge per run); the rest are skipped and the final status message says how many.
DNS errors, timeouts, blocked destinations, and other no-response failures still
produce diagnostic dataset rows, but they do not incur an item event. HTTP
4xx and 5xx responses are charged because the status, headers, and body are a
complete request result.
The one-time start price is $0.00005. HTTP response prices decrease through six monthly usage tiers:
| Tier | Price per received HTTP response |
|---|---|
| FREE | $0.0009246 |
| BRONZE | $0.000804 |
| SILVER | $0.00062712 |
| GOLD | $0.0004824 |
| PLATINUM | $0.0003216 |
| DIAMOND | $0.00022512 |
Apify shows the applicable tier and maximum total charge before execution. At the BRONZE rate, illustrative run totals are:
- 1 received response: $0.000854 including the start event;
- 25 received responses: $0.02015 including the start event;
- 100 received responses: $0.08045 including the start event.
From December 15, 2026 the HTTP response price moves to our standard plan curve: FREE and BRONZE $0.000804, SILVER $0.0007236, GOLD, PLATINUM and DIAMOND $0.0006432 per received response. The start fee stays $0.00005.
A no-response diagnostic row does not add an item fee, so actual totals can be lower than the maximum. No proxy, residential traffic, or browser event is enabled, so there is no separate proxy charge event.
Scheduling recurring API polling
Save a working input as an Apify Task, then add an hourly, daily, or weekly schedule. Keep stable request IDs across runs so downstream systems can compare records by endpoint.
Useful recurring workflows include:
- poll release metadata from several public package registries;
- archive status and selected response headers;
- compare the newest dataset with the previous run;
- alert only when status, version, ETag, or body values change.
The Actor captures each run independently. It does not calculate changes or send alerts itself.
Integration ideas
- Make or Zapier: start a saved Task, wait for completion, then iterate over dataset items.
- n8n: call the Apify Actor endpoint and branch on
ok,statusCode, orerrorType. - Clay: use the single-request fields (
url,method,headers,params,data,lookupKey) and, if you want rows pushed back,callbackUrl. - Webhooks: set
callbackUrlto receive each row as it is saved, or attach an Apify run webhook and fetch the dataset when the run succeeds. - Google Sheets: export the overview view for a lightweight endpoint log.
- Data warehouses: ingest full dataset JSON for response-history analysis.
- AI agents: give an agent structured endpoint results without allowing it to connect to private networks.
Run with the Apify API
Replace APIFY_TOKEN with an Apify API token.
cURL
curl -X POST \"https://api.apify.com/v2/acts/automation-lab~flexible-http-request-runner/runs?token=APIFY_TOKEN&waitForFinish=120" \-H "Content-Type: application/json" \-d '{"requests":[{"id":"npm-apify","url":"https://registry.npmjs.org/apify/latest","method":"GET"}]}'
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('automation-lab/flexible-http-request-runner').call({requests: [{id: 'npm-apify',url: 'https://registry.npmjs.org/apify/latest',method: 'GET',},],});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ['APIFY_TOKEN'])run = client.actor('automation-lab/flexible-http-request-runner').call(run_input={'requests': [{'id': 'npm-apify','url': 'https://registry.npmjs.org/apify/latest','method': 'GET',}]})items = client.dataset(run['defaultDatasetId']).list_items().itemsprint(items)
Use with Apify MCP
Add the Actor to Claude Code:
claude mcp add --transport http apify \"https://mcp.apify.com?tools=automation-lab/flexible-http-request-runner"
Claude Desktop, Cursor, and VS Code setup
Claude Desktop, Cursor, and VS Code can use this HTTP MCP configuration:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=automation-lab/flexible-http-request-runner"}}}
Example prompts:
- “Run the Flexible HTTP Request Runner against the latest Apify and Crawlee npm metadata endpoints, then summarize their versions.”
- “Check these public API URLs and return only endpoints with a non-2xx status.”
- “Run this saved endpoint batch and compare ETag response headers with my last dataset.”
Limits and failure behavior
- The Actor accepts at most 1,000 requests per run.
- Each request body is limited to 5,000,000 bytes.
- Stored response bodies are limited by
maxResponseBytes. - The Actor does not decompress compressed responses; it requests identity encoding, but a server that ignores that header can return binary content.
- JavaScript-rendered pages are not rendered.
- Endpoint pagination is not followed automatically.
- API authentication, quotas, permissions, and terms remain endpoint-specific.
- Some public APIs block cloud datacenter IP addresses.
- No Apify Proxy or residential fallback is provided.
- A failure for one request does not discard successful sibling results.
- Malformed Actor input fails the run before requests are executed, at no charge.
- Every run ends with a status message such as "Got 25 of 25 requests: 24 HTTP responses, 1 without a response (free)", and names the spending limit or the run timeout when one stopped the run early.
- Failed runs send sanitized diagnostic input, exceptions and Actor, build and run IDs to our private GlitchTip service so we can repair them. Secret fields and URL queries are removed, and reports are kept for 30 days.
Troubleshooting
Why did I receive blocked_url?
The URL or one of its redirects resolved to a non-public address. Use a public endpoint. Private networks, localhost, and cloud metadata services are blocked by design.
Why is bodyEncoding set to base64?
The response content type did not identify text or JSON. Decode the value from base64 downstream, or change the endpoint to return a textual content type.
Why is the body incomplete?
Check bodyTruncated. Increase maxResponseBytes up to 5,000,000 when the
larger payload is necessary. For very large files, use a purpose-built download
Actor instead of storing the entire payload in dataset records.
Why did a request retry?
Inspect retryCount, attempts, and the Actor log. Network errors and configured
transient status codes trigger retries. Numeric and HTTP-date Retry-After
headers control the bounded wait. Set maxRetries to 0 when each request must
be attempted exactly once.
Why did the Actor return HTTP 401 or 403?
The remote server returned a valid response, so the record includes its status, headers, and body. Verify the endpoint's credentials and permissions. Secret header values are intentionally redacted in the output record.
Legality
Send requests only to endpoints you are authorized to access. Follow the endpoint's terms, robots guidance where applicable, rate limits, copyright rules, privacy obligations, and data-retention requirements.
Do not use high concurrency to overload services. Start with the default value,
honor Retry-After, and reduce concurrency when an API returns rate-limit or
capacity responses.
The Actor blocks private destinations but cannot determine whether every public URL or dataset is lawful for a particular use. Users remain responsible for the requests they configure and the data they store.
Related Automation Lab Actors
- HTTP Status Checker for focused website availability checks.
- Website Uptime Checker for uptime-oriented monitoring workflows.
- JSON Schema Generator for deriving a schema after collecting JSON API samples.
Choose this Actor when you need arbitrary methods, headers, bodies, and full response records. Choose a focused checker when you only need availability or a normalized domain-specific result.
FAQ
Does it support POST and custom HTTP request headers?
Yes. POST, PUT, PATCH, DELETE, and OPTIONS can send a JSON or text body. Custom headers are supported except transport-critical headers controlled by the Actor.
Can it call a private API?
No. Every destination must resolve only to public IP addresses. Use an agent inside your own network for private services.
Does it use a proxy?
No. Requests use direct Apify cloud egress. This keeps request identity and cost predictable but means an endpoint may reject datacenter traffic.
Are failed HTTP statuses included?
Yes. A 4xx or 5xx response is valuable structured output and includes available headers and body. A request that receives no response gets an error record.
Are results kept in input order?
Yes. Requests may execute concurrently, but dataset rows are pushed in the same order as the input array.
Can I store binary responses?
Yes, up to maxResponseBytes. Binary content is represented as base64 and
identified by bodyEncoding: "base64".
Does the Actor publish my request or response data?
No. Results are written to the run's default dataset under your Apify account. Apply appropriate storage access and retention settings for your data.
Server API
This Actor is also a Server Actor: copy the server URL from the Server tab and send authenticated HTTP requests to it. A warm server answers one request in about the time the target takes, with no run to start or dataset to read. Normal runs keep the full input and dataset.
POST /request
Send one HTTP request. The JSON body takes the same fields as one batch entry:
| Field | Type | Default | Description |
|---|---|---|---|
url | string | required | Absolute public http(s) URL. |
method | string | GET, or POST with a body | GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS. |
headers | object | empty | Request headers. |
query or params | object | empty | Query parameters; arrays repeat the parameter. |
body or data | JSON or string | empty | Request body; JSON is sent as application/json. |
lookupKey, label, id | string | empty | Echoed on the result row. |
timeoutSecs | integer | 20 | Per attempt, 1 to 25. |
maxRetries | integer | 1 | 0 or 1. |
followRedirects | boolean | true | Follow redirects, each checked as public. |
maxRedirects | integer | 5 | 0 to 10. |
maxResponseBytes | integer | 200000 | Stored body size, 1,000 to 500,000. |
GET /request
The same for GET, HEAD and OPTIONS, with url, method, lookupKey, label,
timeoutSecs, maxRetries and maxResponseBytes as query parameters.
Response, charge and limits
A target that answers, with any status including 4xx and 5xx, returns HTTP 200
with { "ok": true, "count": 1, "results": [<row>] }. The row has the same
fields as a dataset row. That request is charged one item event at your plan's
price; there is no start fee per request. Every error below is free.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_INPUT | A field is missing, unknown or out of range. |
| 400 | BLOCKED_URL | The URL or a redirect points to a private, local or reserved address. |
| 404 | NOT_FOUND | Unknown route. |
| 405 | METHOD_NOT_ALLOWED | Use GET or POST on /request. |
| 413 | REQUEST_TOO_LARGE, RESPONSE_TOO_LARGE | Request body over 300 KB, or a result over 1,000,000 bytes (lower maxResponseBytes). |
| 415 | UNSUPPORTED_MEDIA_TYPE | Send Content-Type: application/json. |
| 502 | DNS_ERROR, NETWORK_ERROR, CHARGE_FAILED | The target sent no HTTP response, or the charge failed. |
| 503 | OVERLOADED, SHUTTING_DOWN | Retry shortly. |
| 504 | TIMEOUT | The target did not answer in time. |
Errors use { "ok": false, "error": { "code", "message", "retryable" } }. A
request has 60 seconds in total, and one process works on up to 8 requests at
once.
curl -X POST "<SERVER_URL>/request" \-H "Authorization: Bearer $APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"url":"https://registry.npmjs.org/apify/latest","maxResponseBytes":5000}'