I am writing a plugin which makes calls to .0/{slug}.json
Is there a limit on making calls to WordPress API's? For example once per hour or every 10 minutes etc. Read more - _API#Plugins
I am writing a plugin which makes calls to https://api.wordpress/plugins/info/1.0/{slug}.json
Is there a limit on making calls to WordPress API's? For example once per hour or every 10 minutes etc. Read more - https://codex.wordpress/WordPress_API#Plugins
Share Improve this question asked Apr 18, 2015 at 10:06 kanenaskanenas 4261 gold badge6 silver badges20 bronze badges 4- Any suggestions?! – kanenas Commented Apr 20, 2015 at 16:23
- 1 I guess it is probably easier and faster to ask the wordpress people directly. – Nicolai Grossherr Commented Apr 23, 2015 at 11:21
- 2 @ialocin thanks for the suggestion! So here it is wordpress/support/topic/… – kanenas Commented Apr 23, 2015 at 21:10
- Still relevant today – TonyG Commented Dec 28, 2023 at 22:35
1 Answer
Reset to default 2I have no idea if WP API has limits, but, you should always cache your requests every time you deal with a third party API access. it is a good practice to cache the response for an hour or whatever, it will help optimizing the site which will use your plugin, thus it loads faster due to cached responses.
I suggest you use Transients API « WordPress Codex