apex class to uses get api code example
Example: apex get object describe by api name
SObjectType objectType = Schema.getGlobalDescribe().get('<Object API Name>');
Schema.DescribeSObjectResult objectDescribe = objectType.getDescribe();
SObjectType objectType = Schema.getGlobalDescribe().get('<Object API Name>');
Schema.DescribeSObjectResult objectDescribe = objectType.getDescribe();