Questions tagged [dev-tip]
A tip for developers working with the Stack Exchange API.
12 questions
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 ...
12
votes
1
answer
415
views
How the /sites method is meant to be used
The /sites method is used to enumerate all sites in the network. If your [app] is meant to run against more than a single site (and many are) this method is how you should be discovering new sites in ...
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 ...
3
votes
4
answers
242
views
How to order /sites result in a user friendly way to use it in our apps.
Since ordering of /sites is not guaranteed, how do i effectively order sites in a user-friendly way?
General requirements:
Trilogy must stay on the top of the list
[stackoverflow.com,meta....
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,
"...
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 ...