Contentful logo

Contentful Community

Get some fields in multiple locales and some fields in a single locale. Is it possible to do this in a single API call?

I would like to fetch a single entry from the Contentful API, and get some fields in multiple locales and some fields in a single locale.

Specifically, I have a “slug” field that I want in all locales, so I can populate hreflang tags on the page. But then, for every other field in the entry, I only want the values in the current locale.

Is it possible to do this in a single API call? Or do I need to do separate API calls?

Thanks!

1 Like

Hi @romaneimesh,

I have already answered this in another topic that was recently created by you:

In the future, it would be great if you avoid duplicate questions and help us keep the quality and relevancy of our community threads :slight_smile: