Infinte scroll json data with ionic

hi ionic folks ;
I use ionic 3 I have some issue with scroll infinite using JSON REST Service im already googling about this topic and almost articles they talking about json rest they have pages, what about simple JSON API?
here the article:

he’s using reqres for testing :

I have a simple JSON API like this :

id: 301,
ref: 169,
img: "image1.jpg",
title: "lorem epsum",
country: "usa"
id: 302,
ref: 168,
img: "image2.jpg",
title: "lorem ipsum",
country: "germany",


hwo can i use infinte scroll ?
i hope someone give me thesolution?