• Resolved mattphew_stink

    (@mattphew_stink)


    Hi,
    I am new to WordPress and I am looking at using wordpress for content management and creating a custom site and use the REST api to access the content. I have installed wordpress v4.3.1 on local WAMP server, and installed Jetpack v3.8.0.

    I have taken a read through the Jetpack documentation, however I cannot seem to activate the JSON api in the jetpack control panel.

    Can someone please let me know what may could be the issue?
    Is it possible to do this on my local machine?

    thanks in advance
    Peter

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I have installed wordpress v4.3.1 on local WAMP server

    Since you’re working in a local environment, your site is not publicly accessible and cannot communicate with third party services like WordPress.com. You consequently won’t be able to use Jetpack’s REST API, since your site isn’t connected to WordPress.com.

    You can, however, use the REST API plugin instead:
    https://ww.wp.xz.cn/plugins/rest-api/
    http://wp-api.org/

    You can interact with this API without having to connect to a third-party service like WordPress.com.

    If you’d like to use Jetpack’s REST API instead, you’ll need to push your site live first, or to work on a publicly accessible sandbox.

    I hope this helps.

    Thread Starter mattphew_stink

    (@mattphew_stink)

    Hi Jeremy,
    Thanks for the quick reply.

    I will look into that.

    Just to clarify something, If I have my own WP hosting, and I wish to access my own posts etc, with the jetpack JSON API module, are all api requests sent to my site once live??

    thanks again for your quick reply.
    Peter

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    with the jetpack JSON API module, are all api requests sent to my site once live??

    No, they’re sent to WordPress.com. That’s the main difference between the 2 REST APIs. Jetpack’s REST API relies on the WordPress.com infrastructure, and allows you to make requests to WordPress.com instead of the local site.

    To give you an example, you could use that URL to get to the latest post on WPTavern.com:
    https://public-api.wordpress.com/rest/v1.1/sites/9006382/posts/48972

    Thread Starter mattphew_stink

    (@mattphew_stink)

    Cheers,
    makes much more sense.
    Thanks again

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Enabling JSON Rest Api – Jetpack v3.8.0’ is closed to new replies.