# Issue with Complete Expression in HTTP Pagination

**URL:** <https://community.n8n.io/t/issue-with-complete-expression-in-http-pagination/269534>\
**Category:** Help me Build my Workflow\
**Tags:** pagination\
**Created:** [February 24, 2026, 2:43pm UTC](https://community.n8n.io/t/issue-with-complete-expression-in-http-pagination/269534 "2026-02-24T14:43:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gijshendrix](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gijshendrix](https://community.n8n.io/u/gijshendrix)\
**Post date:** [February 24, 2026, 2:43pm UTC](https://community.n8n.io/t/issue-with-complete-expression-in-http-pagination/269534/1 "2026-02-24T14:43:04Z")

</div>

Hi folks,

I am running into an annoying issue when trying to paginate through responses from a specific API endpoint. The endpoint has a parameter in the response body called “nextLink” which has a (relative) url for the next page.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/4/9/490f5afd49d4f8c2f5a1b42bf6a3a5613a4e590e.png)

So far so good, with this I am able to set up the pagination using “Response Contains Next URL” with “Next url” configured as “{{ $vars.api\_base\_url + $response.body[“nextLink”] }}”.

Where I am hitting a wall is with stopping the pagination. When there is no new page, the endpoint returns the last page without the “nextLink” element in the body - so the absence of this data element denotes the last page. I’ve tried to set the Complete Expression to “{{!$response.body.keys().includes(“nextLink”)}}” which looks to evaluate to true but still results in an error:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/d/dd9bfcbe83db824314269f1272f2d34e8fb92f52.png)

Any idea what I am doing wrong here? See full settings below.

 ![Screenshot 2026-02-24 at 16.02.22](https://europe1.discourse-cdn.com/n8n/original/3X/d/f/dfae02eae98209e16abf6d15c192cdc6e4cf7101.png)

To make matters even weirder, if I set the Next URL to something like {{ “\<hardcoded\_url\>” + $response.body[“nextLink”] }} it works fine :huh:
