The API currently does not support this, but then neither does the website itself.
The "How do I search?" help page says:
To combine results from multiple tags, separate the tag names (enclosed in square brackets) with the word "or": [widgets] or [geegaws] returns questions tagged with either tag.
Note that it only ...
Although it doesn't appear to say so in the doc page, intitle expects an exact phrase, not a list of words.
You can currently see this by:
/2.2/search?intitle=get column array&site=stackoverflow
which currently returns one result with that exact phrase in the title, but doesn't return the many questions that have those 3 words in other arrangements.
The /search path and the /search/advanced path return only questions, not answers, and by design. It says so right in the doc pages:
Searches a site for any questions which fit the given criteria.
This method returns a list of questions.
Your example Stack Overflow search returned answers as well.
The correct equivalent search is:
I forget when, but sometime in the last couple of years, the /search/excerpts route started allowing is:answer in the q parameter.
-- which returns Stack Apps answers with the text "Hear!" in the body.
(Pretty sure I tested this in early 2014, ...
In order to get the total, you need to use a filter that includes it.
If you just want the total, as your sample code implies, then use the built-in total filter. For example:
If you want the total AND the results, then you must use a custom filter with the ...
Date parameters are in unix epoch time and 1447113600 is 2015-11-10, 00:00:00.
So any questions posted on Nov 10th actually happened after that.
When searching for date ranges, you usually want to increment the end-date (max in this case) by one full day.
For example, if you want items from 12-12-2012 to 12-13-2012, you would use max=1355443200 (The ...
I can reproduce (sort of):
Search on the main site: 1,449 results
Searching with the API: 857 results
I use a different filter which shows the total number of results at the bottom, but that doesn't matter:
What happens here is explained in the API documentation, if you look closely:
Usage of /search/advanced GET
Searches a site for any ...
There's indeed no difference between order=asc and order=desc; perhaps this is a limitation of Elasticsearch which powers the Stack Exchange search engine (both the API and on the sites). To be fair, to find the most irrelevant search result on the site you have to go to the last page yourself. The API is no different.
There is some difference between the ...
No, there is no easy way to do this via the API.
Related feature requests:
Provide a method to search for sites winch merely wanted a search for site name/description. It was declined.
Search across Stack Exchange sites in Android app. To implement this usually would mean that a supporting method would be added to the API. This feature-request has been ...
No there is no "Query API", especially not for SQL-like syntax.
It sure would be sweet to have an always current version of SEDE† (even if limited to, say, a hundred rows), but this is very unlikely to ever be provided.
Your options are:
Oftentimes the q parameter of the /search/advanced route is pretty powerful and will get you close to what you ...
Is there any valid way to get the information from stackoverflow.com/search?q=?
Use the /search/advanced route of the API; that's what it's there for.
(Doc page equivalent)
is_answered is true if there is at least one positively scoring answer. It doesn't actually mean 'marked as accepted'. See more about how it works in this answer
(URL without filter so I don't need key/...
Looks like no data from May 2013 onwards:
When I search for the phonegap tag on SO:
...and click the button I get taken to questions tagged cordova:
I suspect the tags have been merged?