6

I'm using WordPress REST API to access some posts from an app we're creating, but the API calls are really slow!

If I'm using the domain in the call like this:

https://public-api.wordpress.com/rest/v1.1/sites/www.example.com/posts/?

it takes ~3000ms to load.

If I'm using the site-id, it "only" takes 2000 ms. Is there anything I can do to speed things up? Is there any way to access the API directly through my own domain like http://example.com/rest/v1.1/posts/?

closed as off-topic by Krzysiek Dróżdż, Jacob Peattie, Fayaz, Jack Johansson Jul 19 '18 at 13:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – Krzysiek Dróżdż, Fayaz, Jack Johansson
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Are you sending these requests to self-hosted site or to some blog on wordpress.com? – Krzysiek Dróżdż Mar 21 '18 at 15:12
  • A very old question, not sure OP is looking for the answer any longer ;) – Fayaz Jul 18 '18 at 9:54