HTTP Request Runner: Send API Calls, Get JSON avatar

HTTP Request Runner: Send API Calls, Get JSON

Pricing

from $1.00 / 1,000 http requests

Go to Apify Store
HTTP Request Runner: Send API Calls, Get JSON

HTTP Request Runner: Send API Calls, Get JSON

Send HTTP requests you define: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS with headers, query, JSON body and secret bearer or basic auth. Get status, headers, timings, redirects and the parsed JSON or text body as rows. For Make, n8n, Zapier and AI agents.

Pricing

from $1.00 / 1,000 http requests

Rating

0.0

(0)

Developer

Markus Heiß

Markus Heiß

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Send the HTTP requests you define and get every response back as a clean dataset row. Any method, your own headers, query parameters, a JSON, text, form or binary body, and a bearer token or basic auth stored as a secret. Each row holds the status, the response headers, the redirect chain, the timings and the body, parsed as JSON when the server sends JSON.

Built for automations and agents that need one reliable step to call an API: Make, n8n, Zapier, AI agents, scheduled health checks and quick API tests without writing code.

What it does

  • Sends any request: GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS, up to 1,000 requests per run.
  • Two input forms: a simple list of URLs that share one method, header set and body, or a JSON array of request objects with their own method, headers, query, body and label. Both can be used in one run.
  • Bodies: objects and arrays are sent as JSON, strings as they are (JSON text gets application/json, other text text/plain), form objects as application/x-www-form-urlencoded, bodyBase64 as raw bytes. Your own Content-Type always wins.
  • Secret auth: a bearer token or username:password for basic auth in encrypted input fields. They are added to every request without its own Authorization header, never written to the output or the log, and dropped when a redirect leads to another host.
  • Reads the response for you: JSON content types become objects, text types (HTML, XML, CSV, plain text) become strings, images, PDFs and other binary files become base64. gzip, deflate and brotli are decompressed. You can force JSON, text or base64.
  • Redirects: follows up to 10 redirects, records every hop and returns the final URL. 303, and 301/302 after a POST, switch to GET like a browser does. Can be turned off.
  • Retries: after network errors, timeouts, HTTP 408, 429 and 5xx, with 1, 2 and 4 s pauses. A Retry-After header of up to 60 s is honoured.
  • Rate control: up to 10 parallel requests and an optional pause between request starts, for APIs with a rate limit.
  • Safe by design: only http and https. Private, local and cloud metadata addresses (localhost, 10.x, 192.168.x, 169.254.169.254, IPv6 local ranges) are blocked for the URL and for every redirect hop, checked again at connect time.

Use cases

  • Make, n8n, Zapier: call an API that has no ready made module, start the run from your scenario and read the rows from the dataset.
  • AI agents: give an agent one tool for "call this endpoint" that returns structured JSON with status, headers and errors in a fixed shape.
  • Scheduled checks: run a list of API endpoints every hour on an Apify schedule and alert on ok: false, slow timings.totalMs or a changed body.
  • Bulk API calls: send 500 lookups to an API you have access to, each with its own query and label, and export the answers as JSON, CSV or Excel.
  • Webhook and API testing: send a POST with a JSON body to your own endpoint and see exactly what came back, redirects and headers included.

Input

FieldDescriptionDefault
URLsSimple form: one request per URL with the method, headers and body below
Method (for URLs)GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. Also the default for Requests without a methodGET
Body (for URLs)Text or JSON body for the URLs
RequestsJSON array of request objects: url, method, headers, query, body, form, bodyBase64, label
HeadersHeaders for every request, as a JSON object. A request's own headers win. null removes a default header
Query parametersAdded to every URL, as a JSON object. Arrays repeat the name
Bearer tokenSecret. Sent as Authorization: Bearer ...
Basic authSecret. username:password
Response body formatauto, json, text or base64auto
Include response headersAll response headers in each rowon
Max response sizeBytes per body, up to 10 MB. Longer bodies are cut with truncated: true5 MB
Follow redirects, Max redirectsUp to 10 hopson, 10
TimeoutSeconds per attempt, redirects included, 1 to 12030
Retries0 to 52
Parallel requests1 to 105
Delay between requestsMilliseconds between request starts for the whole run0

Example, POST a JSON body with a bearer token (the token goes in the secret field, shown here in the input JSON):

{
"requests": [
{
"label": "create-order",
"url": "https://api.example.com/v1/orders",
"method": "POST",
"headers": { "Accept": "application/json", "Idempotency-Key": "order-1001" },
"body": { "sku": "A-100", "quantity": 2 }
}
],
"bearerToken": "YOUR_API_TOKEN",
"retries": 0
}

Example, GET a list of URLs with shared query parameters, one request per second:

{
"urls": [
"https://jsonplaceholder.typicode.com/posts/1",
"https://jsonplaceholder.typicode.com/posts/2"
],
"headers": { "Accept": "application/json" },
"query": { "_format": "json" },
"maxConcurrency": 1,
"delayMs": 1000
}

Output

One dataset item per request:

{
"index": 1,
"label": "create",
"request": {
"method": "POST",
"url": "https://httpbin.org/post",
"headers": {
"user-agent": "forgeloop-http-request-runner/0.1 (+https://apify.com/forgeloop)",
"accept": "*/*",
"accept-encoding": "gzip, deflate, br",
"authorization": "***",
"content-type": "application/json"
},
"bodyBytes": 15
},
"status": 200,
"statusText": "OK",
"ok": true,
"finalUrl": "https://httpbin.org/post",
"redirectCount": 0,
"redirects": [],
"redirectLimitReached": false,
"contentType": "application/json",
"bodyFormat": "json",
"body": { "json": { "name": "test" }, "url": "https://httpbin.org/post" },
"bodyBytes": 508,
"truncated": false,
"parseError": null,
"responseHeaders": { "content-type": "application/json", "content-length": "508", "server": "gunicorn/19.9.0" },
"timings": { "totalMs": 411, "ttfbMs": 405 },
"attempts": 1,
"startedAt": "2026-11-19T22:30:12.512Z",
"blocked": false,
"error": null
}
  • index is the position in the input: entries under Requests first, then the URLs. Requests run in parallel, so use index or label to match rows, not the row order.
  • request.headers shows what was sent. Values of Authorization, Proxy-Authorization, Cookie, X-Api-Key and every header with token, secret, key, auth, password, session or signature in its name are replaced by ***. Query values with such names and passwords in URLs are masked the same way in request.url, finalUrl and redirects.
  • ok is true for 2xx. A 404 or 500 is a normal answer: ok: false, error: null.
  • bodyFormat is json, text, base64 or empty. When a JSON response cannot be parsed or was cut, the body comes back as text and parseError says why.
  • bodyBytes counts the body after decompression. truncated is true when the body was longer than the maximum size.
  • redirects lists every hop with url, status and location. redirectLimitReached is true when the run stopped at the redirect limit and returned the last redirect response.
  • timings.totalMs covers all attempts and redirects. timings.ttfbMs is the time to the response headers of the last hop.
  • A body that would make the row larger than about 8.5 MB is stored in the key-value store instead. The row then has bodyFormat: "record", bodyRecordKey and bodyRecordUrl.
  • Requests without an HTTP answer (connection refused, timeout, DNS error, blocked private address, invalid entry) return an item with status: null and error set. blocked is true for private targets.
  • The response body is returned as the server sent it. Echo services like httpbin.org repeat your request headers, tokens included, in the body.

Pricing

Pay per request: 0.001 USD for every request that got an HTTP answer, whatever the status code, so 1.00 USD per 1,000 requests. Retries and redirects of one request count as one request. Network errors, timeouts, invalid entries and blocked private addresses are free. Set the maximum charge in Apify to cap the cost of a run.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start. 256 MB of memory is enough for most runs.

Limits

  • At most 1,000 requests per run and 10 in parallel. Split larger lists into several runs.
  • Response bodies up to 10 MB each. Request bodies up to 5 MB each.
  • Only http and https. No requests to private, local or link-local networks, and no proxy option. Calls come from Apify servers, so APIs that allow only listed IP addresses will refuse them.
  • Retries send the request again. For calls that must not run twice (payments, orders) set Retries to 0 or use an idempotency key if the API supports one.
  • Retry-After values above 60 s are not waited for. The row then holds the 429 or 503 answer.
  • TLS certificates are always verified. Sites with invalid certificates return an error item.
  • HTTP/1.1 only. No WebSockets, no streaming, no cookies kept between requests.
  • Data source: The servers and APIs you list in the input. The Actor sends exactly the requests you define and returns the answers. It is not affiliated with any of the services you call.
  • Snapshot: Results show the answers at the time of the run. We do not guarantee that they are complete, current or correct.
  • For business use: This Actor is offered to businesses only, not to consumers.
  • Permitted use: Call only APIs and sites you own or are allowed to use, within their terms and rate limits. Do not use this Actor for load tests, stress tests, denial of service, vulnerability scans or any attack on systems you do not own.
  • Your responsibility: You choose the targets, the credentials and the request content, and you are responsible for them and for what happens with the results. If your requests or the answers contain personal data, you are the controller and need your own legal basis. Use credentials only for accounts you are entitled to use.
  • No circumvention: The Actor does not bypass logins, captchas, rate limits, IP blocks or other access restrictions, and it has no proxy option.
  • Request volume: At most 1,000 requests per run and 10 at a time, with optional pauses between requests. Set them so that the target is not overloaded.
  • Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.

Questions and issues

Open an issue on the Actor page.