Q:

Get language of Instagram post through API?

I am using the following URL to scrape the popular images/videos from Instagram (using PHP).
https://api.instagram.com/v1/media/popular?client_id=CLIENT-ID

It returns a json object, but I do not see a value for "language". This is a problem because sometimes the captains are in arabic or something else and I need them to be English for my web app. Is there anyway to know the language of the post or will I have to use some language detecting function?

A:

Checkout this for the source code, and this for a demo. You then just have to pass the captions in to detect the language. It checks for 52 languages. You can also use Google Translate's API.

