0

I want to retrieve all the plugins information in my .NET application. I can get any plugin information by using this API:

https://api.wordpress.org/plugins/info/1.0/{slug}.json

Now I need to get the names of all the available plugins.

Any help is appreciated.

2

1 Answer 1

1

You can use this URL to run GET request:

https://api.wordpress.org/plugins/info/1.1/?action=query_plugins&request[page]=2&request[per_page]=100&request[browse]=new

You will get JSON object that includes plugins, the total number of plugins, page, the total number of pages. It will sort plugins from newest to oldest.

4
  • Thank you so much, it is really helpful, but one problem is that it returns the same result of Page=1 with the following different parameters as well. e.g api.wordpress.org/plugins/info/1.1/… api.wordpress.org/plugins/info/1.1/… api.wordpress.org/plugins/info/1.1/… In short page and per_page params doesn't effect the results. Am I doing something wrong and how can I get the results from page = 2,3... and so on? Commented Sep 16, 2017 at 5:12
  • I have updated my response, it looks like the format has changed a bit. Try it now. Commented Sep 16, 2017 at 8:04
  • Thank you so much, I can easily go through each page now. One last request, can you please share a link for documentations where different options/params information for this APIs are mentioned. I have found this one but it is vague codex.wordpress.org/WordPress.org_API Commented Sep 16, 2017 at 12:44
  • It is similar to theme params on that API page, there is no other documentation. Commented Sep 16, 2017 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.