Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A tip for developers working with the Stack Exchange API.
2
votes
API compliant request throttle implementations
C# sliding window throttle implementation
This is the throttle implementation used by Soapi.CS. It is compatible with all .net platforms (desktop/silverlight/phone/mono)
It has proven to provide max …
2
votes
How to format time since xxx e.g. "4 minutes ago" similar to Stack Exchange sites
C# and Javascript port of Bill's answer
Works for me - adding it to both Soapi libraries. See the JS version in action here
One thing to keep in mind is that dates coming from the API are UTC. In ord …
4
votes
How to format reputation numbers similar to Stack Exchange sites
c#
Rounds up - same same SO.
public string FormatReputation(int value)
{
var rep = System.Convert.ToDouble(value);
if (rep < 10000)
{
return rep.ToString("N0");
}
…
2
votes
Accepted
How to monitor API version and site state
For future reference: API Documentation and Help
To answer your question:
To discover sites that are available in the Stack Exchange network, monitor http://stackauth.com/1.0/sites (http://stackauth.c …
1
vote
How to calculate a list of users ranked by question view count totals.
C# / Soapi.CS
using Soapi.CS
Context
.Official
.StackApps
.Questions
.PageCount(0) // all pages. be careful with this
.PageSize(100)
.GroupBy(question => question.OwnerId)
…
1
vote
How to calculate a list of users ranked by question score (votes sum) totals.
C# / Soapi.CS
using Soapi.CS
Context
.Official
.StackApps
.Questions
.PageCount(0) // all pages, be careful with this
.PageSize(100)
.GroupBy(question => question.OwnerId)
…
2
votes
How to calculate a list of users ranked by question favorite count totals.
C# / Soapi.CS
using Soapi.CS
//
Context
.Official
.StackApps
.Questions
.PageCount(0)
.PageSize(100)
.GroupBy(question => question.OwnerId)
.Select(group => new
{
…
2
votes
How to generate a list of users ranked by activity (question or answer count).
C# / Soapi.CS
using Soapi.CS
Questions
(from user in Context.Official.StackApps
.Users.PageSize(100).PageCount(0)
where user.QuestionCount > 0
orderby user.QuestionCount descending
select us …
1
vote
How to generate a list of users ranked by bug report submissions.
C# / Soapi.CS
using Soapi.CS
Site site = Context.Official.StackApps;
var bugs = new List<Question>();
// put all questions from all users which
// have tag 'bug'
site.Users.PageSize(100).PageCount …
1
vote
Simple Activity Monitor - For Educational Purposes only.
C# / Soapi.CS
using Soapi.CS
Context.Official.StackApps.Users
.PageSize(100).PageCount(0)
.OrderByDescending(u => u.LastAccessDate)
.ToList().ForEach(u =>
Console.WriteLine("{0}\ …
1
vote
How to calculate a list of users ranked by question view count totals.
JavaSript / Soapi.JS
using Soapi.JS
Soapi.RouteFactory("api.stackapps.com", apiKey) // get all users
.Questions({ pagesize: 100 }).getPagedResponse(function(data) {
var values = {}, keys = [];
…
1
vote
How to calculate a list of users ranked by question score (votes sum) totals.
JavaSript / Soapi.JS
using Soapi.JS
Soapi.RouteFactory("api.stackapps.com", apiKey) // get all users
.Questions({ pagesize: 100 }).getPagedResponse(function(data) {
var values = {}, …
2
votes
How to calculate a list of users ranked by question favorite count totals.
JavaSript / Soapi.JS
using Soapi.JS
Soapi.RouteFactory("api.stackapps.com", apiKey) // get all users
.Questions({ pagesize: 100 }).getPagedResponse(function(data) {
var values = {}, keys = [];
…
2
votes
How to generate a list of users ranked by activity (question or answer count).
JavaSript / Soapi.JS
using Soapi.JS
Questions
Soapi.RouteFactory("api.stackapps.com", apiKey) // get all users
.Users({ pagesize: 100 }).getPagedResponse(function(data) {
var output = "";
d …
1
vote
API compliant request throttle implementations
JavaScript
This is a governed sliding window throttled queue that conforms to the published usage guidelines regarding request rate.
It works by executing queued callbacks at a nominal rate.
Similar t …