Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year, 9 months ago.

Assisted by: Prosenjit Barman.

Author Posts
September 3, 2023 at 5:56 pm #14332451

nicolaP-6

I am trying to get translation data of pages from REST API. When callling /wp-json/wp/v2/pages endpoint, I get information about pages inside the website. How can I get information about the translations of that page, if they exist?

I could not find any documetation about it.

Thanks

September 4, 2023 at 12:16 pm #14336513

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

To retrieve the info of page/post in each language:

- If you are using the URL format as a directory per language, the URL to retrieve the Post will be: site.com/en/wp-json/wp/v2/posts?status=publish&_embed

- If you are using the language name as a parameter format, you can retrieve the post in each language in this way: - site.com/wp-json/wp/v2/posts?status=publish&_embed&lang=en

Let me know if that helps or if you need further assistance. I will be happy to help.

Best Regards,
Prosenjit