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 |
The question you're asking is designed to solicit opinions or best-practices on a particular topic, with the goal of reaching community consensus.
17
votes
0
answers
2k
views
What is SOAPI and why should I care?
Let me answer the last question first:
Why should you care?
You shouldn't care unless
you are a .NET or JavaScript coder who can leverage robust client access libraries for the Stack Exchange API …
16
votes
API Documentation and Help
Regarding paged results:
The API's handling of empty paged results seems inconsistent. Some methods return empty sets, some throw a 404.
It is my opinion that an empty set should be returned for an …
13
votes
0
answers
15k
views
How to call the API via JSONP in Plain Old JavaScript
This tips demonstrates how to call the API in JavaScript without the need of jQuery or other frameworks.
In a lot of cases you will find that the JSONP implementations provided in various frameworks …
12
votes
How to convert unix timestamp to .NET DateTime
This is a take on a class that has been floating around for a while. I first saw it in kevin's first api.
You can use this on all values that are declared as 'unix timestamp', both request and respon …
12
votes
7
answers
308
views
API V2 Musings: What would you like to see
Answers should take the form of feature requests/modifications that are either obviously beyond the scope of v1 and or have been status-declined or status-deferred
They will be indexed here in the Q. …
10
votes
API V2 Musings: What would you like to see
Move the id value into the query string
In that the id is vectorized, it is designed to represent multiple values.
Currently the id field is a component of the url. This severely constrains the number …
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";
…
9
votes
1
answer
168
views
The API v0.9 2010.06.24.002 as seen by SOAPI
Stack Overflow API as seen by the SOAPI parser and code generator:
With the API freeze, changes to the vast API should slow to a trickle, making manual maintenance possible. At this milestone, I have …
8
votes
Request Throttling Limits
I have confirmed that a constant interval of 170 ms will run without error.
// 30 per 5 sec = 6 per sec = interval 166.6 ms
Soapi.RequestQueue.setInterval(170);
Soapi.RouteFactory("api.meta.s …
8
votes
1
answer
535
views
How to batch up multiple id requests to maximize economy and still avoid (400) Bad Request [closed]
Update:
All of our grumblings and the unbearable beauty of our workarounds resulted in this issue being fixed last week.
You can now send 100 id in one request and receive 100 responses.
See Url lengt …
7
votes
0
answers
478
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 …
6
votes
Accepted
How to protect API Keys?
The name 'key' is a bit misleading.
It is not your 'license', it is simply a means of controlling anonymous access to the api and to gather usage metrics.
So, while there is no value in advertising …
5
votes
Accepted
Get a list of required tags for site
the original question was apparently for V1.
in V2 we now have https://api.stackexchange.com/docs/required-tags
the request: https://api.stackexchange.com/2.0/tags/required?order=desc&sort=popular&s …
5
votes
3
answers
533
views
OBSOLETE - Build an app with Soapi.JS and gain praise and adulation. And some rep
Bounty Contest:
Build anything using the Soapi.JS JavaScript wrapper and either post the code or a link to a live demo.
When the question gets old enough (7 days I think) I will click 'start a bounty' …
5
votes
2
answers
174
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 othe …