If I get the question right and if you are trying to get the API name for the columns for contact object you can check them via setup under that particular object and you could also get using the package.xml for that particular object, that are present in below link:
If I get the question right and if you are trying to get the API name for the columns for contact object you can check them via setup under that particular object and you could also get using the package.xml for that particular object, that are present in below link:
>> https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/manifest_samples.htm
I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be used by others in the fututre.
Regards,
Anutej
Use below code.
Thanks.