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.2017-08-02 14:18:34 +00:00Commented Aug 2, 2017 at 14:18
-
Yes, like area51.stackexchange.comArulkumar– Arulkumar2017-08-02 14:19:48 +00:00Commented Aug 2, 2017 at 14:19
-
1@Arulkumar I've posted a question (read: answer) on Meta SE about that.2017-08-02 14:33:46 +00:00Commented Aug 2, 2017 at 14:33