I have a website where three languages are present. I am requesting nodes through the Services API endpoint and that part is working well.

When requesting a node via JSON, how does the API let me know the requested node ID is associated to translated nodes?

I know the translated nodes do contain a "tnid" record of the original node, but the original node doesn't have anything to indicate that there are translated nodes.


1 Answer 1


To know if there are translations available for particular node, You need to call the below function to get the available translation nodes.

$translations = translation_node_get_translations($node->tnid);

Ref : Function translation_node_get_translations

So what you can do is, You can call this function when you are returning node from service API along with translated nodes.

Hope this will help.


  • For a mobile app, I would need to somehow expose that function? Or is having the "tnid" enough. Something tells me it is possibly not enough for a mobile app? Commented Sep 29, 2016 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.