Look up Keybase users by username, proven domain, linked social account or PGP fingerprint.
GET/user/lookup.json
- Takes: Username
- Takes: Domain
- Passive: the target is not contacted
Identify the user with one of usernames, domain, twitter, github, reddit, hackernews or key_fingerprint. For a username lookup the result array matches the request list, with null for users not found. For domain and social lookups only legitimate matches are returned, so the array may be empty or have several entries.
Query parameters
usernamesOne or more Keybase usernames, comma-separated
domainA domain a user has proven ownership of. Only one value is accepted.
twitterUsername on Twitter
githubUsername on GitHub
redditUsername on Reddit
hackernewsUsername on Hacker News
key_fingerprintA PGP key fingerprint
fieldsComma-separated sections of the user object to return
Response fields · 10ShowHide
code
0 on success
name
Status name, for example OK
them[]
User objects; null for a username not found
id
User identifier
username
Keybase username
ctime
Account creation time
url
Profile picture URL
key_fingerprint
Fingerprint of the primary key
bundle
The public key
csrf_token
Token string returned with the response
curl 'https://keybase.io/_/api/1.0/user/lookup.json'{
"status": {
"code": 0,
"name": "OK"
},
"them": [
{
"id": "0123456789abcdef0123456789abcd00",
"basics": {
"username": "example_user",
"ctime": 1400000000,
"mtime": 1400000000
},
"public_keys": {
"primary": {
"key_fingerprint": "0123456789abcdef0123456789abcdef01234567",
"bundle": "-----BEGIN PGP PUBLIC KEY BLOCK-----..."
}
}
}
],
"csrf_token": "EXAMPLE_TOKEN"
}