Tag Info

Hot answers tagged

3

This is currently not possible via the API. The best you could do is have the user logged into a browser and then screen-scrape the stackoverflow.com/users/{user_id}/?tab=votes pages... Hardly an acceptable workaround. The Authentication doc, Scope section, does say: private_info - access full history of a user's private actions on the site. ...


3

The date is in "Unix epoch time", as described in the API-docs, Date Formats section. How you do the conversion depends on what language you are coding in. Here's one way in javascript: function unixEpochTime_TO_Date_DDMMYY (unixEpochTime, returnUTC) { var year, month, day; var dateObj = new Date (unixEpochTime * 1000); if (returnUTC) { ...


3

The payload seems to be limited to 3000 characters by the Stack Exchange engine itself: However, the actual field returned by the API may be longer, as the user's 3000, markdown characters are expanded into HTML. As stated in "Can we have maximum length of string in API help pages?", the API itself enforces no length limits on the data and... ...


2

See the documentation for the /questions path and the question object spec. To get answers, merely use the /questions path with a filter that has answers enabled. To get the latest 30 questions, sort by activity, descending, and request only the first page with a page-size of 30. For example: ...


1

The tagged parameter to /search and related methods is an OR. This query will return questions tagged c# or java, for example. Or is rather expensive, which is one (of the many) reasons those methods are limited in how many results they return.


1

I found the answer. On the documentation page we find all needed information: Example: /2.1/questions? pagesize=50 fromdate=1371859200 todate=1372550400 order=desc sort=votes tagged=javascript site=stackoverflow ...


1

You would use the inname parameter of the users path. For example this gets users with marcamillion in their name, on Stack Overflow. Note that the filter parameter controls what fields are returned, not the content of those fields. I don't use Serel (or much Ruby), but the syntax is probably: Serel::User.inname('marcamillion').get Or, with some more ...



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