Title: Jetpack REST API
Last modified: August 30, 2016

---

# Jetpack REST API

 *  Resolved [Goharika](https://wordpress.org/support/users/goharika/)
 * (@goharika)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/jetpack-rest-api/)
 * I have add Jetpack in my dashboard and activated it. So I connect my site with
   wordpress.com account.
    Now I am trying to get posts.This is my URL [http://lc13754376.on-rev.com/restapi/](http://lc13754376.on-rev.com/restapi/).
   So for getting posts I need to type [https://public-api.wordpress.com/rest/v1/sites/www.lc13754376.on-rev.com/restapi/posts](https://public-api.wordpress.com/rest/v1/sites/www.lc13754376.on-rev.com/restapi/posts).
   But it returns white screen. What am I doing wrong?
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [10 years, 7 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752785)
 * Instead of using the site URL, I’d recommend using the blog ID. This way you’ll
   avoid issues like the encoding of your site URL, especially when it includes 
   a subdirectory:
 * [https://public-api.wordpress.com/rest/v1.1/sites/102742951/posts/](https://public-api.wordpress.com/rest/v1.1/sites/102742951/posts/)
 *  Thread Starter [Goharika](https://wordpress.org/support/users/goharika/)
 * (@goharika)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752788)
 * Thanks for reply, where I can see my blog ID?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [10 years, 7 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752789)
 * In this particular case, I used your blog ID in the link I pasted above.
 * To get another site’s blog ID, you can hit the `/me/sites` endpoint to get a 
   list of all your connected sites and their blog IDs (among other things).
    [https://developer.wordpress.com/docs/api/1.1/get/me/sites/](https://developer.wordpress.com/docs/api/1.1/get/me/sites/)
 * You can also use the REST API console to make that query:
    [https://developer.wordpress.com/docs/api/console/](https://developer.wordpress.com/docs/api/console/)
 *  Thread Starter [Goharika](https://wordpress.org/support/users/goharika/)
 * (@goharika)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752791)
 * Yes I have seen that you have put my ID that is why I asked about ID, as I haven’t
   seen before. Thanks for information 🙂
 *  Thread Starter [Goharika](https://wordpress.org/support/users/goharika/)
 * (@goharika)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752793)
 * One more question, can we use JetPack , when we use our own hosts, not the wordpress.
   com ?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [10 years, 6 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752848)
 * Jetpack can only be installed and used on self-hosted WordPress sites, so yes,
   you’ll be able to use it if your site is not hosted on WordPress.com.

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

The topic ‘Jetpack REST API’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [wordpress.com](https://wordpress.org/support/topic-tag/wordpress-com/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/jetpack-rest-api/#post-6752848)
 * Status: resolved