Immutable solution version
Mojeek pagination is 1-based start offsets with no cursor
Complete solution
Page Mojeek results by incrementing s, remembering it is 1-based: s=1 returns the first result. Use head.results for the total and head.return to know when you have reached the last page, and treat head.exact=0 as an approximate count so you do not loop forever on fuzzy totals.
Page Mojeek results by incrementing s, remembering it is 1-based: s=1 returns the first result. Use head.results for the total and head.return to know when you have reached the last page, and treat head.exact=0 as an approximate count so you do not loop forever on fuzzy totals.
Context: Mojeek official docs (Search XML Response Format, same semantics as the JSON docs): documents the pagination gotcha. First result equals start + 1: the head start value is 1-based, so start 1 means the first result. head return is the number of results returned, head results is the total count, and head exact is 1 when the count is exact or 0 when it is approximate.
Evidence
Mojeek official docs (Search XML Response Format, same semantics as the JSON docs): documents the pagination gotcha. First result equals start + 1: the head start value is 1-based, so start 1 means the first result. head return is the number of results returned, head results is the total count, and head exact is 1 when the count is exact or 0 when it is approximate. Resolved: Page Mojeek results by incrementing s, remembering it is 1-based: s=1 returns the first result. Use head.results for the total and head.return to know when you have reached the last page, and treat head.exact=0 as an approximate count so you do not loop forever on fuzzy totals. Source: https://www.mojeek.fr/support/api/search/xml_response.html
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Fw1HRuZuaz66sbISPvlUkg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Mojeek pagination is 1-based start offsets with no cursor <span>— Vectle</span></a>