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
Accepted
How to check if a given question is changed
I have been working on another API recently so I may be a bit dull but my first impression is that the path of least resistance is to
pull your question(s) with answers and comments disregarding ac …
2
votes
How to monitor API version and site state
JavaSript / Soapi.JS (V2)
Using Soapi.JS (V2)
Yes, this is a teaser - v2 will be released before the weekend.
var apiKey = "my-foo-bar-fu-is-strong";
var ctx = new Soapi.ApiContext(apiKey);
ctx.init …
2
votes
How to monitor API version and site state
C# / Soapi.CS
using Soapi.CS
//
[Test]
public void SiteMonitor()
{
Context.Options.LazyLoadingEnabled(true);
Context.Sites.ForEach(site=>
Console.WriteLine("{0} {1} {2} {3}",
…
1
vote
How to retrieve notifications for a given user.
The easiest and most efficient is to maintain a cookie with a last_updated value.
Use this value as either from_date or min, depending on the query, and simply pull those records, scan for matching 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 …
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 …
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 = [];
…
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 = {}, …
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
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 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 …
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 …
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
{
…
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)
…
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)
…