Tag Info

Hot answers tagged

7

You need to encode the # character (to %23) http://api.stackoverflow.com/1.0/questions?title=true&tagged=c%23


6

Thanks for the help, S.Mark. Here's the answer: http://code.google.com/chrome/extensions/xhr.html You must register the API in your manifest.json file under permissions: ... "permissions": ["http://api.stackoverflow.com/"], ... }


6

Try this http://api.stackoverflow.com/0.8/questions/?tagged=gwt+google-app-engine


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 ...


4

I've been a long time user of this script and really loved it. The makeover is excellent, 1-click vote is pretty nice! Some minor issues: On Stack Overflow: Notice that the starting letter of the question("I") is still at the top Seems to happen at cases where the question length exceeds certain limit Example: ...


3

Question titles aren't markdown, they're plain text. Accordingly, if you're going to display them in HTML you shouldn't display them "raw".


3

Done. protected_date has been added as an optionally returned field. Example (SuperUser)


3

There is "accepted_answer_id" for questions method. When there is no accepted answers,that field does not exists in returned JSON. So hasAccepted is the existance of "accepted_answer_id" field.


3

Currently the API does not let you get "featured" questions (questions that have bounties) using or logic with the tag parameters. That is, you cannot search for questions that: Have a bounty AND (have Tag-A OR Tag-B) It might make sense to add a hasbounty parameter to the /search/advanced path. Workaround: In the meantime, since the number of featured ...


3

Stack Exchange supports the width attribute; see "What HTML tags are allowed on Stack Exchange sites?". The answer to that question emphatically states: You must enter the tags exactly as shown. Any deviation from this list—adding extra spaces, using single quote or no quotes, etc.—means the tag will be stripped. and: The attribute order is ...


3

Are they moved to filters? Yes, you need to generate a filter that includes the question.body, question.comments, and question.answers fields. There are shorthand filters (i.e. _bca) that will do this for upgrade compatibility, but their use is discouraged and you're better off just making a filter that contains exactly what you want anyway.


3

You already know the site, it has to be built in to every /questions query. But, if you are querying separate sites with concurrent AJAX queries, merely encapsulate the site name in your AJAX callback. See this Stack Overflow question for an example of doing that in javascript. Alternatively, you can parse the link property of the question response to ...


3

feature-request status-completed Support /unanswered tab as well. An example: http://stackoverflow.com/unanswered/tagged/regex


2

There is currently no way of finding this information out. This has been discussed before and it would be a serious privacy breach if this information was made available.


2

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 activity/creation filter (use max page size) compare last activity date of the question. this will include new answers and edits on both the question and answers ...


2

We'll consider this for a subsequent version. This was added in 1.1 as /questions/{id}/linked


2

This has been fixed.


2

Personally I think listing apps that use the data dump are fine -- it's an expansion of scope for stackapps, but then so was adding support for browser scripts. Generally anything third-party and programmery that makes the network more awesome should go here.


2

No, you can't do it because py-stackexchange is a library based on SE API that does not provide that kind of search. You should use Google API search instead.


2

This was fixed in the latest deploy, there was a problem selecting the most recent notice for post with multiple notices (which is rare).


1

Use the /questions path and sort by: creation, desc. For example:     /2.1/questions?pagesize=15&order=desc&sort=creation&tagged=php&site=stackoverflow


1

There is no app, exactly like that but two are pretty close (they don't have any annoying sounds). These both run on Windows + Linux platforms and provide desktop alerts for favorited/tracked tags. Check out: StackApplet: , built on the QT framework New Q!: , Uses the Chrome browser for its engine.


1

The documentation you linked to is for API 2.x, but you're querying 1.1 which doesn't return those exact objects (and is deprecated). This API 2.1 request will return the results you were expecting: http://api.stackexchange.com/2.1/questions/13752517/related?site=stackoverflow


1

Thanks to Dave for this ;) Your for loop should be: var i, l; for (i = 0, l = data.items.length; i < l; i++) { // Get your data here }


1

For one use the current API version (2.1) instead of an old one (1.1 in your case). Furthermore, when using JSONP you do not have to parse the result. The data object you get in your success method already is a JavaScript object you can work with. $(function(){ $.ajax({ url: ...


1

The API expects JSONP requests to specify the callback as the jsonp parameter, not the callback that jQuery uses by default. While really you should consider upgrading to API 2.1, which does expect callback (and allows CORS, for that matter), you can fix your code by putting in the jsonp parameter placeholder: $.ajax({ ...


1

No, this is not currently available. It is currently not slated for the next API release either... I'll look into what it would take to get it added though. If it's not too rough it might make it into V2. Time was found to implement this, and it's been deployed.


1

Its because post id 74 is an answer, not a question. This was an undiscovered bug in the API back when we froze it, but enough [app]s depend on it that we haven't "fixed" it. Naturally, answers have no titles or tags.


1

As Dennis pointed out, there is no owner (effectively) on that question. That the API does not return a displayable "no user" string in these (and related) cases is an acknowledge deficiency which will be rectified in a subsequent version.


1

Sometimes there isn't an owner. The user has been deleted (usually), which is pretty rare in the grand scheme of things. This is, however, an acknowledge deficiency in the API that will be resolved in a subsequent version (to return a display_name, in all likelihood).



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