<p></p>
<blockquote>
<p dir="auto">If I query the notes "from" t1 (to now), I only get Note1. But I also want to retrieve Note2 because there was a comment after t1. The only way to get the Note2 from API is to put the "from" parameter as t2 before the creation of note2, but in this case, I will also get Note3.</p>
</blockquote>
<p dir="auto">No, you won't get Note3 if you use <code class="notranslate">sort=updated_at</code>. You can filter notes by time with either their first comment (when they are opened, <code class="notranslate">sort=created_at</code>) being inside the date range, or their last comment (their last update, <code class="notranslate">sort=updated_at</code>). Now if you want to find notes with any comment (not necessarily the first one or the last one) in a given time range, this is currently impossible. But it may not matter for you if you only specify the lower end of the date range (<code class="notranslate">from</code>) because the last comment is also going to be inside the range.</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/4290#issuecomment-1762704599">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLUUXVT6USTVEAXSIDX7I7Y7ANCNFSM6AAAAAA577NKKU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJSE4LAKF7JKAEOCQDX7I7Y7A5CNFSM6AAAAAA577NKKWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTJCC6NO.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/4290/1762704599</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/4290#issuecomment-1762704599",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4290#issuecomment-1762704599",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>