function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Diwakar G 7Diwakar G 7 

API for fetching metadata types and components


Please provide the API for fetching metadata types and components. 

Thanks and Regards,
Diwakar G
Raj VakatiRaj Vakati
You need to use the tooling API and metadata api together to fetch  the  both metadata and component ... 

Refer this link
Pruthiviraj GanePruthiviraj Gane

If you are trying access the metadata of salesforce outside of Salesforce environment :
Can u tell us on where you are trying to fetch metadata so we can you better.
Diwakar G 7Diwakar G 7
I want to access the below details using Rest API. Not only role but also different component types also.
User-added image
Thanks and Regards,
DIwakar G