# postman.setNextRequest FT Headlines

**URL:** <https://community.postman.com/t/postman-setnextrequest-ft-headlines/14299>\
**Category:** Help Hub\
**Tags:** setnextrequest\
**Created:** [July 20, 2020, 11:11am UTC](https://community.postman.com/t/postman-setnextrequest-ft-headlines/14299 "2020-07-20T11:11:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![douglasmirandas](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@douglasmirandas](https://community.postman.com/u/douglasmirandas)\
**Post date:** [July 20, 2020, 11:11am UTC](https://community.postman.com/t/postman-setnextrequest-ft-headlines/14299/1 "2020-07-20T11:11:11Z")

</div>

Please I am working on FT news headlines. The request only allows me to get a maximum of 100 headlines in each transaction but I need the historical data.

I tried to build a postman.setNextRequest but it did not work.

My question is how can I use postman.setNextRequest to solve this issue. I need to set the variable offset as 100 to eliminate the previous items but then keep adding up 100 in each transaction (e.g. “offset”: “100”, then “offset”: “200” and so on).

**Body code:**

{  
“queryString”: “netflix AND lastPublishDateTime:\>2016-01-01T00:00:00Z”,  
“resultContext”: {  
“aspects”: [“title”, “lifecycle”, “location”,“summary”,“editorial”],  
“maxResults” : “100”,  
“offset”: “0”,  
“sortOrder”: “DESC”,  
“sortField”: “initialPublishDateTime”  
}  
}

**Pre-request script:** - Should include the code in this section or **Text section**?

if(!pm.variables.has(“offset” = “0”)){  
postman.setNextRequest(“offset” = “100”);  
}else{  
postman.setNextRequest(Null);  
}
