Bulk HTTP Requests: Batch API Caller for CSV Rows & URL Lists avatar

Bulk HTTP Requests: Batch API Caller for CSV Rows & URL Lists

Pricing

$0.50 / 1,000 answered requests

Go to Apify Store
Bulk HTTP Requests: Batch API Caller for CSV Rows & URL Lists

Bulk HTTP Requests: Batch API Caller for CSV Rows & URL Lists

Send bulk HTTP requests to any API from CSV, JSON or a URL list: one GET, POST or PUT per row from a {{column}} template. An HTTP client for batch API calls and webhook tests, with retries, per-host rate limits and JSON or regex extraction.

Pricing

$0.50 / 1,000 answered requests

Rating

0.0

(0)

Developer

SiteAcs

SiteAcs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Send bulk HTTP requests to any API: write the request once as a template, give it rows (CSV, JSON, a file or Google Sheet link, or an Apify dataset) and get one result per row with the status code, the parsed JSON or text body, headers, timing and the values you asked to extract. GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS, with JSON, form or text bodies.

Quick start

  • In: a URL template with {{column}} placeholders (url) and rows (csvRows, rows, rowsUrl or rowsDatasetId), or a plain list of addresses (urls). Optional method, headers, jsonBody, formBody, textBody and extract.
  • Out: one row per request: index, row, method, url, ok, statusCode, json or body, extracted, headers, redirects, timing, charged, and errorType when there was no answer.
  • Price: $0.50 per 1,000 answered requests (any status code, retries included), no start fee. DNS failures, refused connections, timeouts and refused private addresses are free. 10,000 API calls cost $5.
{ "url": "https://jsonplaceholder.typicode.com/users/{{id}}", "rows": [{"id": 1}, {"id": 2}, {"id": 3}],
"extract": {"name": "name", "city": "address.city"} }

Three fields of one output row: {"statusCode": 200, "extracted": {"name": "Leanne Graham", "city": "Gwenborough"}, "charged": true}.

The input prefilled in the form POSTs three CSV rows to a public echo API and pulls two fields back out. One result, trimmed:

{
"index": 0,
"row": {"id": "1", "name": "Ana Lima", "email": "ana@example.com"},
"method": "POST",
"url": "https://postman-echo.com/post?id=1",
"ok": true,
"statusCode": 200,
"json": {"args": {"id": "1"}, "json": {"id": "1", "name": "Ana Lima", "email": "ana@example.com", "source": "bulk import"}},
"extracted": {"echoedName": "Ana Lima", "echoedId": "1"},
"attempts": 1,
"timing": {"dnsMs": 14, "connectMs": 2, "tlsMs": 22, "ttfbMs": 27, "downloadMs": 1, "rateWaitMs": 0, "totalMs": 90},
"charged": true
}

Use it as a batch API caller from a spreadsheet, a URL fetcher for a list of addresses, a webhook tester, or a Postman alternative for runs too long to click through: enrich a lead list through your enrichment API, push rows into a CRM, check thousands of IDs against an API and keep two fields, or feed another actor's dataset into an API.

To check whether a list of websites is live, parked, dead or redirected (one verdict per domain, no templates), use Website Status Checker; to pull emails and phones from those sites, Website Contact Scraper.

How to use it

  1. URL or URL template: https://api.example.com/users/{{id}}?country={{country}}.
  2. Rows: paste CSV (first line names the columns), JSON rows, a file link, or a dataset ID. Or skip the template and give a plain list of URLs.
  3. Method, headers and body: placeholders work in all of them: {"Authorization": "Bearer {{token}}"}, a JSON body {"email": "{{email}}", "score": "{{score}}"}, a form body, or any text body (XML, GraphQL).
  4. Extract (optional): {"userId": "data.id", "title": "regex:<title>(.*?)</title>"}.
  5. Run it, then download the dataset as JSON, CSV or Excel, or read it through the API.

Test a template on a few rows first with Max requests.

Templates

You writeYou get
https://x.com/u/{{id}}?q={{q}} with q = a b&chttps://x.com/u/7?q=a%20b%26c (values are URL-encoded)
{{url}} (a column of full addresses)the address as it is
https://x.com/{{{path}}} (triple braces)the value inserted as it is, slashes kept
{{address.city}}a nested value from a JSON row or dataset item
{"n": "{{n}}"} in a JSON bodythe row's value with its type: a number stays a number, a list stays a list
{"note": "row {{n}}"}text: "row 5", quotes and line breaks escaped

CSV values are text; give JSON rows or a dataset when a JSON body needs numbers. A row without a column the template uses becomes a free missing_column result that names the row's columns. A Method column lets one run mix methods: each row's cell (GET, POST, PUT ...) decides, empty cells use Method. A body is sent with POST, PUT, PATCH and DELETE only.

What you get

One dataset item per request (per list element with One dataset item per array element):

FieldWhat it holds
index, rowThe row number (from 0) and the input row, so results join back to your sheet
method, urlThe request as sent; secret-looking query values (key, token, signature ...) show as REDACTED
ok, statusCode, statusTextok is true for 2xx
finalUrl, redirectsWhere the redirects ended, and each hop with its status
contentType, bodyBytes, bodySha256, truncatedAbout the body; the hash helps to spot changes between runs
json / body / bodyBase64The parsed JSON, the text, or a file as base64 (Body format)
item, itemsTotal, itemsCutOne element of the list at One dataset item per array element (at most 1,000 per request), the list's length, and whether it was cut
extractedYour extract columns
headersResponse headers (set-cookie as a list)
attempts, remoteAddressTries it took; the server address connected to
timingdnsMs, connectMs, tlsMs, ttfbMs (time to first byte), downloadMs, rateWaitMs, totalMs (retries included); DNS, connect and TLS are empty when a connection was reused
startedAt, chargedWhen the request went out; whether it was charged
errorType, errorWhy a request got no answer: dns, blocked_address, connect, timeout, tls, protocol, too_many_redirects, invalid_redirect, unsupported_encoding, missing_column, invalid_request

