1

Below is the query i want to run without using tooling api is there a way possible if not how to use tooling api in my code as i Have never used it in code apart from dev console.

SELECT  QualifiedApiName FROM EntityDefinition where QualifiedApiName = 'objectname' AND IsFieldHistoryTracked = true AND IsReportingEnabled = true AND IsSearchable = true 
1