# Is it possible to extract form field translations via the API?

**URL:** <https://support.primero.org/forum/t/is-it-possible-to-extract-form-field-translations-via-the-api/602>\
**Category:** CPIMS\
**Tags:** v2-0\
**Created:** [August 19, 2022, 4:49pm UTC](https://support.primero.org/forum/t/is-it-possible-to-extract-form-field-translations-via-the-api/602 "2022-08-19T16:49:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksa\_openfn](https://support.primero.org/forum/user_avatar/support.primero.org/aleksa_openfn/32/245_2.png) [@aleksa\_openfn](https://support.primero.org/forum/u/aleksa_openfn)\
**Post date:** [August 19, 2022, 4:49pm UTC](https://support.primero.org/forum/t/is-it-possible-to-extract-form-field-translations-via-the-api/602/1 "2022-08-19T16:49:09Z")

</div>

We are working on an Interoperability project with Primero V2 where the partner would like to send translated value labels for single- and multi-select questions to another system.

For example, if a caseworker has specified that the case `Occupation` is `"Pre-School"` in a form, via data integration with the `/cases` API endpoint, we can extract this information and see the DB names for this field and the option value are configured as…  
`"occupation": "pre_school"`

However, the partner would like to ALSO send the translated labels for the option value IDs to their external system. Example output we’d like to generate:  
`"occupation": {"pre_school": "ก่อนวัยเรียน"}`

**When we export case data via the API, is there also a way to export the value labels and translations?**  
Could we perhaps use the `/forms` endpoint to download the form metadata and translations for each field in that form?

FYI - We expect needing the translated values for 200+ questions across multiple forms, so I’m wondering if there is 1 API endpoint we can query to get ALL translations.

---

<div class="post-metadata">

**Author:** ![aleksa\_openfn](https://support.primero.org/forum/user_avatar/support.primero.org/aleksa_openfn/32/245_2.png) [@aleksa\_openfn](https://support.primero.org/forum/u/aleksa_openfn)\
**Post date:** [August 19, 2022, 4:49pm UTC](https://support.primero.org/forum/t/is-it-possible-to-extract-form-field-translations-via-the-api/602/2 "2022-08-19T16:49:50Z")

</div>

@jack.miszencin @pavel.nabutovsky @childprotectioninnov wondering if you know of a way?

---

<div class="post-metadata">

**Author:** ![childprotectioninnov](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@childprotectioninnov](https://support.primero.org/forum/u/childprotectioninnov)\
**Post date:** [August 22, 2022, 8:01pm UTC](https://support.primero.org/forum/t/is-it-possible-to-extract-form-field-translations-via-the-api/602/3 "2022-08-22T20:01:48Z")

</div>

Yes, it is possible. Your user role must be updated to include permissions which allow access to the forms and lookups. Thereafter you can extract and pull the fields from the [GET lookups](https://github.com/primeroIMS/primero/blob/development_v2/app/controllers/api/v2/docs/lookups/get.md) and [GET forms](https://github.com/primeroIMS/primero/blob/development_v2/app/controllers/api/v2/docs/forms/get.md) queries.
