I am not finding a way to return a list of new questions by tag with the new Stack Exchange API.
Am I missing something or is this not available? If this is not available, I most certainly request this feature.
I am not finding a way to return a list of new questions by tag with the new Stack Exchange API.
Am I missing something or is this not available? If this is not available, I most certainly request this feature.
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:
or
https://api.stackexchange.com/2.0/search?order=desc&sort=creation&tagged=iphone&site=stackoverflow
The difference between the two is that if you search with multiple tags (separated by semi-colons), eg (c#;iphone
):
/questions
method will return questions which have both the c#
and iphone
tags./search
method will return questions tagged either c#
or iphone
(or both).