MORE INFO ABOUT PAGINATION.

Pagination is the process of dividing data into discrete pages. In the xml feeds, pagination is used for such things as displaying a limited number of results (i.e. bet offers). It makes the feed lighter and faster.

Pagination needs to add 2 parameters, rangeStart and rangeSize to the following feeds:

  • Find Betoffer Group by Id
  • Find Live Betoffer Group By Id
  • Find Prematch Betoffers for an Event by id
  • Find Popular Betoffers
  • Search Betoffer by term
  • To construct a feed, you need to add &rangeStart=101&rangeSize=100 at the end of the feed.

rangeStart=101 means that the feed will show bet offers starting from 101 and onwards.

rangeSize=100 means that the feed will display 100 bet offers on the page. If you want to show less bet offers in the feed, change 100 to any smaller number. The maximum bet offers available on a page is 100.

Example of the football feed using pagination

https://api.unicdn.net/v1/feeds/sportsbook/betoffer/group/1000093190.xml?app_id=YourAppIDHere&app_key=YourAppKeyHere&local=en_GB – feed displays the first 100 bet offers.

https://api.unicdn.net/v1/feeds/sportsbook/betoffer/group/1000093190.xml?app_id=YourAppIDHere&app_key= YourAppKeyHere&local=en_GB&rangeStart=101&rangeSize=100 – feed displays bet offers starting from 101 till 200.

https://api.unicdn.net/v1/feeds/sportsbook/betoffer/group/1000093190.xml?app_id=YourAppIDHere&app_key=YourAppKeyHere&local=en_GB&rangeStart=101&rangeSize=20 – feed displays bet offers starting from 101 until 120.