Title: Need to retrive WP rest-api using basic authentication
Last modified: October 9, 2018

---

# Need to retrive WP rest-api using basic authentication

 *  Resolved [ranrinc](https://wordpress.org/support/users/ranrinc/)
 * (@ranrinc)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/need-to-retrive-wp-rest-api-using-basic-authentication/)
 * Hi,
 * I really love your plugin however my other WP is now using a more secure method
   for rest-api usage. So now your plugin unable to pull it into my other wp website.
   Any idea on how to pull it with basic authentications? Any help will be much 
   appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [7 years, 7 months ago](https://wordpress.org/support/topic/need-to-retrive-wp-rest-api-using-basic-authentication/#post-10763351)
 * It depends on how you plan on handling authentication. My plugin does not handle
   any type of authentication out of the box.
 * If you can pass authentication information as query strings when doing the requests,
   you could use the `jeherve_post_embed_base_api_url` filter to add your own parameters
   to each request that is made:
    [https://github.com/jeherve/rest-api-post-embeds/blob/4bf9f0c79f784f4d0c6adaaf44879b2f08ad3d6e/rest-api-post-embeds.php#L153](https://github.com/jeherve/rest-api-post-embeds/blob/4bf9f0c79f784f4d0c6adaaf44879b2f08ad3d6e/rest-api-post-embeds.php#L153)
 * If you plan on handling authentication differently, my plugin won’t be useful
   to you; you will need to find a different solution.
 * I hope this clarifies things a bit.

Viewing 1 replies (of 1 total)

The topic ‘Need to retrive WP rest-api using basic authentication’ is closed to 
new replies.

 * ![](https://ps.w.org/rest-api-post-embeds/assets/icon.svg?rev=2495828)
 * [REST API Post Embeds](https://wordpress.org/plugins/rest-api-post-embeds/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rest-api-post-embeds/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api-post-embeds/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api-post-embeds/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api-post-embeds/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api-post-embeds/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/need-to-retrive-wp-rest-api-using-basic-authentication/#post-10763351)
 * Status: resolved