Title: REST API Support
Last modified: January 2, 2020

---

# REST API Support

 *  Resolved [Updula](https://wordpress.org/support/users/updula/)
 * (@updula)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/rest-api-support-17/)
 * Hi there
 * What’s the possibility to add REST API support to values returned as JSON from
   WP REST API? Similar to: [https://polylang.pro/doc/rest-api/](https://polylang.pro/doc/rest-api/)
 * A good example would be to translate WooCommerce responses [https://woocommerce.github.io/woocommerce-rest-api-docs/](https://woocommerce.github.io/woocommerce-rest-api-docs/)
 * Thank you

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

 *  Plugin Author [Weglot Translate Team](https://wordpress.org/support/users/remyb92/)
 * (@remyb92)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/rest-api-support-17/#post-12290187)
 * Hey there,
 * JSON value returned should already be translated, depending on the key. There
   is possibility to add Key you want to translate using filters.
 * Can you provide an example of what is not translated 🙂 I’ll help
 *  Thread Starter [Updula](https://wordpress.org/support/users/updula/)
 * (@updula)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/rest-api-support-17/#post-12290444)
 * I haven’t tested what would be returned from the REST API as there were no docs
   explaining if supported.
 * Example if would to retrieve a product variations in default language
    `GET https://
   example.com/wp-json/wc/v3/products/177/variations`
 * Request to translated response `GET https://example.com/wp-json/wc/v3/products/
   177/variations?lang=fr`
 *  Plugin Author [Weglot Translate Team](https://wordpress.org/support/users/remyb92/)
 * (@remyb92)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/rest-api-support-17/#post-12351984)
 * Hey, I just wanted to test if that worked ?
 * Best

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

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

 * ![](https://ps.w.org/weglot/assets/icon-256x256.gif?rev=3333666)
 * [Translate WordPress with Weglot - Multilingual AI Translation](https://wordpress.org/plugins/weglot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weglot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weglot/)
 * [Active Topics](https://wordpress.org/support/plugin/weglot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weglot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weglot/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Weglot Translate Team](https://wordpress.org/support/users/remyb92/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/rest-api-support-17/#post-12351984)
 * Status: resolved