9

I am writing a plugin which makes calls to https://api.wordpress.org/plugins/info/1.0/{slug}.json

Is there a limit on making calls to WordPress.org API's? For example once per hour or every 10 minutes etc. Read more - https://codex.wordpress.org/WordPress.org_API#Plugins

4
  • Any suggestions?!
    – kanenas
    Commented Apr 20, 2015 at 16:23
  • 1
    I guess it is probably easier and faster to ask the wordpress.org people directly. Commented Apr 23, 2015 at 11:21
  • 2
    @ialocin thanks for the suggestion! So here it is wordpress.org/support/topic/…
    – kanenas
    Commented Apr 23, 2015 at 21:10
  • Still relevant today
    – TonyG
    Commented Dec 28, 2023 at 22:35

1 Answer 1

2

I 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

3
  • Although what you say is correct, it isn't an answer to the question. Commented Apr 23, 2015 at 11:24
  • 1
    Apologize to answer rather than to only drop a comment. sorry.
    – Ismail
    Commented Apr 23, 2015 at 11:28
  • 2
    Not a problem and actually maybe it isn't that bad as additional insight and information, so let it be an answer I guess. Commented Apr 23, 2015 at 11:30

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.