Tag Info

Hot answers tagged

7

As long as has_more is set to true there is more data available. You can get this data by increasing the page parameter in your request subsequently and running new request with that changed page parameter. The next url for your example would then be ...


6

They have been very clear that version 1 of the API will be read only and they will be revisiting the POST type features (like adding new questions and answers) for the next version of the API. You can post and vote for the features you would like to see in the next version here. You can also view any feature requests which have been deferred to some future ...


6

This isn't an answer, just an agreement with the original poster (though I might have couched my feelings in slightly less confrontational language). The API is beginning to feel rather like abandonware. My reasoning… Since the competition winners were announced, the API's not even been mentioned on the blog We've had no official word on updates and ...


5

"Agile" API releases are a really bad idea, frankly. The StackOverflow code base undergoes rapid iteration already, just watch the build numbers. On average we deploy at least once a day. Oftentimes these are just bug fixes, but a non-trivial amount of the time we're introducing new features or revising existing ones. To take one feature for example: ...


5

Update Ok, I see from comments that you are using phone7 - the story is slightly different than mainstream silverlight as there is ONLY ClientHttp stack and you will need to manually decompress, as you have found out. I use Silverlight.SharpZipLib for this purpose. Good luck. Here is a method that will work in Silverlight and Phone 7. You can use it for ...


5

Since the competition winners were announced, the API's not even been mentioned on the blog There is an entire site dedicated to applications on our API -- and you are on it! I refer people here all the time when they are looking for functionality we don't offer. Apps and wrappers have had no publicity or support from the SE team See above. ...


5

Not like this? http://api.stackoverflow.com/1.1/tags?pagesize=100&page=1 http://api.stackoverflow.com/1.1/tags?pagesize=100&page=2 ....


4

There are two, rather divergent, answers to this question. First and foremost, its not in the API because nobody (us included, woops!) thought of it before the API interface was frozen... so it didn't get implemented, even as a trial feature. Perhaps we'll revisit it for a subsequent version. Alright, onto the real meat of the issue. Headers ...


4

The date is Unix Epoch time, which is the number of seconds since 1/1/1970. The "time zone" is UTC, which is nearly equivalent to GMT. You can convert from UTC to local time in javascript using the method outlined here. Here are the functions I use to convert back and forth (code is C#): public static DateTime ConvertFromUnixTimestamp(double timestamp) { ...


4

Note: I'm the author of stack.PHP. You're likely running into rate limit issues. The API only allows you to make som many requests per second. Quoting from the question I linked to: The API will cut you off if you make more than 30 requests over 5 seconds to any single endpoint. Based on past experience, what you need to do is make sure that there is ...


4

ASP.NET was freaking out about the < in your search term. Fixed it*. More generally, the API always returns compressed content; so everything is "binary," this case just showed it more obviously due to the unusual error. *It's worth noting that the actual < and > are not indexed by our Lucene search provider, so you can't actually search for ...


4

As I learned from George Edison in his comment, the server handles time in UTC format. Just replace your calls to DateTime.Now with DateTime.UtcNow or you can convert any DateTime to UTC format with the ToUniversalTime method. Just make sure not to call ToUniversalTime on the server's time, or it'll get messed up.


4

I had a similar issue a few months ago ago, and I came up with a couple of suggestions, one exactly like how you suggested: Ask the user for the email associated with their account, MD5 it, and compare it to the value provided by the API. This works, provided it isn't essential that the user is who he says he is - a users email may be publicly available, ...


4

There are 2 ways to get the 10 most recent questions of a tag, either on the /questions method or /search method. The parameters on both routes are the same, just set tagged to your tag (eg iphone), and sort to creation, and order to desc So that's either: ...


4

First of all, version 1.1 of the API has been deprecated for quite some time now. Users are strongly encouraged to move their applications over to version 2.1. The URL for retrieving information about a question looks something like this: http://api.stackexchange.com/2.1/questions/ question_id ?site= site_name For example, to retrieve information ...


3

There isn't anything special in the API that would let you do this. You could send the user directly to the ask a question page. I fiddled with the FireFox plugin I created to see if I could add the ability to post directly to the site to add an answer to a question or a comment if someone was already logged in. If I remember correctly there is some key ...


3

If you're application is making identical requests more than once a minute it is probably going to be considered abusive see Conscientious use of the API for more info.


3

Look to your right------> (where it says Get Started) Api is a REST implementation and as such has no 'download' You may access it right from your browser address bar or leverage one of the many client libraries that have been implemented. http://stackapps.com/questions/288/list-of-libraries If you are using JavaScript or C#, I would be remiss, as a ...


3

Perhaps I can offer an opinion on cacheability of the API. Please don't downvote before reading through. Caching is hard Caching and cache invalidation is hard. Often, if not always, you need to intimately know the data to be able to cache it effectively. In order to enable a generic Etag caching ability the server will need to execute the request and ...


3

You can get meta data about a site as well as about all sites and users within the Stack Exchange sites network, see e.g. the following routes: Api Routes /stats Gets various system statistics. StackAuth Routes /sites Returns a list of all the sites in the StackExchange network /users/{id}/associated Gets all the associated user accounts across ...


3

I have found that the uniformity of having all of the methods return arrays has made writing a library much easier. Of course if it is a call (like the stats method) which always returns just one result, you don't have to expose it as a list to the API consumer. I don't have any experience with code generation and web APIs so I can't speak to that.


3

Regarding the following question, Can I always assume that removing the "api." subdomain will result in the base url of the site? No, According to Kevin here


3

There are a great many fields on objects returned by the API that will be omitted if they are not set. The user fields you mentioned. locked_date, bounty_date, etc. on questions and answers a whole slew of user_timeline and post_timeline fields depending on the *_type of each ... and many more. We do this because omitting a field clearly indicates that ...


3

Yeah, just displaying blank string will be great. And also same for accept_rate age location website_url too (may be there is even some more) Note: Personally, I don't have any problem with existence of those field or not though


3

Ask Ubuntu Data Server does what you suggest in a very small way. It uses the information in the data dumps to respond to the /similar route. Its behavior is designed to match the actual API route as much as possible. That being said, it serves mostly as a demonstration that such a thing is possible. It only implements one route and only a fraction of the ...


3

Simply click here to register an application. This will provide you with an API key and application ID. If you want the application to use the implicit OAuth flow, then make sure the "Enable Client Side OAuth Flow" checkbox is checked:


3

API V2.0 introduced the /inbox and /inbox/unread routes. They provide read-only access to a user's inbox, and both require authentication.


3

If you visit: http://stackapps.com/edit-tag-wiki/codeigniter ... you're redirected to that URL. If you don't mind the redirect, you might just be able to get around it that way. As far as I know, there's no documentation about when you can specify a name versus when you must specify an ID number, and I know of no API route that returns the ID numbers. ...


3

Actually this can be done with using the rss feed channel on ifttt. together with the rss feed from the Stack2rss app that transforms stackoverflow api queries to an rss feed. like: http://stack2rss.stackexchange.com/stackoverflow/users/{{your user id}}/questions?body=true you should check the api for the specific query you like (respone, specific ...



Only top voted, non community-wiki answers of a minimum length are eligible