<p>The API currently lets us fetch <a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Details_of_a_user" rel="nofollow">details for a single user</a> like this:</p>
<pre><code>GET /api/0.6/user/#id
</code></pre>
<p>It would be nice to be able to fetch details for several users with a single call, similar to how we can do for <a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_.2Fapi.2F0.6.2F.5Bnodes.7Cways.7Crelations.5D.3F.23parameters" rel="nofollow">other OSM objects</a>:</p>
<pre><code>Multi fetch: GET /api/0.6/[nodes|ways|relations]?#parameters
</code></pre>
<p><g-emoji class="g-emoji" alias="point_up" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/261d.png">☝️</g-emoji> add to above things like.. <code>users</code> <code>notes</code></p>
<h3>why?</h3>
<p>The reason I'm requesting this for <code>users</code> is because soon iD will start showing OSM notes:</p>
<p><a target="_blank" href="https://user-images.githubusercontent.com/38784/42361261-7ae1f76c-80bb-11e8-8487-b910b37672dd.png"><img width="960" alt="screenshot 2018-07-06 01 25 07" src="https://user-images.githubusercontent.com/38784/42361261-7ae1f76c-80bb-11e8-8487-b910b37672dd.png" style="max-width:100%;"></a></p>
<p>I'd like to include the user's profile pictures next to their comments. So we currently just fire off a bunch of single user GET calls and cache the results, but would be nice to fetch many at a time.</p>
<hr>
<p>related:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="338809851" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/operations/issues/222" href="https://github.com/openstreetmap/operations/issues/222">openstreetmap/operations#222</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1921">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLc5YGyUdLHecTVm8j-PoXbhu5p61ks5uD10sgaJpZM4VFaHX">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLU7XmEdwWbiR33CH23LGAQp50Kn0ks5uD10sgaJpZM4VFaHX.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Multi Fetch GET for user details (#1921)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1921"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/1921",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1921",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Multi Fetch GET for user details (#1921)",
"sections": [
{
"text": "",
"activityTitle": "**Bryan Housel**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@bhousel",
"facts": [
{
"name": "Repository: ",
"value": "openstreetmap/openstreetmap-website"
},
{
"name": "Issue #: ",
"value": 1921
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1921,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1921\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/1921"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 353739223\n}"
}
],
"themeColor": "26292E"
}
]</script>