Yfiua
Yfiua

Reputation: 418

How could I get the username of a wikipedia user, if I have his user ID?

Using wikipedia API or whatever.

I can only do it reversely, i.e. using username to query user ID.

Upvotes: 1

Views: 448

Answers (1)

slaporte
slaporte

Reputation: 703

I don't believe you can fetch the username based on the user id from Wikipedia's web API. You can use a simple query to Wikipedia's public database, though:

SELECT user_name FROM user
WHERE user_id = ?

Upvotes: 3

Related Questions