No wp-json api in new blogs

  • Unknown's avatar

    I have created a few new blogs for testing a wp-json rest api tool but these new blogs don’t have the rest api enabled and I can’t figure out how to enable it. Can you please let me know how to enable it and if this is a new policy to have it off by default?

    For example: https://test1326458132.wordpress.com/wp-json gives error 404.

  • Hi there,

    What exactly are you trying to do? Sites hosted on WordPress.com doesn’t have a /wp-json page like sites using the open source version of WordPress, so there is nothing to enable here.

    If you’re trying to interact with your site via a third party app or service, XML-RPC is enabled on all WordPress.com sites, or else you can find information on the WordPress.com REST API at https://developer.wordpress.com/docs/api/

    Note that we don’t provide support for using the API, so pointing you to those docs are as much as I’m able to do.

  • Unknown's avatar

    Ok thanks for your response. It is useful. I haven’t seen it spelt out clearly anywhere else that there are different apis for wp.com vs .org. They do appear pretty similar though so I can make that work.

    Perhaps the wp.com api could be advertised with a <link> in the html head similar to the .org one?

  • The topic ‘No wp-json api in new blogs’ is closed to new replies.