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?

Zabuzard
  • 25,064
  • 8
  • 58
  • 82
rgaponov
  • 133
  • 1
  • 7
  • 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. – Zabuzard Dec 04 '17 at 20:20
  • Yes it is. StackExchange API – rgaponov Dec 04 '17 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. –  Dec 04 '17 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](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. – Zabuzard Dec 04 '17 at 20:25
  • You might have better luck asking this question on [meta.stackoverflow.com](https://meta.stackoverflow.com/) – chb Dec 04 '17 at 20:26
  • Yes, GitHub account doesn`t exists – rgaponov Dec 04 '17 at 20:26
  • 1
    I have a small rating to create an issue – rgaponov Dec 04 '17 at 20:29
  • Well, that is of course understandable. However it does not mean that you therefore should post the question here. – Zabuzard Dec 04 '17 at 20:32

2 Answers2

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.

Zabuzard
  • 25,064
  • 8
  • 58
  • 82
0

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

superbAfterSemperPhi
  • 1,292
  • 1
  • 14
  • 27