Hot answers tagged search
3
In order to access the body of a post, you need to create a filter that includes this information. You create a filter using the /filters/create method:
http://api.stackexchange.com/2.0/filters/create?include=question.body;answer.body
The response from that URL will look something like this:
{
"items": [{
"filter":"!9Tk5izFWA",
...
}
As you ...
3
The API allows you to get question data based on ID, so since all forms of question URLs for Stack Exchange sites have an ID in them, you can pull that value out and pass it to the /questions/{ids} route.
Likewise, if you don't know the specific site in advance, you can pull out the hostname and pass that in dynamically.
As an example, I parse out similar ...
2
Instead of linking to a .tar.gz archive, don't you think it's more practical to link to the raw file instead so it can be installed immediately?
Click here to install the script
It seems more logical to me.
Also, there is a small problem that you can add tags to your search query multiple times.
If a tag is already in the search query, it should not be ...
2
migrated is equivalent to searching with migrated:1 or migrated:0 on the site itself.
In other words, migrated=true returns questions that have migrated_to (questions that have been migrated away from the site they were originally asked on). migrated=false returns questions that don't have migrated_to, but may have migrated_from.
There was a bug (fixed in ...
2
This has been fixed in the latest deploy (it also affected body turns out).
We've got some changes to our search infrastructure in the pipeline, and API v2.1 is being used to test them out. You might have noticed it's had some... issues. Better to find them in an API beta than after the rollout to the Q&A sites though.
Only top voted, non community-wiki answers of a minimum length are eligible