- Use the
/users/{ids}
route to get account_id
.
- Then pass the
account_id
to /users/{ids}/associated
.
Note that account_id
is exactly the kind of information that should be heavily cached by your script/app. (Hint, hint; wink, wink; nudge, nudge. (^_^) )
For example:
/2.2/users/10349?site=superuser&filter=!T6o*9deY.2ZD3-(n4f
Returns:
{
"account_id": 1605,
"reputation": 178,
"user_id": 10349,
"display_name": "On Freund"
}
Then:
/2.2/users/1605/associated?filter=!--KJWbRC6EPM
Returns:
{
"question_count": 5,
"answer_count": 117,
"last_access_date": 1431898687,
"creation_date": 1219247035,
"account_id": 1605,
"reputation": 3612,
"user_id": 2150,
"site_url": "http://stackoverflow.com",
"site_name": "Stack Overflow"
},
{
"question_count": 2,
"answer_count": 1,
"last_access_date": 1428968656,
"creation_date": 1252397718,
"account_id": 1605,
"reputation": 178,
"user_id": 10349,
"site_url": "http://superuser.com",
"site_name": "Super User"
}