Questions tagged [dev-tip]
A tip for developers working with the Stack Exchange API.
24 questions
2
votes
1
answer
88
views
Where do I look for a new-to-the-network technical-overview introduction to what a script/app/etc. basically is, incl. differences between them?
Where do I look for a new-to-the-network technical-overview introduction to what a script/app/etc. basically is, including differences between them?
Basically, I'm looking for onboarding documentation ...
3
votes
3
answers
791
views
How to format an url-friendly slug for question urls
I would like to construct a slug starting from the question title.
It would be useful to apps that want to show the original link to the question in a human readable way.
On StackPrinter i have this ...
5
votes
2
answers
2k
views
API compliant request throttle implementations
Balancing compliance with Request Throttling Limits with maximum allowable throughput in our applications and libraries with any reliability requires self-throttling.
This post is meant to be a repo ...
4
votes
0
answers
243
views
Announcement: StackExchange API Development Wiki
RIP August 24, 2010 - April 26, 2013
Due to lack of interest and the increasing burden of maintenance, I have decided to close down this wiki. Most of the information that it contains is either ...
9
votes
7
answers
4k
views
How to format time since xxx e.g. "4 minutes ago" similar to Stack Exchange sites
function timeSince(date) {
var seconds = Math.floor((new Date() - date) / 1000);
var interval = Math.floor(seconds / 31536000);
if (interval > 1) {
return interval + " years";...
3
votes
1
answer
110
views
How to generate a list of users ranked by bug report submissions.
The use case is to generate a list of bug report submissions, grouped by User, of the following counts in descending order:
bug
bug + status-completed
bug + status-deferred
bug + status-bydesign
...
3
votes
3
answers
324
views
How to calculate a list of users ranked by question favorite count totals.
The API provides methods to sort and filter individual questions by favorite count.
In order to calculate the question favorite count totals per User, some grouping and set operations are required.
...
3
votes
2
answers
127
views
How to calculate a list of users ranked by question view count totals.
The API provides methods to sort and filter individual questions by view count.
In order to calculate the question view count totals per User, some grouping and set operations are required.
e.g.
...
5
votes
2
answers
215
views
Simple Activity Monitor - For Educational Purposes only.
This Soapi.JS script, if abused is likely to provoke frowns from those whom you would like to see smiles.
Note: the dataset is only valid if the entire user base is pulled, and on just about any ...
4
votes
0
answers
89
views
recommended buffer size for markdown fields is conservative
I ran into a truncation error while inserting user data into a database using the documented field length (buffer size) of 3000.
So I redefined to nvarchar(max), pulled all users in the stack ...
6
votes
0
answers
201
views
How to get the count of a query efficiently
To get the count of a query without returning results, simply specify pagesize=0.
http://api.stackoverflow.com/0.9/users?filter=mike&sort=name&pagesize=0
{
"total": 1161,
"page": 1,
"...
7
votes
0
answers
493
views
How to use min/max with sort
While some sort values make inference of the expected min/max values less than ambiguous, others do not.
Pending formal documentation, I hope this can serve as an informal reference.
Aggregated sort ...