Paging Quote Atom Feed using next link cause circular navigation

First Request to quotes atom feed using:

https://permid.org/atom/quote?access-token=XXX

returns:

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <title>Quote Feed</title> <link rel="next" href="https://api.thomsonreuters.com/permid/atom/quote&offset=50&length=50" /> <link rel="self" href="https://api.thomsonreuters.com/permid/atom/quote&offset=0&length=50" /> <link rel="first" href="https://api.thomsonreuters.com/permid/atom/quote&offset=0&length=25" /> <link rel="last" href="https://api.thomsonreuters.com/permid/atom/quote&offset=300&length=25" /> <author> <name>Open PermID</name> <uri>http://permid.org</uri&gt; </author> <subtitle>From date(UTC) : 2018-04-20T23:40:52.000Z, To date(UTC) : 2018-04-25T23:40:51.000Z, Window : Offset = 0, Length = 50, out of 325 results.</subtitle> <id>https://api.thomsonreuters.com/permid/atom/quote</id&gt; <updated>2018-04-25T23:00:48Z</updated> <opensearch:totalResults>325</opensearch:totalResults> <opensearch:startIndex>1</opensearch:startIndex>

following the next link:

https://api.thomsonreuters.com/permid/atom/quote&offset=50&length=50

returns:

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
<title>Quote Feed</title>
<link rel="next" href="https://api.thomsonreuters.com/permid/atom/quote&offset=50&length=50" />
<link rel="self" href="https://api.thomsonreuters.com/permid/atom/quote&offset=0&length=50" />
<link rel="first" href="https://api.thomsonreuters.com/permid/atom/quote&offset=0&length=25" />
<link rel="last" href="https://api.thomsonreuters.com/permid/atom/quote&offset=300&length=25" />
<author>
<name>Open PermID</name>
<uri>http://permid.org</uri&gt;
</author>
<subtitle>From date(UTC) : 2018-04-20T23:42:23.000Z, To date(UTC) : 2018-04-25T23:42:22.000Z, Window : Offset = 0, Length = 50, out of 325 results.</subtitle>
<id>https://api.thomsonreuters.com/permid/atom/quote</id&gt;
<updated>2018-04-25T23:00:48Z</updated>
<opensearch:totalResults>325</opensearch:totalResults>
<opensearch:startIndex>1</opensearch:startIndex>

which contains the next link of :

https://api.thomsonreuters.com/permid/atom/quote&offset=50&length=50

instead of:

https://api.thomsonreuters.com/permid/atom/quote&offset=100&length=50

so we are unable to use the Atom links to page through the Atom feed entities

Best Answer

Answers