Bulk HTTP Request Runner: Batch API Calls
Pricing
from $1.00 / 1,000 request completeds
Bulk HTTP Request Runner: Batch API Calls
Bulk HTTP request runner for batch API calls: send a list of requests in one run and get one row per unique request with status, headers and body. Per-host rate limits, safe retries and restart, secret headers kept out of the output. For endpoints you own or may use.
Pricing
from $1.00 / 1,000 request completeds
Rating
0.0
(0)
Developer
Bardach Technologies
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Bulk HTTP Request Runner sends a list of HTTP requests (batch API calls) to endpoints you own or are entitled to use and returns one row per unique request: status, safe headers and a cleaned body. Each request is sent exactly as you listed it, with strict limits per host, safe retries and a safe restart. Your credentials go in a secret field and are kept out of every row, stored body, log and summary.
Typical jobs: calling your own or a licensed API for a list of records, checking a set of endpoints on a schedule, and sending a reviewed batch of updates once.
How to run it
- Add your requests under Requests: each entry is a URL, or an object with
urland optionalmethod,headers,bodyandlabel. - If the API needs a key, put it in Secret headers (a JSON object or lines of
Name: value) and name the hosts that may receive it under Hosts that may receive secret headers. - Keep the other settings for a first run: the defaults are low (one request at a time per host, 30 per minute per host).
- Click Start. Read one row per request in the Output tab, download it as JSON, CSV or Excel, or read it through the Apify API. The run summary is the
OUTPUTrecord. - To run it on a schedule or from your own code, use Apify schedules or the Apify API with the same input JSON.
What you get
| Field | Meaning |
|---|---|
outcome | completed, or the reason there is no paid result |
httpStatus, finalUrl | Final status and the address that gave it, without sensitive values |
attempts, redirectCount, responseTimeMs | How the request went |
responseHeaders | Safe headers only, such as content type, ETag and rate-limit counters |
body or bodyKey | Cleaned text or JSON, in the row or in the key-value store as plain text |
bodyBytes, bodySha256 | Size and hash, useful for spotting changes between scheduled runs |
pickedFields | The JSON values you asked for by path |
refusalCategory, failureHttpStatus, detail | Why a request gave no paid result |
The run summary is in the OUTPUT record.
Example input
{"requests": ["https://api.example.com/v1/items/1",{"url": "https://api.example.com/v1/items/2", "label": "second item"}],"secretHeaders": "{\"Authorization\": \"Bearer your-own-token\"}","secretHeaderHosts": ["api.example.com"],"pickJsonFields": ["data.id", "data.status"]}
Example output row
{"position": 2,"label": "second item","method": "GET","requestUrl": "https://api.example.com/v1/items/2","outcome": "completed","billable": true,"httpStatus": 200,"finalUrl": "https://api.example.com/v1/items/2","attempts": 1,"bodyFormat": "json","pickedFields": {"data.id": 2, "data.status": "open"},"credentialsSent": true}
This row is an illustration of the format.
How requests are made
- robots.txt is read first on every origin. A disallowed address is not requested, and only a missing robots.txt (404 or 410) means no rules; any other answer, such as 400, 405 or a server error, counts as unreadable and that host is not requested. Many APIs disallow all paths in robots.txt: those requests come back as free
robots_blockedrows. - Low limits by default: one request at a time per host, 30 per minute per host, 200 per host, 1,000 per run and 25 hosts per run. Subdomains of a site count as one host. Retries and redirects count too.
- Retries apply only to GET, HEAD and OPTIONS, after a timeout, a dropped connection, or a 502, 503 or 504 answer.
- Writes need your opt-in. POST, PUT, PATCH and DELETE, and any request with a method-override header (
X-HTTP-Method-Override,X-HTTP-Method,X-Method-Override), are sent at most once: no retry, no redirect, and no resend after a restart. A write interrupted by a restart gets a freewrite_outcome_unknownrow, so check it yourself. - Refusals stop the host. 401, 402, 403, 407, 429, 451, other client refusals, edge refusals (520-529), non-standard statuses such as 999, challenge pages and login redirects are saved, not retried, free, and end all work on that host for the run. Ordinary API answers such as 400, 409 and 422 are returned as results.
- The run time limit is respected. A request that could not finish before the limit is not started; it stays open and a resurrected run sends it.
- Every address is checked, including each redirect target and the address actually connected to. Private and internal networks are refused.
- The Actor identifies itself as
BulkHttpRequestRunner. Its user agent cannot be changed, and headers that reroute or rewrite a request at a proxy or name a client address are refused as whole families, judged by the words in the header name: anyIPword (Client-IP,X-Real-IP,X-Custom-IP-Authorization,X-Azure-ClientIP), anything that forwards (X-Forwarded-*,X-Forward-For), rewrites or sets a destination (X-Rewrite-URL,Destination), an original or overriding URL, host or path (X-Original-URL,X-Override-URL,X-Host-Override), a proxy or a URL scheme, any name that is only an address (X-Host,X-Host-Name,Request-Uri,X-Request-Uri,Base-Url), and anyX-Upstream-*orX-Backend-*name. OtherX-Client-*andX-Original-*names, such asX-Client-IdorX-Original-Request-Id, are accepted.
Credentials
Put credentials only in Secret headers, and name the hosts that may receive them. They are dropped when a redirect leaves the origin. Their values are removed from output, also when a server echoes them, in plain, URL-encoded, Base64 or hex form. Credentials in the request list are refused. Cookies are refused everywhere: logged-in sessions are not supported.
Credentials in URLs are refused by default: a user name and password, a credential-named parameter such as ?token=, and tokens with a known shape in the path or query (Telegram bot tokens, also percent-encoded; Slack services, workflow and trigger webhooks; Discord webhooks of any API version; Teams, Zapier and IFTTT webhook addresses, and secret-looking path parts after webhook or hooks on any host; Stripe sk_/rk_ keys, AWS key ids, Google, GitHub, GitLab, Slack and SendGrid tokens). Webhook addresses are recognised after normalising the URL (host case, default port, trailing dot, percent-encoding, an encoded slash or backslash such as %2F or %5C read as /, empty path segments and path parameters). If an API only accepts its token in the URL, turn on Allow credentials inside URLs: the request is sent, and requestUrl, finalUrl and every other row field show those parts as REDACTED, also where a server repeats them in a kept response header. A refused URL is shown in the same redacted form in its free row. Input that is not a valid http or https URL (for example with a backslash, %5C, a space or [ after the host) shows no path: only its scheme and host, with /REDACTED in place of anything after the host, or just REDACTED when no host can be read. A single short word without dots or URL signs (such as -2+3) is shown as typed, with a leading ' if a spreadsheet could read it as a formula. A user name and password in a URL are always refused.
Bodies are cleaned before they are stored. Sensitive JSON fields, bearer strings, JWTs, tokens with a known shape and private keys are replaced by REDACTED, and so is a value written after a credential-named field in plain text (aws_secret_access_key = ..., client_secret: ...); a secret with no known shape and no such field name cannot be recognised and stays. E-mail addresses (also written with a full-width @, %40 or @, and also when used as a JSON field name), phone numbers (also in full-width or other-script digits and with any Unicode dash, minus sign or middle dot, and a number or a string of 7 to 15 digits, with or without a leading +, stored anywhere below a phone-like JSON field such as phone, mobile, tel or fax, for example phone.number or phones[0].value; under contact, contacts or cell only the field's own value and list), valid IBANs, payment card numbers and US social security numbers are masked in bodies and pickedFields and counted in contactDetailsMasked, so a body can differ from what the server sent. Invisible characters (soft hyphen, zero-width space and joiners, word joiner, byte order mark and every other Unicode format character) are removed before these checks, so they cannot split an address or number. A URL path segment holding an e-mail address or phone number, also after a redirect, is shown as REDACTED. A phone number written as bare digits with no +, separator or phone-like label around it looks like any other number and is kept. Not recognised either: an e-mail address written with an HTML-entity or double-encoded dot or @ (., %2540), an ideographic full stop (。) as its dot, or a word such as {at}, <at>, arobase or arroba instead of @, and phone numbers spelled out in words. Names, street addresses and birth dates cannot be recognised reliably and are not removed: do not use this Actor to collect personal data. The label you give a request is masked the same way (e-mail addresses and phone numbers in it are replaced) before it appears in any row, so do not put contact details in labels.
What this Actor will not do
It has no load testing, proxy rotation, user-agent changes or ways around a block. It does not generate URLs from templates, ranges or word lists, and an exact repeat runs once. It does not submit passwords (fields such as password, pass, pwd, pw, also inside brackets or URL-encoded), and it stops a host after 25 not-found answers in a row or 5 failures in a row.
Pricing
Pay per event: USD 0.001 per completed request, plus Apify's small actor-start event. A completed request is a unique listed request that received a final answer below status 500 and was delivered whole, including answers such as 404. Everything else is free: refusals, challenges, 5xx answers, network failures, oversized or cut bodies, robots blocks and requests not sent. Your maximum charge is respected.
Cost example: 1,000 listed requests that all get a final answer below status 500 cost 1,000 x USD 0.001 = USD 1.00, plus Apify's actor-start event (USD 0.00005 per run). If 100 of them end in 5xx answers or refusals, only the other 900 are charged: USD 0.90 plus the start event.
Limits and troubleshooting
robots_blockedorrobots_unavailable: the host's robots.txt does not allow the request, or could not be read.refusedorhost_stopped: the host refused the Actor. Check your credentials and your entitlement before running again.body_too_large: raise Largest response body, or choose Do not keep if the status is enough.secret_in_plain_field: move the credential to Secret headers, or allow credentials inside URLs if the API needs them there.cookie_not_supported: cookies and logged-in sessions are not supported.- The
OUTPUTsummary saysstoppedwithstopReasoncap_reached,state_damagedortimeoutwhen listed requests were not sent.httpRequestsSentcounts requests this run actually sent;httpRequestsReservedis the saved count the caps use across restarts. - Labels, echoed invalid entries,
contentTypeand kept response header values that start with=,+,-or@get a leading'so a spreadsheet does not run them. Response bodies are kept as the server sent them (after cleaning), so take care when opening a CSV export. request_cap_reachedorhost_cap_reached: raise the caps if the host's terms allow it.- After a forced restart, one batch of already delivered rows can stay uncharged. You are never charged twice.
Use this Actor only for endpoints you are entitled to call, and follow their terms.
FAQ
Does it send POST, PUT, PATCH or DELETE? Only when you switch on Allow write methods (allowWriteMethods, off by default). A write is sent at most once: no retry and no redirect.
Where do my API keys go? In Secret headers, with the hosts that may receive them. They are kept out of rows, stored bodies, logs and the summary. Cookies and logged-in sessions are not supported.
Why do I get robots_blocked? robots.txt is read first on every origin, and many APIs disallow all paths in it. Those requests come back as free rows and are not sent.
What happens when a host refuses or shows a challenge? The answer is saved, not retried, free, and that host is stopped for the rest of the run.
Is it a load-testing or scraping tool? No. It has no load testing, proxy rotation, user-agent changes or ways around a block, and its default limits are low.
How do I spot changes between scheduled runs? Compare bodySha256 and bodyBytes of the same request across runs.
Related Actors
- Dataset Merge & Deduplicate: merge the rows of several runs into one dataset and remove duplicates.