Looking for a UserID of a user with their display name in C #?

I am creating a small application for, but in order to collect information from Stack about a user I need to know their UserID. I would like the user to enter his display name / username and for the application to find his UserID . However, I understand that user names are not unique , but is it possible through C # to find all user IDs with the user name that I specify ? Can you give me some sample code for this? This can probably be done by escaping the users page, but I'm not sure how to do it.

By the way, I do not want to use a data dump for this. I just wanted to somehow find this information on the Users page or something similar.

By the way, I posted a similar Meta Stack overflow question and was directed to post it here, since Qaru is where it belongs!

+5
source share
3 answers

The previous version of this answer no longer works. It can be modified to work again, but it is no longer needed. There is an official official API these days . The parameter innamefor the method/users is what you are looking for.

: http://api.stackexchange.com/2.2/users?order=desc&sort=reputation&inname=steve&site=stackoverflow

+7

, .

, , , . , , .

, , - wiki-, , , .

+3

You will need to scan all users ( https://stackoverflow.com/users/ ( 0 in the current) /) to answer this question.

+2
source

All Articles