Hot answers tagged

11 votes

Pronoun Assistant

feature-request status-completed Can you implement some kind of support for those of us who are fine with any pronoun, i.e., have no preference? I realise I could probably write something like ...
  • 221
9 votes

Pronoun Assistant

bug/feature-request status-completed Strip out the http://my.pronoun.is/ portion of the pronoun tag under the username, seeing as how you can't click on it anyway.
  • 193
6 votes
Accepted

How to get total visited days and consecutives of an user?

You cannot get the days visited, nor consecutive, information for a user because that is private information(Poster is SE representative). Stack Exchange is supposed to be about the content, not the ...
  • 12.7k
5 votes
Accepted

Can I get information about a user with their network ID?

You can use /users/{ids}/associated Try it for your network account Returns all of a user's associated accounts, given their account_ids in {ids}. {ids} can contain up to 100 semicolon delimited ids,...
  • 1,810
5 votes

(Should we) add [Staff] labels to staff member flairs?

This request will be status-planned and we hope to have this completed in the near term in a future sprint.
  • 151
4 votes

Getting the top answerers/users for a tag in a custom time range?

This is very costly to do in the API and currently impossible for many combinations of tag and date (because it would require more than the 10,000 allowed API calls per day). I'll write more about ...
  • 12.7k
4 votes
Accepted

Get total answers count for a specified: Tag, Userid and Date-range?

Your stated problem is considerably easier than the question you linked. You can use the /users/{ids}/answers route to get what you want -- with a little work. The trick is to use a filter that ...
  • 12.7k
4 votes
Accepted

Get the Authenticated User's email?

The API does not provide any method to determine a user's email address and it is unlikely to do so in the future. This would be a risk to both the user's privacy and his/her trust in Stack Exchange. ...
  • 12.7k
4 votes
Accepted

How can I access a user's ID on another site (eg. SU) if I have their ID from another site (eg. SO)?

Use the /users/{ids} route to get account_id. Then pass the account_id to /users/{ids}/associated. Note that account_id is exactly the kind of information that should be heavily cached by your script/...
  • 12.7k
4 votes

Pronoun Assistant

bug status-completed Seems like there are similar requests for users' info on Chat.SO that fails due to CORS-blocking. You might want to disable the script for Chat.SO so we don't make unneccessary ...
4 votes

Pronoun Assistant

bug status-completed Clicking the name of someone in chat breaks the userscript (pronouns no longer appear). To make it more generic, DOM updated to chat, and to main sites (.post-layout, comments, ...
3 votes

Can I fetch Stack Overflow users by location in Stack Exchange API

It's not possible (short of fetching all users and filtering yourself). The API simply does not offer that query. For alternatives, see the Data Explorer (SEDE): https://meta.stackexchange.com/q/...
  • 5,572
3 votes

How to get a list of all StackExchange employees?

Updated thanks to comments by Brock Adams and user43888. There are two methods to achieve this: Method 1: inefficient, but future-proof as it only depends on the SE API. Query the SE API for all ...
3 votes
Accepted

How to get up_vote_count and down_vote_count for a user?

You need to use a filter that returns those properties. The default filter does not. Also, the API is at version 2.2. You should use that unless you've a very good reason not to. So try, for example:...
  • 12.7k
3 votes
Accepted

Using API with sites like JSFiddle and CodePen?

This is not the most educated answer, but through trial and error I have found a way to get the information I'm needing for my project. However, the biggest downside to this method seems to be the ...
3 votes

Pronoun Assistant

feature-request Can this be made to work on the transcript? It doesn't, currently.
3 votes
Accepted

How to get the user's pinned sites?

This information is not available in the officially released version of the API (2.2) and you won't find it in the documentation. However, the Stack Exchange mobile apps have some 'special' API ...
  • 5,572
3 votes
Accepted

(Should we) add [Staff] labels to staff member flairs?

Tada! 🎉 This was an easy change on our end, it turns out we already had functionality to turn this on for individual sites. Our code doesn't define Stack Apps as a Meta site so Stack Apps doesn't get ...
  • 146
3 votes
Accepted

Is there a way to get a user's account ID given his site's user ID?

The 2.3 SE API has a account_id property on the shallow_user object, which is the user's SE account ID, so you can get the user's SE account number from any request which returns that object as part ...
  • 1,388
2 votes

How to get the "People reached" stat of a user, using the API?

You can't as of now. It doesn't exist in the API. Here's a feature request I made - please upvote that for higher chances of getting this added! :)
  • 4,265
2 votes
Accepted

Add the 'people reached' count to the API?

Until the feature request is approved (unlikely, and a similar request has no developer love either), you can get this number in one of 3 ways: You can get slightly stale data with this SEDE query (...
  • 12.7k
2 votes
Accepted

Encoding type of display_name

That is not URL encoding, that is HTML entity encoding. By default, the API returns "safe" values; see the filters doc: Any string returned as a result of an API call with a safe filter will be ...
  • 12.7k
2 votes
Accepted

Can revisions be returned from the API, filtered by user?

Alas, no. The API currently does not have any easy way to track a user's edits. You can see what returns edit information by scrolling to the bottom of the revision object, documentation page. ...
  • 12.7k
2 votes
Accepted

How to use shallow_user?

You don't use shallow_user; several routes (can) return it. If you want the reputation for a user, you would typically use the /users/{ids} route. EG:           /2.2/users/...
  • 12.7k
2 votes
Accepted

How can I get a user's Meta site details in the API call?

From the doc page for the /users/{ids}/associated route: You can filter the network_users returned by this method with the types parameter. Specify, semicolon delimited, main_site or meta_site to ...
  • 12.7k
2 votes

Please add the `tagged` parameter to /answers, /users, etc

Hear! Hear! I want to study what makes a good answer on SO. I started by querying complete web pages (questions with all comments, answers, and their comments) for questions with some minimum score (...
2 votes
Accepted

Timeline activities appear to be missing (because creation_date has wrong and useless values)

This is probably a variation of this bug and a variation or repeat of this bug that was partially fixed (once upon a time). Anyway, the timeline does show all your events as can be seen with this ...
  • 12.7k
2 votes
Accepted

How can I get user links in the API call like Twitter, GitHub and so on?

The API only returns the website link (jarroddixon.com), not the Twitter and GitHub usernames. You can check the results here. The same holds for the Users table in SEDE, so that's not an option ...
  • 5,572
2 votes
Accepted

Please provide an API "flair"-data call (`/associated` route is inadequate)

A unified call would be nice, but everything you asked for falls into one of 3 categories: It's already in the users/{ids}/associated call. It's trivially easy to calculate in the app or script. EG: ...
  • 12.7k
2 votes

Pronoun Assistant

bug status-completed DonAntonio's math.SE profile contains: ... at least shortly, her/his downvote, making it clear ... This is interpreted as "her/his" pronouns.

Only top scored, non community-wiki answers of a minimum length are eligible