Get Kobo submissions using API in json format in 'labels' rather than values

I am using the following API to get the form submissions in JSON format: “https://kf.kobotoolbox.org/api/v2/assets/{asset_id}/data?format=json

However, it returns the submission in values rather than labels. How do I get the ‘labels’ of the submission?

I found in a post that you can use the following API: “https://kf.kobotoolbox.org/api/v2/assets/{asset_id}/export-settings/{settings_id}/data.csv”. However, by this method, you can download the data in .csv or .xlsx format only. I need the submissions in .json format.

Welcome to the community, @ruch233! Maybe this support article should help you get the label: