HTTP Request Batch with Auto Pagination — Every Item as a Row avatar

HTTP Request Batch with Auto Pagination — Every Item as a Row

Pricing

from $1.60 / 1,000 pages

Go to Apify Store
HTTP Request Batch with Auto Pagination — Every Item as a Row

HTTP Request Batch with Auto Pagination — Every Item as a Row

Send batches of HTTP requests to APIs and follow pagination automatically: next links, cursors, offsets, page numbers or Link headers. Every item comes back as its own row. Retries, rate-limit aware, secrets in headers never logged.

Pricing

from $1.60 / 1,000 pages

Rating

0.0

(0)

Developer

Northbell

Northbell

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Give it the first page; it follows next links, cursors, offsets or page numbers until the end and returns every item as its own row — no loop to write in Clay, n8n or Make. $2.00 per 1,000 pages fetched (a page is one successful HTTP response). Failed requests, and with only-new-items on pages with nothing new, are not charged. Secrets in headers are never logged. Schedule it with only-new-items on and each run returns just the new records.

Try it now — the input is already filled in. Press Start: it reads the public test API at jsonplaceholder.typicode.com page by page (25 items per page) and returns each post as a row: 100 posts from 5 pages in 5 seconds, $0.01 (our own run on Apify, 21 Nov 2026). Two of those rows (body shortened); each item keeps its own fields and gets a _request field saying where it came from:

{ "userId": 1, "id": 1, "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", "body": "quia et suscipit…", "_request": { "label": "posts", "url": "https://jsonplaceholder.typicode.com/posts?_limit=25&_page=1", "page": 1 } }
{ "userId": 1, "id": 2, "title": "qui est esse", "body": "est rerum tempore vitae…", "_request": { "label": "posts", "url": "https://jsonplaceholder.typicode.com/posts?_limit=25&_page=1", "page": 1 } }

For your own API with a cursor, the input looks like this (your address, your token; the token is never shown in rows or logs):

{
"requests": [
{
"label": "items",
"url": "https://api.example.com/v1/items?limit=100",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
],
"pagination": {
"type": "cursor",
"cursorPath": "meta.next_cursor",
"cursorParam": "cursor",
"itemsPath": "data.items"
}
}

If a page fails after the retries, you get one error row instead (not charged) with _request, error (for example HTTP 500), status and attempts, and the items already fetched stay in the dataset.

Inputs

FieldWhat it does
requestsList of {url, method, headers, query, body, label, pagination, output}. Only url is required. Method defaults to GET. body can be a string or JSON. query is added to the URL.
urlsShortcut: plain GET URLs. Added to requests.
paginationDefault for all requests (a request's own pagination overrides it). See below.
output.rowModeitems: one row per item (default when itemsPath is set, or when the response is a top-level JSON array). responses: one row per HTTP response with status, headers, body (parsed JSON, or text up to 1 MB), timingMs, finalUrl.
onlyNewItemsDefault off. On: items returned to you by an earlier run are left out (and not pushed). Needs itemKeyPath.
itemKeyPathJSON path to a stable id inside each item, for example id. Required when onlyNewItems is on. When set, every run remembers the items it returned (switch on or off), so turning onlyNewItems on later leaves out what you already have.
stopAtSeenDefault on with onlyNewItems. Stops paginating a request when a whole page holds only items returned before.
retriesDefault 2. Retries on 429, 5xx and network errors with exponential backoff; Retry-After is respected.
timeoutSecsDefault 30, per HTTP call.
concurrencyDefault 3, max 20. Different requests run in parallel; the pages of one request go one after another.

pagination fields: type (none, nextUrl, cursor, offset, page, linkHeader), itemsPath (JSON path to the array of items, for example data.items; empty means the top-level array, or the whole body as one item), maxPages (default 50), delayMs (default 250 between pages).

Pagination types

nextUrl — the response holds the URL of the next page. Stops when it is missing or null. Relative URLs are resolved.

{ "type": "nextUrl", "nextUrlPath": "links.next", "itemsPath": "items" }

cursor — the response holds a cursor; it is sent back as a query parameter. Stops when the cursor is missing, null or empty.

{ "type": "cursor", "cursorPath": "meta.next_cursor", "cursorParam": "cursor", "itemsPath": "data.items" }

offset — the Actor adds offset and limit to the URL and moves the offset by limit. Stops when a page returns fewer than limit items.

{ "type": "offset", "offsetParam": "offset", "limitParam": "limit", "limit": 100, "itemsPath": "results" }

page — the Actor adds the page number, starting at startPage (default 1). Stops when a page returns 0 items.

{ "type": "page", "pageParam": "page", "startPage": 1, "itemsPath": "items" }

linkHeader — follows Link: <https://...>; rel="next" (RFC 5988, as GitHub and many others send it).

{ "type": "linkHeader" }

Every request also stops at maxPages, when a page URL repeats (loop guard), when your maximum charge for the run is reached, and 30 seconds before the run's time limit. Everything charged is already in the dataset.

Run it on a schedule

Schedule the Actor hourly or daily with onlyNewItems on and itemKeyPath set to a stable id (for example id). Each run returns only the items it has not returned before, and it stops paginating as soon as it reaches a page of items it already returned. For an API that lists the newest items first, a scheduled run usually costs 1 to 2 pages. A page whose items were all returned before is not charged, so a run that finds nothing new costs only the run start.

The list of returned items is kept in a named store called http-paginate-seen in your account: one 16-character hash per item, per request (the request is identified by method, URL without pagination parameters, and label), the newest 200,000 per request. If the store cannot be opened the run stops before charging anything. onlyNewItems works on items, not on rowMode: "responses". The run summary (OUTPUT) shows newItems and seenItems per request.

Limits

  • No browser, no JavaScript rendering, no CAPTCHA solving. It calls HTTP APIs and returns what they send back.
  • Only public APIs or your own. Respect the API's terms of use and rate limits (raise delayMs for strict ones).
  • Only http and https URLs. Private, loopback and link-local addresses (10.x, 127.x, 169.254.x, localhost and so on) are refused.
  • Authorization, Cookie, X-Api-Key and similar header values, and secret-looking query values (api_key, token and so on), are replaced by *** in logs and rows. If the API echoes your secret inside its response body, that body is returned as the API sent it.
  • Without itemsPath and with page pagination, a response that is not an array never ends on its own; set itemsPath or maxPages.

日本語

最初のページのURLを渡すだけで、次のページへのリンク・カーソル・オフセット・ページ番号をたどって最後まで取得し、1件ずつ1行で返します。Clayやn8n、Makeでループを組む必要はありません。料金は成功したHTTPレスポンス1ページにつき$0.002です。失敗したリクエストは課金されず、エラー行として返ります。ヘッダーの認証情報(Authorization、Cookie、X-Api-Key など)はログにも結果にも出ません(***に置き換え)。公開APIまたはご自身のAPIにのみお使いください。ブラウザ描画・CAPTCHA突破はできません。