<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/25708359?s=20&v=4" /><strong>deevroman</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5008#issuecomment-3627567779">(openstreetmap/openstreetmap-website#5008)</a></div>
<p dir="auto">or maybe just: <code class="notranslate">nodes?nodes=1h,2h</code>?</p>
<p dir="auto"><code class="notranslate">nodes?nodes=1v-20..-10</code> — looks scary :) I suspect the implementation will be unpleasant and prone to bugs (both on the server and in the client application).</p>
<p dir="auto">I only see the power of intervals for objects with more than 100 versions. These are usually relations. In that case, you'll have to load either each version individually or via <code class="notranslate">/relations?relations=</code>. This doesn't seem like a big deal if you're working with such large relations. I'd prefer to see <code class="notranslate">/api/0.6/[node|way|relation]/#id/history</code> with more understandable <code class="notranslate">limit=</code> and <code class="notranslate">max_version=</code> parameters. <code class="notranslate">max_version</code> is also good because it is resistant to changes to an object by another user, unlike relative versions.</p>
<p dir="auto">And if we also remember that we have a strange logic for displaying 404... I would be afraid to extend the functionality of this endpoint :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5008#issuecomment-3627567779">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNC7LASSPWBYZA5VKT4AWL5VAVCNFSM6AAAAACOMPQLBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMMRXGU3DONZXHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIU75MIIW7YDJBIS6T4AWL5VA5CNFSM6AAAAACOMPQLBWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTWYHBFKG.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5008/3627567779</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>

<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5008#issuecomment-3627567779",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5008#issuecomment-3627567779",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>