4

I am trying to use the StackExchange API to retrieve the GitHub link a user has set in his profile.

I am talking about this one:

Profile picture

However I'm not finding methods to retrieve that data. I'm also not sure whether the API offers access to that data.

Here are some documentations I found:

So can I use this API to retrieve the GitHub account of a user?

8
  • I think he tries to use said StackExchange API to retrieve the GitHub account a user has set in his profile. He wants to know whether the API offers methods for this. OP can you confirm that? If so, you might make this more clear in your question. Commented Dec 4, 2017 at 20:20
  • Yes it is. StackExchange API Commented Dec 4, 2017 at 20:22
  • I see that now. Hopefully one of the edits sets the stackexchange-api tag on the question. Though, the answer is probably "this is not exposed through the Users API" if it isn't specifically called out in the API as a field. Commented Dec 4, 2017 at 20:24
  • I'm not an expert on this API but I don't think that it offers such a method. I mean the https://api.stackexchange.com/docs/types/user lists all available fields, doesn't it? I can see a website_url field but nothing with GitHub. Commented Dec 4, 2017 at 20:25
  • 1
    I have a small rating to create an issue Commented Dec 4, 2017 at 20:29

2 Answers 2

3

The StackExchange API does not offer access to that data.

As you already have posted

is all information you can get from a user.

The official documentation lists all available fields and explains them. A GitHub field is not among them. Here is the complete documentation listing all available methods.

You will need to use different APIs or techniques to retrieve that data.

Sign up to request clarification or add additional context in comments.

Comments

0

There is nothing in the API for a users a git hub account.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.