The Output tab has three views: responses, bodies, and timing with redirects.

Extract

ExpressionResult
data.items[0].id, $.data.items[0].idOne value, or null when it is not there
items[-1].nameFrom the end of a list
items[*].idEvery match, as a list
['key.with.dots']A key that contains dots
regex:<title>(.*?)</title>The first match in the body text (its first group, if it has one)
regexAll:href="([^"]+)"Every match, as a list
header:x-ratelimit-remainingA response header

Extraction reads the whole body up to Max body size, also when Body format is None.

Rate limits, retries and redirects

  • Requests at a time (default 20) across all hosts; per host at most 5 at a time and 600 a minute by default (20 and 1,200 at most), spaced evenly, retries and redirects included. Set the per-minute number to your API's limit. "Host" means the server: names that point at the same address (x.com, x.com., its IP, other names on it) share one limit.
  • Retries (default 2) after a timeout, a dropped connection or HTTP 408, 425, 429, 500, 502, 503 or 504, waiting 1 s, 2 s, 4 s ... or what Retry-After asks (up to Longest Retry-After wait; a longer wait returns the 429 as the result). POST and PATCH are repeated only when the request surely never arrived, or on 429 (or 503 with Retry-After), unless you turn on Retry POST and PATCH on any retryable error.
  • Redirects are followed up to 10 hops and listed; Max redirects 0 saves the 3xx answer itself. A 303 (and a 301 or 302 after a POST) continues as GET without the body. Authorization and Cookie headers are not sent to another host. Cookies a server sets during a redirect chain are sent on along that chain (as a browser would, by domain); no cookies are kept from one request to the next.
  • Headers must be plain ASCII; a row whose header value has other characters (or a control character) is saved free as invalid_request. Content-Length, Transfer-Encoding and Connection are set by the actor.
  • Compressed answers (gzip, deflate, br) are decoded up to Max body size and no further, so a small compressed body that would expand to gigabytes is cut at the cap. Other encodings are refused free as unsupported_encoding.

Pricing

$0.50 per 1,000 answered requests ($0.0005 each), no start fee. Charged: any HTTP answer, 2xx to 5xx, once per row however many retries it took. Free: no DNS, refused or dropped connection, timeout, TLS failure, private address, redirect loop, invalid URL, missing column. Set Maximum cost per run and the run stops before it: a request is sent only when its charge still fits.

In testing, 1,000 requests to 20 hosts took two runs of about 50 seconds each at the default 256 MB.

Private and internal addresses are refused

The actor resolves every host itself and refuses it when any of its addresses is private, loopback, link-local, carrier-grade NAT, multicast or reserved (10/8, 172.16/12, 192.168/16, 127/8, 169.254/16 including cloud metadata, ::1, fc00::/7, fe80::/10, and IPv4 inside IPv6 forms). It then connects to the address it checked, so a name that changes its DNS answer between check and connect cannot get through, and it checks every redirect hop the same way. These requests are saved free as blocked_address.

API, schedules and integrations

Run it from your code, Make, Zapier, n8n or an AI agent through the Apify API or the Apify MCP server. Pass the rows in the input, or point Rows: Apify dataset ID at another run's output. Schedule it to check endpoints and watch statusCode, bodySha256 or an extracted value change; use Apify's run webhooks to be told when a run finishes.

Options

OptionDefault
Max requests0 (all)Send only the first N rows
Body formatautoauto, json, text, base64 or none
Max body size (KB)1024Up to 4096; longer bodies are cut and marked truncated
Save response headers / Save the input rowonTurn off for smaller items, or when rows hold secrets
Timeout (seconds)30For the connection and each part of the answer
Follow redirects / Max redirectson / 10
Ignore TLS certificate errorsoffFor expired or self-signed certificates

Limits

  • Requests go out from Apify's data-centre addresses, without proxies. Sites that refuse data-centre traffic or show a bot challenge return that answer (often 403 or 429); this actor does not get around them.
  • One template per run. For different endpoints per row, put the whole address in a column ({{url}}) and the method in Method column.
  • Rows files up to 50 MB. Each item holds at most about 4 MB of body. One dataset item per array element makes at most 1,000 items per request.
  • Call only APIs you are allowed to use, within their terms and rate limits.

FAQ

Am I charged for 404 or 500 answers? Yes: the server answered. You are not charged when there is no answer.

Can it page through an API? Not by following next links. Put the page numbers or cursors in your rows instead.

How do I send an array as the JSON body? Use Text body with the JSON text and Content-Type: application/json.

Why is a value in my JSON body a string? CSV values are text. Give the rows as JSON (or a dataset) to keep numbers.

Is there a size limit on runs? No fixed one; large runs are limited by your maximum cost per run and the run timeout.

Em português / en español: o actor envia requisições HTTP em massa (GET, POST, PUT) para qualquer API, uma por linha de uma planilha CSV ou JSON, e devolve o status e os campos extraídos de cada resposta. Envía peticiones HTTP masivas a cualquier API, una por fila de un CSV o JSON, con reintentos y límite por servidor; las fallas no se cobran.