I'm creating a simple notification application to inform me about latest questions with defined tags. For example, my tags are python
and django
.
I want to see the latest asked question with those.
Which API URL should I use?
1 Answer
You should use /questions
, it provides an option to filter on tags. You'll also need to set the sort
parameter to creation
instead of the default, activity
.
This will be the URL you're looking for: https://api.stackexchange.com/2.2/questions?order=desc&sort=creation&tagged=python&site=stackoverflow
You can test it here, the first question it gave me was this one which was posted just a minute before.
-
Thanks @Arulkumar. It's strange that api.stackexchange.com isn't automatically redirected to HTTPS.– Glorfindel ♦Commented Aug 2, 2017 at 14:18
-
-
1@Arulkumar I've posted a question (read: answer) on Meta SE about that.– Glorfindel ♦Commented Aug 2, 2017 at 14:33