Send a list of HTTP requests (batch API calls) to endpoints you own or are entitled to use, and get 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.
Run on Apify: apify.com/bardach_technologies/bulk-http-request-runner
- Call your own or a licensed API for a list of records (one row per record).
- Check a set of endpoints on a schedule and compare
bodySha256between runs. - Send a reviewed batch of updates once, with writes switched on by you.
Safety built in: robots.txt is read first, low default limits per host, a refusal (401, 403, 429, challenge page) stops that host, private networks are refused, and writes (POST, PUT, PATCH, DELETE) are sent at most once and never retried.
{
"requests": [
"https://api.example.com/v1/items/1",
{"url": "https://api.example.com/v1/items/2", "label": "second item"}
],
"secretHeaders": "{\"Authorization\": \"Bearer <YOUR_API_KEY>\"}",
"secretHeaderHosts": ["api.example.com"],
"pickJsonFields": ["data.id", "data.status"]
}Replace the example addresses with endpoints you own or may use. See examples/input.json.
One row per request (an illustration of the format):
{
"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
}Pay per event: USD 0.001 per completed request, plus Apify's small actor-start event (USD 0.00005 per run). 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. Refusals, challenges, 5xx answers, network failures, robots blocks and unsent requests are free. 1,000 completed requests cost USD 1.00.
Install the official client and put your API token in the environment (never in the code):
pip install apify-client
export APIFY_TOKEN=<your Apify API token>
python examples/call_actor.pyimport os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("bardach_technologies/bulk-http-request-runner").call(
run_input={"requests": ["https://api.example.com/v1/items/1"]}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row["outcome"], row.get("httpStatus"))Full script: examples/call_actor.py.
MIT, see LICENSE. The Actor itself runs on the Apify platform; this repository holds the documentation and usage examples.