HTTP Request Runner: Bulk API Calls from URLs & Datasets
Pricing
from $1.40 / 1,000 answered requests
HTTP Request Runner: Bulk API Calls from URLs & Datasets
HTTP request runner: send GET, POST, PUT, PATCH or DELETE requests in bulk, from a URL list, request objects or one request per dataset row with {{field}} templates. Retries, per-site limits, JSON parsed into rows. $0.002 per answered request; network errors free.
Pricing
from $1.40 / 1,000 answered requests
Rating
0.0
(0)
Developer
Klarto
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 hours ago
Last modified
Categories
Features
Share
HTTP request runner for Apify: send GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS requests in bulk and get every answer as a dataset row, with JSON parsed for you. Requests can come from three sources:
- a URL list;
- request objects;
- one request per row of your datasets, built with
{{field}}templates.
$0.002 per answered request. Network errors, blocked addresses and requests that were not sent are free.
Why use it:
- One call per dataset row. Pick the output of another Actor, write
https://api.example.com/items/{{id}}and a body like{"email": {{email}}}. Each answer carriesidandsource, so you can join it back to its row. - Careful with API keys. The
headersfield is stored encrypted. On a redirect to another site only Accept, Accept-Language, User-Agent and Content-Type go on, and a redirect to another site that would resend the request body (307/308, or 301/302 after PUT, PATCH or DELETE) is not followed. An upgrade from http to https on the same host keeps your headers. Each request uses its own connection, so a connection checked for one host name is never reused for another. - Polite and resilient. You can set per-site limits and a delay. Retries cover 408, 425, 429, 500, 502, 503, 504, timeouts and dropped connections, and a
Retry-Aftergiven in seconds is respected. POST and PATCH are not retried unless you allow it. - Clean rows. Each row has the HTTP status, parsed
jsonor textbody,extractedfields you pick by path, the time, the number of tries and a clearerror.
What it does
- Input:
urls(sent with one method, headers and body);requests([{url, method, headers, body | json, id}]);datasetswith aurlTemplateand an optionalbodyTemplate.
- Output: one dataset row per request, also for links that are not valid (status
error), plus anOUTPUTsummary with counts per status code. Rows are written as answers arrive, so sort byindexfor the input order. - It is a plain HTTP client: no browser, no JavaScript and no proxies. For web pages that need a browser, use a scraper instead.
How it works
- Build the request list. URLs first, then request objects, then dataset rows, up to
maxRequests. A link that is not http(s), or a row whose template value is missing, empty or./..(it would change the URL path, e.g.users/instead ofusers/7), gets a row with the reason; it is not sent and is free. - Check each address. The host must resolve to a public IP; private, loopback, link-local and cloud metadata addresses are refused. The connection is pinned to the checked IP, and every redirect hop is checked again.
- Send. Up to
maxConcurrencyrequests are sent at once, at mostmaxPerSiteto one host, with an optionaldelayMsper host. The Actor asks forgzipordeflatecompression only and decodes it in small steps, so the size limit also holds for compressed answers; other encodings (br, zstd, nested) give an error row. - Retry. HTTP 408, 425, 429, 500, 502, 503 and 504, timeouts, dropped connections and compressed answers cut before their end get up to
maxRetriesmore tries. For 429 and 503 aRetry-Afterin seconds is followed, up to 30 s. GET, HEAD, OPTIONS, PUT and DELETE are retried; POST and PATCH only withretryNonIdempotent. A try is not started when the run is close to its timeout, so every request still gets a row. - Save, then charge. The row is written first, and only then is the request charged. After a platform restart, saved rows are not sent again.
The default User-Agent is KlartoHttpRunner/0.1 (+https://apify.com/klarto); set your own in headers. The Actor does not write header values to the log, and it keeps no cookies: a Set-Cookie answer is not sent back on later requests (set a Cookie header yourself if an API needs one).
Input
| Field | Default | What it does |
|---|---|---|
urls | — | Links to call with method, headers and body. |
method | GET | Method for urls, dataset rows, and requests items without one. |
headers | — | Headers for every request, stored encrypted: put API keys here. requests items can add or override headers, but those are stored as plain input. Values must be printable ASCII; spaces at the start or end are removed. A site whose TLS certificate cannot be verified gets an error row (no retries). Host, Content-Length, Transfer-Encoding, Accept-Encoding and other framing headers are set by the Actor. |
body | — | Body for urls. Text starting with { or [ is sent as application/json unless you set Content-Type. |
requests | — | Request objects: url (required), method, headers, body (text) or json (object), id. |
datasets | — | Datasets whose rows become requests. Picking one gives read access to it (limited permissions). |
urlTemplate | — | For rows, e.g. https://api.example.com/users/{{id}}. Values are URL-encoded; `{{field |
bodyTemplate | — | For rows, e.g. {"email": {{email}}}. Each placeholder becomes its JSON value; a missing field becomes null. |
idField | — | Row field copied to id in the result. |
extract | — | Copy values from JSON answers into extracted, e.g. {"name": "data.name"}. Works also with parseJson off. |
parseJson | true | JSON answers go to json as data; off: the text goes to body. Answers that are not valid UTF-8 text (binary, other charsets) go to bodyBase64. |
maxResponseKb | 512 | Reading stops here and the row gets truncated: true (up to 4,096 KB). |
includeResponseHeaders | false | Add the answer's headers to the row. |
followRedirects | true | Up to 10 redirects. 303, and 301/302 after POST, continue as GET without a body. |
maxRequests | 1000 | Up to 10,000 per run. |
maxConcurrency, maxPerSite, delayMs | 10, 4, 0 | Speed limits. |
timeoutSecs, maxRetries, retryNonIdempotent | 30, 2, false | Time limit per try and retries. |
Minimal input (the sample row below comes from a run like this):
{ "urls": ["https://api.apify.com/v2/store?search=ocr&limit=1"], "extract": { "total": "data.total", "first": "data.items.0.name" } }
One POST per dataset row:
{"datasets": ["<datasetId>"],"method": "POST","urlTemplate": "https://api.example.com/contacts","bodyTemplate": "{\"email\": {{email}}, \"name\": {{name}}}","idField": "email","headers": { "Authorization": "Bearer <your API key>" }}
Output
A real row from a platform run (2026-11-19; json shortened):
{"index": 0,"id": null,"source": "input","method": "GET","url": "https://api.apify.com/v2/store?search=ocr&limit=1","status": "ok","httpStatus": 200,"ok": true,"finalUrl": "https://api.apify.com/v2/store?search=ocr&limit=1","contentType": "application/json","json": "…","body": null,"bodyBase64": null,"truncated": false,"bytes": 5554,"extracted": { "total": 1250, "first": "google-lens" },"headers": null,"ms": 97,"attempts": 1,"error": null,"charged": true,"requestedAt": "2026-11-19T00:27:42Z"}
| Field | Type | Meaning |
|---|---|---|
status | text | ok (2xx/3xx answer), http-error (4xx/5xx answer), error (no answer: network error, blocked address, invalid link or template value) or skipped (not sent). |
httpStatus, ok | number, boolean | The final HTTP status; ok is true for 2xx. |
json, body, bodyBase64 | any, text, text | The answer as data (JSON), as UTF-8 text, or as Base64 for anything else. |
truncated, bytes | boolean, number | Whether reading stopped at maxResponseKb, and the bytes read. |
extracted | object | The values picked with extract (null for missing paths). |
index, id, source | number, text, text | Position in the request list, your ID, and where the request came from: input, requests#<n> or <datasetId>#<row>. |
attempts, ms | number, number | Tries made and time of the last try. |
note | text | Present when headers were not sent on after a redirect to another site, when a redirect was not followed, or when the answer was too large for a row. |
charged | boolean | Whether this row was charged. |
The OUTPUT record holds:
- the counts (
answered,httpErrors,errors,skipped,charged); statusCodes(for example{"200": 5, "404": 1});failures(the last 200).
Pricing
| Event | When | Price |
|---|---|---|
request-completed | A request that got an HTTP answer, any status code (the server did the work) | $0.002 |
Paid Apify plans pay less. Apify Store discounts apply automatically: Bronze 10% off, Silver 20% off, Gold and higher 30% off. The prices above are Free-plan prices; the Store card shows the lowest (Gold) price. The start event (apify-actor-start) has no discount.
Free:
- network errors and timeouts;
- blocked and invalid addresses;
- dataset rows that could not be turned into a request;
- answers too large for one dataset row (9 MB): the row keeps the status and a note;
- requests not sent because of the charge limit or the run timeout.
Apify also charges its start event, apify-actor-start: $0.00005 per GB of run memory, with at least one event, so $0.00005 per run at the default 512 MB.
Examples:
- 2 requests: $0.004.
- 1,000 API calls: $2.00.
- A run with a $0.0045 limit and 5 URLs sent 2 requests (charged $0.004) and marked the other 3
skipped(measured 2026-11-19).
Limits
- Up to 10,000 requests per run and up to 4,096 KB read per answer.
- Measured on the platform at 512 MB (2026-11-19): 2 GET requests to the Apify API took a 3 s run.
- Only
httpandhttpsto public addresses. Links withuser:password@are refused. - No cookies kept between requests, no browser, no proxies, and no pagination across pages. For paged APIs, list the page URLs or build them from a dataset.
- A 4xx/5xx answer is charged, because the server answered. Check your URL and key on a few requests first.
Use it from your stack
You need an Apify account and token. No third-party keys are needed beyond the API keys of the services you call.
- API:
curl -X POST "https://api.apify.com/v2/acts/klarto~http-request-runner/run-sync-get-dataset-items?token=$APIFY_TOKEN" \-H 'Content-Type: application/json' -d '{"urls":["https://api.apify.com/v2/store?search=ocr&limit=1"]}'
- Python (
apify-client3.x):from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("klarto/http-request-runner").call(run_input={"urls": ["https://api.apify.com/v2/store?search=ocr&limit=1"]})print(client.dataset(run.default_dataset_id).list_items().items) - n8n: use the Apify node, choose Run an Actor with
klarto/http-request-runner, then Get dataset items. - Make / Zapier: use the Apify app with the same Actor.
- MCP / AI agents:
https://mcp.apify.com?tools=klarto/http-request-runner.
FAQ
How do I call an API for every row of another Actor's output? Pick its dataset in datasets, write a urlTemplate with {{field}}, and set idField to join the answers back.
Are my API keys safe? Put them in headers, a secret input that Apify stores encrypted; the Actor does not log it. Keys are not sent on when a redirect goes to another site. Headers inside requests items are stored as plain input.
Why was a POST not retried? Sending a POST twice can create two records. Turn on retryNonIdempotent only when that is harmless.
Is a 404 charged? Yes: the server answered. Network errors, timeouts and blocked addresses are free.
Can it reach my localhost or private network? No. Only public internet addresses are allowed.
Can I paginate? Not automatically. Build the page URLs (?page=1, ?page=2, …) in urls or from a dataset.
Fair use and licences
- Call only APIs and sites you may use, within their terms and rate limits.
- Use
maxPerSiteanddelayMsfor rate-limited APIs. - Libraries: httpx (BSD-3-Clause), Apify SDK (Apache-2.0).
Ready-made examples
Saved inputs for common jobs: open one and run it as it is, or change the input first.
Related Actors
- Bulk File Downloader: download the files your API returns links to.
- Merge & Deduplicate Datasets: clean the rows before you send them.
- Website Screenshot & HTML to Image / PDF: capture pages that need a browser.
Support
Open an issue on the Actor page. We aim to answer within a week.