简体   繁体   中英

Fetching WordPress.org reviews via API

I want to fetch a plugin review from wordpress.org via API, is it possible? I tried using https://api.wordpress.org/plugins/info/1.0/{slug}.json but no luck? Is there anyone available for help?

To fetch reviews of a WordPress plugin from the WordPress plugin directory, you can use the WordPress.org Plugin API. The API allows you to retrieve information about a plugin, including its reviews, by sending a GET request to a specific endpoint.

Here's an example of how you can use the API to retrieve reviews for a plugin with the slug "akismet":

https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request[slug]=akismet

This will return JSON data containing information about the plugin, including an array of reviews. You can then parse the JSON data and extract the reviews as needed. At this moment it only returns 10 reviews.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM